X-Git-Url: http://git.madism.org/?a=blobdiff_plain;f=Makefile;h=117f80d4a532a2257a75131470c86a056a7dc9fd;hb=628163e5113bd3bcce92dc51395998a2fdd8ad9d;hp=3be13e39719dedaf9eecd2d9bde966f9c06ef91d;hpb=0bfa9f900af9a4f4e65f3f580056de28380b333a;p=apps%2Fpfixtools.git diff --git a/Makefile b/Makefile index 3be13e3..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 \ - str.c buffer.c job.c postfix.c \ + str.h buffer.h daemon.h postfix.h \ + str.c buffer.c daemon.c postfix.c \ postlicyd.c $(GENERATED) -postlicyd_LIBADD = -lpthread +postlicyd_LIBADD = -lpthread $(shell pkg-config --libs lua5.1) # RULES ###################################################################{{{ @@ -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 ".$*.o $@" -MF .$*.dep $< +.%.dep: .%.o .SECONDEXPANSION: