Browse Source

ld-tigcc & tprbuilder makefiles: make it possible to override CC without having to edit the makefiles.
ttpack: create Makefile, based on tprbuilder Makefile.

git-svn-id: file:///var/svn/tigccpp/trunk/tigcc/ld-tigcc@1301 9552661e-59e3-4036-b4f2-dbe53926924f

debrouxl 15 years ago
parent
commit
d21bfb7218
1 changed files with 5 additions and 1 deletions
  1. 5 1
      Makefile

+ 5 - 1
Makefile

@@ -1,3 +1,7 @@
+# ld-tigcc makefile
+# Copyright (C) 2002-2009, Kevin Kofler
+# Copyright (C) 2009, Lionel Debroux
+
 ifeq ($(OSTYPE), msys)
 EXEEXT = .exe
 else
@@ -14,7 +18,7 @@ else
 ALL_TARGETS = $(LD_TIGCC) $(AR_TIGCC)
 endif
 
-CC = gcc
+CC ?= gcc
 CFLAGS = -s -Os -fno-exceptions
 WARN_CFLAGS = -W -Wall -Wwrite-strings -Wpointer-arith
 DEFINES = -DCOFF_SUPPORT -DAMIGAOS_SUPPORT -DTIOS_SUPPORT -DFLASH_OS_SUPPORT -DNOSTUB_DLL_SUPPORT -DFARGO_SUPPORT -DDATA_VAR_SUPPORT -DTIOS_FILE_SUPPORT -DTIOS_UPGRADE_FILE_SUPPORT -DDEBUGGING_INFO_SUPPORT -DCOFF_TIGCC_EXTENSIONS -DAMIGAOS_TIGCC_EXTENSIONS