wmppp.app: Use build flags.

Compile with CPPFLAGS and LDFLAGS and append, rather than overwrite, CFLAGS.

This enables the Debian package to be built with hardening options.  See
https://wiki.debian.org/Hardening.
This commit is contained in:
Doug Torrance 2014-09-14 12:57:21 -05:00 committed by Carlos R. Mafra
parent 33d2784d26
commit 3f3a1f86ac

View file

@ -1,16 +1,16 @@
LIBDIR = -L/usr/X11R6/lib
LIBS = -lXpm -lXext -lX11
CFLAGS = -O2
CFLAGS += -O2
OBJS = wmppp.o \
../wmgeneral/wmgeneral.o \
../wmgeneral/misc.o \
../wmgeneral/list.o
.c.o:
cc -g -c $(CFLAGS) -Wall $< -o $*.o
cc -g -c $(CPPFLAGS) $(CFLAGS) -Wall $< -o $*.o
wmppp: $(OBJS)
cc -o wmppp $^ -lXext $(LIBDIR) $(LIBS)
cc -o wmppp $(LDFLAGS) $^ -lXext $(LIBDIR) $(LIBS)
all:: wmppp getmodemspeed