aboutsummaryrefslogtreecommitdiffstats
path: root/code/tools
diff options
context:
space:
mode:
Diffstat (limited to 'code/tools')
-rw-r--r--code/tools/asm/Makefile13
-rw-r--r--code/tools/lcc/Makefile13
2 files changed, 26 insertions, 0 deletions
diff --git a/code/tools/asm/Makefile b/code/tools/asm/Makefile
index 852afa6..0d64f14 100644
--- a/code/tools/asm/Makefile
+++ b/code/tools/asm/Makefile
@@ -16,6 +16,19 @@ endif
CC=gcc
Q3ASM_CFLAGS=-O2 -Wall -Werror -fno-strict-aliasing
+ifeq ($(PLATFORM),darwin)
+ LCC_CFLAGS += -DMACOS_X=1
+endif
+
+ifndef USE_CCACHE
+ USE_CCACHE=0
+endif
+
+ifeq ($(USE_CCACHE),1)
+ CC := ccache $(CC)
+ CXX := ccache $(CXX)
+endif
+
default: q3asm
q3asm: q3asm.c cmdlib.c
diff --git a/code/tools/lcc/Makefile b/code/tools/lcc/Makefile
index 1a96e9c..86eec1a 100644
--- a/code/tools/lcc/Makefile
+++ b/code/tools/lcc/Makefile
@@ -22,6 +22,19 @@ RMDIR=rmdir
BUILDDIR=build
BD=$(BUILDDIR)/
+ifeq ($(PLATFORM),darwin)
+ LCC_CFLAGS += -DMACOS_X=1
+endif
+
+ifndef USE_CCACHE
+ USE_CCACHE=0
+endif
+
+ifeq ($(USE_CCACHE),1)
+ CC := ccache $(CC)
+ CXX := ccache $(CXX)
+endif
+
ifeq ($(PLATFORM),SunOS)
INSTALL=ginstall
else