Rev 8185 | Rev 8219 | 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 | defines=@DEFINES@ |
10 | STRIP=@STRIP@ |
||
3889 | bpr | 11 | lopt=-L../../lib -lwims -lm |
10 | reyssat | 12 | |
8195 | 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 score.o wimslogd.o |
8185 | bpr | 14 | |
10 | reyssat | 15 | all: wimslogd |
16 | |||
8185 | bpr | 17 | %.o: %.c wimslogd.h ../wimsdef.h ../Lib/libwims.h |
18 | $(cc) -o $@ $(cflags) $(defines) -c $< |
||
19 | |||
10 | reyssat | 20 | clean: |
8134 | bpr | 21 | rm -f *.o wimslogd |
10 | reyssat | 22 | |
23 | distclean: |
||
24 | make clean |
||
25 | rm -f $(wims_home)/bin/wimslogd |
||
26 | rm -f Makefile |
||
27 | |||
8195 | bpr | 28 | wimslogd: $(O) |
29 | $(cc) $(LDFLAGS) $(defines) $(O) $(lopt) -o wimslogd |
||
10 | reyssat | 30 | $(STRIP) wimslogd |
31 | rm -f $(wims_home)/tmp/log/wimslogd.pid $(wims_home)/sessions/.wimslogd |
||
32 | cp wimslogd $(wims_home)/tmp/log/wimslogd.new |