diff --git a/Makefile b/Makefile index 8e5a41f..722e133 100644 --- a/Makefile +++ b/Makefile @@ -4,7 +4,7 @@ target = $(strip $(shell $(CC) -dumpmachine)) # DOS and Windows executables should have the .exe extension. # Other operating systems should be extension-less. -CC = gcc +CC ?= gcc ifeq ($(findstring mingw32,$(target)),mingw32) EXENAME = acc.exe @@ -16,8 +16,8 @@ EXENAME = acc endif endif -CFLAGS = -Os -Wall -W -fomit-frame-pointer -LDFLAGS = -s +CFLAGS ?= -Os -Wall -W -fomit-frame-pointer +LDFLAGS ?= -s VERNUM = 150 OBJS = \ diff --git a/acc.c b/acc.c index def1d05..9c37699 100644 --- a/acc.c +++ b/acc.c @@ -244,6 +244,9 @@ static void ProcessArgs(void) } TK_AddIncludePath("."); +#ifdef unix + TK_AddIncludePath("/usr/local/share/acc/"); +#endif TK_AddProgramIncludePath(ArgVector[0]); if(count == 1)