wmtime - Fix compiler and linker flags in Makefile.

The Makefile of wmtime had to be patched in order for CFLAGS
not to be redefined by the Makefile but to use the CFLAGS
passed by debhelper and add additional flags through
string concatenation. LDFLAGS and CPPFLAGS weren't passed
at all and have been added to the linker command line.

Patch by John Paul Adrian Glaubitz <glaubitz@physik.fu-berlin.de>,
from Debian package.
This commit is contained in:
Doug Torrance 2013-09-22 09:49:01 -05:00 committed by Carlos R. Mafra
parent 96fe4bccb0
commit c80c917d37

View file

@ -7,13 +7,13 @@ OBJS = wmtime.o \
XPMS = wmtime-master.xpm wmtime-mask.xbm XPMS = wmtime-master.xpm wmtime-mask.xbm
CC = gcc CC = gcc
CFLAGS = -O2 CFLAGS += -O2
.c.o: .c.o:
$(CC) $(CFLAGS) -c -Wall $< -o $*.o $(CC) $(CFLAGS) $(CPPFLAGS) $(LDFLAGS) -c -Wall $< -o $*.o
wmtime: $(OBJS) $(XPMS) wmtime: $(OBJS) $(XPMS)
$(CC) $(CFLAGS) -o wmtime $(OBJS) $(LIBDIR) $(LIBS) $(CC) $(CFLAGS) $(CPPFLAGS) $(LDFLAGS) -o wmtime $(OBJS) $(LIBDIR) $(LIBS)
clean:: clean::
for i in $(OBJS) ; do \ for i in $(OBJS) ; do \