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.
# wmpus - cross platofrm window manager
# See LICENSE file for copyright and license details.
# wmpus - cross platofrm window manager
# See LICENSE file for copyright and license details.
-include config.mk
VERSION ?= 0.1-p0
-include config.mk
VERSION ?= 0.1-p0
MANPREFIX ?= ${PREFIX}/share/man
ifeq ($(SYS),x11)
MANPREFIX ?= ${PREFIX}/share/man
ifeq ($(SYS),x11)
PROG ?= wmpus
LDFLAGS += -lX11 -lXinerama
endif
ifeq ($(SYS),win32)
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
PROG ?= wmpus.exe
LDFLAGS += -lgdi32
endif
rm -f $(DESTDIR)$(MANPREFIX)/man1/wmpus.1
$(PROG): main.o conf.o util.o sys-$(SYS).o wm-$(WM).o
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
%.o: %.c $(wildcard *.h) makefile
- $(CC) $(CFLAGS) --std=gnu99 -c -o $@ $<
+ $(GCC) $(CFLAGS) --std=gnu99 -c -o $@ $<
.PHONY: all clean dist install uninstall
.PHONY: all clean dist install uninstall