From: Doug Torrance Date: Sun, 22 Sep 2013 14:49:01 +0000 (-0500) Subject: wmtime - Fix compiler and linker flags in Makefile. X-Git-Tag: wmix-3.2~33 X-Git-Url: https://repo.or.cz/w/dockapps.git/commitdiff_plain/c80c917d376a5ab32db2afe8bed32a6d116b2eeb 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 , from Debian package. --- diff --git a/wmtime/wmtime/Makefile b/wmtime/wmtime/Makefile index 26b8571..a1c3c58 100755 --- a/wmtime/wmtime/Makefile +++ b/wmtime/wmtime/Makefile @@ -7,13 +7,13 @@ OBJS = wmtime.o \ XPMS = wmtime-master.xpm wmtime-mask.xbm CC = gcc -CFLAGS = -O2 +CFLAGS += -O2 .c.o: - $(CC) $(CFLAGS) -c -Wall $< -o $*.o + $(CC) $(CFLAGS) $(CPPFLAGS) $(LDFLAGS) -c -Wall $< -o $*.o wmtime: $(OBJS) $(XPMS) - $(CC) $(CFLAGS) -o wmtime $(OBJS) $(LIBDIR) $(LIBS) + $(CC) $(CFLAGS) $(CPPFLAGS) $(LDFLAGS) -o wmtime $(OBJS) $(LIBDIR) $(LIBS) clean:: for i in $(OBJS) ; do \