Rev 9652 | Go to most recent revision | Details | Compare with Previous | Last modification | View Log | RSS feed
Rev | Author | Line No. | Line |
---|---|---|---|
10 | reyssat | 1 | # @configure_input@ |
2 | |||
3 | wims_home=../.. |
||
4 | cc=@CC@ |
||
5 | cflags=@CFLAGS@ -Wall |
||
6776 | georgesk | 6 | LDFLAGS=@LDFLAGS@ |
7 | CPPFLAGS=@CPPFLAGS@ |
||
8 | |||
10 | reyssat | 9 | STRIP=@STRIP@ |
7156 | georgesk | 10 | libpath=-L$(wims_home)/lib |
13441 | georgesk | 11 | libs=-lgd -lwims -lm |
10 | reyssat | 12 | defines=@DEFINES@ |
13 | rpath= |
||
14 | lopt=$(libpath) $(libs) |
||
5513 | mquerol | 15 | language=fr cn ca |
8195 | bpr | 16 | O=flylines.o nametab.o vimg.o objects.o flydraw.o |
8219 | bpr | 17 | H=../Lib/libwims.h ../config.h ../includes.h ../wimsdef.h |
8102 | bpr | 18 | |
1025 | bpr | 19 | all: nametab.c flydraw |
10 | reyssat | 20 | |
8219 | bpr | 21 | %.o: %.c *.h $(H) |
8102 | bpr | 22 | $(cc) -o $@ $(cflags) $(defines) -c $< |
23 | |||
10 | reyssat | 24 | clean: |
8134 | bpr | 25 | rm -f *.o flydraw |
10 | reyssat | 26 | |
27 | distclean: |
||
3895 | bpr | 28 | rm -f flydraw $(wims_home)/other/bin/flydraw nametab.c |
3873 | bpr | 29 | for i in $(language) en ; do rm -f ../../public_html/scripts/help/$$i/flydraw.phtml ; done |
10 | reyssat | 30 | rm -f Makefile |
31 | |||
8102 | bpr | 32 | |
8195 | bpr | 33 | flydraw: $(O) *.h htmldoc.sh commands commands.* ../Lib/libwims.* |
34 | $(cc) $(cflags) $(CPPFLAGS) $(LDFLAGS) $(defines) $(O) $(lopt) -o flydraw |
||
10 | reyssat | 35 | $(STRIP) flydraw |
36 | ./flydraw table |
||
37 | cp flydraw ../../other/bin/flydraw |
||
38 | chmod a+x ../../other/bin/flydraw |
||
1502 | bpr | 39 | ./htmldoc.sh >../../public_html/scripts/help/en/flydraw.phtml |
2603 | bpr | 40 | for i in $(language) ; do ./htmldoc.sh $$i >../../public_html/scripts/help/$$i/flydraw.phtml ; done |
4877 | bpr | 41 | ./flydraw2js.pl ; cp flydraw.js ../../public_html/scripts/js/edit_area/reg_syntax/flydraw.js ; rm flydraw.js |
10 | reyssat | 42 | |
1502 | bpr | 43 | |
10 | reyssat | 44 | nametab.c: nametab.sh colors |
45 | ./nametab.sh |
||
9652 | georgesk | 46 | |
47 | test: flydraw |
||
48 | @cd test; sh test-line |
||
49 | |||
50 | .PHONY: all clean distclean test |