X-Git-Url: http://git.madism.org/?a=blobdiff_plain;f=Makefile;h=117f80d4a532a2257a75131470c86a056a7dc9fd;hb=628163e5113bd3bcce92dc51395998a2fdd8ad9d;hp=ef55441e60d782a9fea1d5074ba199a54a940116;hpb=a13ea998b6e350e9870452cefdaba6d4ce158f27;p=apps%2Fpfixtools.git diff --git a/Makefile b/Makefile index ef55441..117f80d 100644 --- a/Makefile +++ b/Makefile @@ -33,18 +33,18 @@ LDFLAGS += -Wl,--warn-common include mk/cflags.mk -CFLAGS += --std=gnu99 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 +CFLAGS += --std=gnu99 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 $(shell pkg-config --cflags lua5.1) PROGRAMS = postlicyd GENERATED = tokens.h tokens.c postlicyd_SOURCES = \ - str.h buffer.h job.h postfix.h gai.h \ - str.c buffer.c job.c postfix.c gai.c \ + str.h buffer.h daemon.h postfix.h \ + str.c buffer.c daemon.c postfix.c \ postlicyd.c $(GENERATED) -postlicyd_LIBADD = -lanl +postlicyd_LIBADD = -lpthread $(shell pkg-config --libs lua5.1) # RULES ###################################################################{{{ @@ -52,7 +52,7 @@ all: $(PROGRAMS) $(GENERATED) | $(GENERATED) clean: $(RM) $(PROGRAMS) - $(RM) .*.o + $(RM) .*.o .*.dep distclean: clean $(RM) $(GENERATED) @@ -76,8 +76,7 @@ headers: .%.o: %.c Makefile $(CC) $(CFLAGS) -MMD -MT ".$*.dep $@" -MF .$*.dep -g -c -o $@ $< -%.dep: %.c Makefile - $(CC) $(CFLAGS) -MM -MT ".$*.dep $@" -MF .$*.dep $< +.%.dep: .%.o .SECONDEXPANSION: