summaryrefslogtreecommitdiff
path: root/www/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'www/Makefile')
-rw-r--r--www/Makefile44
1 files changed, 44 insertions, 0 deletions
diff --git a/www/Makefile b/www/Makefile
new file mode 100644
index 0000000000..9a2e76e095
--- /dev/null
+++ b/www/Makefile
@@ -0,0 +1,44 @@
1ACTION=@echo preprocessing $@; rm -f $@; fcpp -WWW -Uunix -H -C -V -LL >$@
2
3SRC := $(wildcard *.t)
4OBJS := $(SRC:%.t=%.html)
5
6.SUFFIXES: .t .html
7
8%.html : %.t
9 $(ACTION) $<
10
11all: $(OBJS) descramble descramble.static.bz2 sh2d sh2d.static.bz2 \
12 scramble scramble.static.bz2
13 @(cd schematics; $(MAKE))
14 @(cd docs; $(MAKE))
15 @(cd mods; $(MAKE))
16
17main.html: main.t activity.html
18
19descramble: descramble.c
20 cc -Wall -ansi -O2 -s -o $@ $<
21 chmod a+r descramble
22
23descramble.static.bz2: descramble.c
24 cc -static -O2 -s -o descramble.static $<
25 bzip2 -f descramble.static
26 chmod a+r descramble.static.bz2
27
28scramble: scramble.c
29 cc -Wall -ansi -O2 -s -o $@ $<
30 chmod a+r scramble
31
32scramble.static.bz2: scramble.c
33 cc -static -O2 -s -o scramble.static $<
34 bzip2 -f scramble.static
35 chmod a+r scramble.static.bz2
36
37sh2d: sh2d.c
38 cc -O2 -s -o $@ $<
39 chmod a+r sh2d
40
41sh2d.static.bz2: sh2d.c
42 cc -static -O2 -s -o sh2d.static $<
43 bzip2 -f sh2d.static
44 chmod a+r sh2d.static.bz2