- Bio Hazard's ACC tweaks:

* Change CC, CFLAGS, and LDFLAGS assignment operators to ?=.
  * Add /usr/local/share/acc as a predefined include path on Unix systems.

SVN r3185 (trunk)
This commit is contained in:
Randy Heit 2011-04-17 16:50:38 +00:00
parent 9c81b93bce
commit 2acd56bf73
2 changed files with 6 additions and 3 deletions

View file

@ -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 = \

3
acc.c
View file

@ -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)