diff options
-rw-r--r-- | makefile | 5 |
1 files changed, 3 insertions, 2 deletions
@@ -30,7 +30,8 @@ CFLAGS = -O2 #CC = gcc -Wall -g -Wwrite-strings #CC = gcc -O4 -Wall -pedantic -fno-strict-aliasing #CC = gcc -fprofile-arcs -ftest-coverage # then gcov f1.c; cat f1.c.gcov -CC = gcc -g -Wall -pedantic +HOSTCC = gcc -g -Wall -pedantic +CC ?= $(HOSTCC) # yacc options. pick one; this varies a lot by system. #YFLAGS = -d -S @@ -70,7 +71,7 @@ proctab.c: maketab ./maketab ytab.h >proctab.c maketab: ytab.h maketab.c - $(CC) $(CFLAGS) maketab.c -o maketab + $(HOSTCC) $(CFLAGS) maketab.c -o maketab bundle: @cp ytab.h ytabh.bak |