From: bodea Date: Thu, 6 Jan 2005 02:35:03 +0000 (+0000) Subject: add -Wformat-security -Wno-format-zero-length X-Git-Tag: release_2_1_0~93 X-Git-Url: http://git.sameswireless.fr/l2tpns.git/commitdiff_plain/8e5be4e9ec35061c6bfd4a0fea78d63f386d4705?hp=bbe84e53bf73900549ff97ddb29d85aa9e90c6cd add -Wformat-security -Wno-format-zero-length --- diff --git a/Makefile b/Makefile index 0bff86f..1a44ddd 100644 --- a/Makefile +++ b/Makefile @@ -14,16 +14,12 @@ DEFINES += -DSTATEDIR='"$(statedir)"' OPTIM = OPTIM += -g OPTIM += -O3 -OPTIM += -funroll-loops -OPTIM += -fomit-frame-pointer -OPTIM += -finline-functions -#OPTIM += -fstrength-reduce CC = gcc LD = gcc INCLUDES = -I. CPPFLAGS = $(INCLUDES) $(DEFINES) -CFLAGS = -Wall $(OPTIM) +CFLAGS = -Wall -Wformat-security -Wno-format-zero-length $(OPTIM) LDFLAGS = LDLIBS = INSTALL = install -c -D -o root -g root @@ -61,16 +57,16 @@ depend: mv Makefile Makefile.bak mv Makefile.tmp Makefile -l2tpns: $(OBJS) +l2tpns: $(OBJS) $(LD) $(LDFLAGS) -o $@ $^ $(LDLIBS) $($@.LIBS) -nsctl: nsctl.o control.o +nsctl: nsctl.o control.o $(LD) $(LDFLAGS) -o $@ $^ $(LDLIBS) $($@.LIBS) -generateload: test/generateload.o +generateload: test/generateload.o $(LD) $(LDFLAGS) -o $@ $^ $(LDLIBS) $($@.LIBS) -bounce: test/bounce.o +bounce: test/bounce.o $(LD) $(LDFLAGS) -o $@ $^ $(LDLIBS) $($@.LIBS) %.o: %.c