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:
parent
33d2784d26
commit
3f3a1f86ac
|
@ -1,16 +1,16 @@
|
||||||
LIBDIR = -L/usr/X11R6/lib
|
LIBDIR = -L/usr/X11R6/lib
|
||||||
LIBS = -lXpm -lXext -lX11
|
LIBS = -lXpm -lXext -lX11
|
||||||
CFLAGS = -O2
|
CFLAGS += -O2
|
||||||
OBJS = wmppp.o \
|
OBJS = wmppp.o \
|
||||||
../wmgeneral/wmgeneral.o \
|
../wmgeneral/wmgeneral.o \
|
||||||
../wmgeneral/misc.o \
|
../wmgeneral/misc.o \
|
||||||
../wmgeneral/list.o
|
../wmgeneral/list.o
|
||||||
|
|
||||||
.c.o:
|
.c.o:
|
||||||
cc -g -c $(CFLAGS) -Wall $< -o $*.o
|
cc -g -c $(CPPFLAGS) $(CFLAGS) -Wall $< -o $*.o
|
||||||
|
|
||||||
wmppp: $(OBJS)
|
wmppp: $(OBJS)
|
||||||
cc -o wmppp $^ -lXext $(LIBDIR) $(LIBS)
|
cc -o wmppp $(LDFLAGS) $^ -lXext $(LIBDIR) $(LIBS)
|
||||||
|
|
||||||
all:: wmppp getmodemspeed
|
all:: wmppp getmodemspeed
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue