]> Pileus Git - wmpus/commitdiff
Get rid of undefine..
authorAndy Spencer <andy753421@gmail.com>
Mon, 18 Jun 2012 00:23:35 +0000 (00:23 +0000)
committerAndy Spencer <andy753421@gmail.com>
Mon, 18 Jun 2012 00:23:35 +0000 (00:23 +0000)
In the Gnu's project omniscience, they've totally screwed everything up
by adding automatic variables. Way to go Gnu project. Luckily they
haven't yet added an automatic variable for GCC as they've done for CC,
and since we use gcc specific features calling the variable that should
be fine.

makefile

index 11519b2f285665874812ae4537afda0e6eda7380..e854d818bf8a6bb7a11ed6febbafa2c19ff967f6 100644 (file)
--- a/makefile
+++ b/makefile
@@ -1,8 +1,6 @@
 # wmpus - cross platofrm window manager
 # See LICENSE file for copyright and license details.
 
-undefine CC
-
 -include config.mk
 
 VERSION   ?= 0.1-p0
@@ -13,13 +11,13 @@ PREFIX    ?= /usr/local
 MANPREFIX ?= ${PREFIX}/share/man
 
 ifeq ($(SYS),x11)
-CC        ?= gcc
+GCC       ?= gcc
 PROG      ?= wmpus
 LDFLAGS   += -lX11 -lXinerama
 endif
 
 ifeq ($(SYS),win32)
-CC        ?= i686-pc-mingw32-gcc
+GCC       ?= i686-pc-mingw32-gcc
 PROG      ?= wmpus.exe
 LDFLAGS   += -lgdi32
 endif
@@ -42,9 +40,9 @@ uninstall:
        rm -f $(DESTDIR)$(MANPREFIX)/man1/wmpus.1
 
 $(PROG): main.o conf.o util.o sys-$(SYS).o wm-$(WM).o
-       $(CC) $(CFLAGS) -o $@ $+ $(LDFLAGS)
+       $(GCC) $(CFLAGS) -o $@ $+ $(LDFLAGS)
 
 %.o: %.c $(wildcard *.h) makefile
-       $(CC) $(CFLAGS) --std=gnu99 -c -o $@ $<
+       $(GCC) $(CFLAGS) --std=gnu99 -c -o $@ $<
 
 .PHONY: all clean dist install uninstall