Rev 8219 | 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 | defines=@DEFINES@ |
10 | STRIP=@STRIP@ |
||
11 | rpath= |
||
12 | libtype=static |
||
3889 | bpr | 13 | lopt=-L../../lib -lwims -lm $(rpath) |
8195 | bpr | 14 | oefO=oeflines.o compare.o outexec.o process.o sp.o oef2wims.o |
15 | msgO=msglines.o compare.o def.o doc.o sp.o msg2wims.o |
||
8219 | bpr | 16 | H=../Lib/libwims.h ../config.h ../includes.h ../wimsdef.h |
8148 | bpr | 17 | all: oef2wims msg2wims |
8135 | bpr | 18 | |
8219 | bpr | 19 | %.o: %.c *.h $(H) |
17887 | georgesk | 20 | $(cc) -o $@ $(cflags) $(CPPFLAGS) $(defines) -c $< |
8135 | bpr | 21 | |
10 | reyssat | 22 | clean: |
8148 | bpr | 23 | rm -f oef2wims msg2wims *.o 2>/dev/null |
10 | reyssat | 24 | |
25 | distclean: |
||
26 | rm -f oef2wims $(wims_home)/bin/oef2wims 2>/dev/null |
||
8148 | bpr | 27 | rm -f msg2wims $(wims_home)/bin/msg2wims $(wims_home)/public_html/bin/msg2wims 2>/dev/null |
10 | reyssat | 28 | rm -f Makefile |
29 | |||
8195 | bpr | 30 | oef2wims: $(oefO) ../Lib/libwims.* |
31 | $(cc) $(cflags) $(CPPFLAGS) $(LDFLAGS) $(defines) $(oefO) $(lopt) -o oef2wims |
||
10 | reyssat | 32 | $(STRIP) oef2wims |
33 | chmod og-x oef2wims |
||
34 | ./oef2wims table |
||
35 | cp oef2wims $(wims_home)/bin |
||
8148 | bpr | 36 | |
8195 | bpr | 37 | msg2wims: $(msgO) ../Lib/libwims.* |
38 | $(cc) $(cflags) $(CPPFLAGS) $(LDFLAGS) $(defines) $(msgO) $(lopt) -o msg2wims |
||
8148 | bpr | 39 | ./msg2wims table |
40 | $(STRIP) msg2wims |
||
41 | cp msg2wims $(wims_home)/bin |