From 04e9723d16af1a0a071582b61eec622e10848c33 Mon Sep 17 00:00:00 2001 From: Andy Spencer Date: Wed, 3 Apr 2013 07:12:05 +0000 Subject: [PATCH] Rename CC variable to GCC This avoids stupid GNU Make rules which really just break everything, and we're pretty dependant on GCC anyway. --- makefile | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/makefile b/makefile index 1306505..9996dee 100644 --- a/makefile +++ b/makefile @@ -9,7 +9,7 @@ PREFIX ?= /usr/local MANPREFIX ?= $(PREFIX)/share/man # Compiler -CC ?= gcc +GCC ?= gcc CFLAGS ?= -Wall --std=c99 CPPFLAGS ?= -Isrc LDFLAGS ?= -lncursesw -lical @@ -42,12 +42,12 @@ uninstall: # Rules $(PROG): $(PROG_SRC:%=src/%.o) $(VIEWS:%=views/%.o) $(CALS:%=cals/%.o) - $(CC) $(CFLAGS) -o $@ $+ $(LDFLAGS) + $(GCC) $(CFLAGS) -o $@ $+ $(LDFLAGS) $(TEST): $(TEST_SRC:%=src/%.o) $(CALS:%=cals/%.o) - $(CC) $(CFLAGS) -o $@ $+ $(LDFLAGS) + $(GCC) $(CFLAGS) -o $@ $+ $(LDFLAGS) %.o: %.c $(wildcard src/*.h) makefile - $(CC) $(CFLAGS) $(CPPFLAGS) -c -o $@ $< + $(GCC) $(CFLAGS) $(CPPFLAGS) -c -o $@ $< .PHONY: all clean dist install uninstall -- 2.41.0