X-Git-Url: http://git.madism.org/?a=blobdiff_plain;f=Makefile;h=179fed860bce2d54abd3309fda1ac8576ff4e5c3;hb=59c1f51ef38081d87885a37873545154c7a23e2d;hp=d7a542216c55abeeb04d3bd408ec53a49a0647fc;hpb=b1315f7af90c4d8047cf0c8f3c0a00b703676f84;p=apps%2Fpfixtools.git diff --git a/Makefile b/Makefile index d7a5422..179fed8 100644 --- a/Makefile +++ b/Makefile @@ -30,15 +30,16 @@ ############################################################################## include mk/cflags.mk +CFLAGS += --std=gnu99 -D_GNU_SOURCE -D_FORTIFY_SOURCE=1 PROGRAMS = postlicyd postlicyd_SOURCES = \ - str.h buffer.h job.h postfix.h \ - str.c buffer.c job.c postfix.c \ + str.h buffer.h job.h postfix.h gai.h query.h \ + str.c buffer.c job.c postfix.c gai.c \ postlicyd.c -postlicyd_LIBADD = -ludns +postlicyd_LIBADD = -lanl # RULES ###################################################################{{{ @@ -71,6 +72,6 @@ headers: $(PROGRAMS): $$(patsubst %.c,.%.o,$$($$@_SOURCES)) Makefile $(CC) -o $@ $(CFLAGS) $(filter %.o,$^) $(LDFLAGS) $($@_LIBADD) $(filter %.a,$^) --include $(foreach p,$(PROGRAMS),$(patsubst %.c,%.d,$(filter %.c,$p_SOURCES))) +-include $(foreach p,$(PROGRAMS),$(patsubst %.c,.%.d,$(filter %.c,$($p_SOURCES)))) ###########################################################################}}}