Rev 8800 | 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@ |
||
3889 | bpr | 11 | lopt=-L../../lib -lwims -lm |
10 | reyssat | 12 | |
8251 | bpr | 13 | O=cache.o cleaning.o cmd.o files.o fork.o homedir.o housekeep.o log.o options.o socket.o wimslogdlines.o wimslogdscore.o wimslogd.o |
8219 | bpr | 14 | H=../Lib/libwims.h ../config.h ../includes.h ../wimsdef.h |
8185 | bpr | 15 | |
10 | reyssat | 16 | all: wimslogd |
17 | |||
8219 | bpr | 18 | %.o: %.c $(H) |
17887 | georgesk | 19 | $(cc) -o $@ $(cflags) $(CPPFLAGS) $(defines) -c $< |
8185 | bpr | 20 | |
10 | reyssat | 21 | clean: |
8134 | bpr | 22 | rm -f *.o wimslogd |
10 | reyssat | 23 | |
24 | distclean: |
||
25 | make clean |
||
26 | rm -f $(wims_home)/bin/wimslogd |
||
27 | rm -f Makefile |
||
28 | |||
8195 | bpr | 29 | wimslogd: $(O) |
8800 | bpr | 30 | $(cc) $(LDFLAGS) $(cflags) $(defines) $(O) $(lopt) -o wimslogd |
10 | reyssat | 31 | $(STRIP) wimslogd |
32 | rm -f $(wims_home)/tmp/log/wimslogd.pid $(wims_home)/sessions/.wimslogd |
||
33 | cp wimslogd $(wims_home)/tmp/log/wimslogd.new |