From 3b5838327746b0c145e490326ec46eecc69ca3e7 Mon Sep 17 00:00:00 2001 From: cuz Date: Thu, 23 Sep 2004 19:05:49 +0000 Subject: [PATCH] Allow to override CC65_LIB on the command line git-svn-id: svn://svn.cc65.org/cc65/trunk@3199 b7a2c559-68d2-44c3-8de9-860c34a00d81 --- src/ld65/make/gcc.mak | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) diff --git a/src/ld65/make/gcc.mak b/src/ld65/make/gcc.mak index 1486a6f26..e0e99e62f 100644 --- a/src/ld65/make/gcc.mak +++ b/src/ld65/make/gcc.mak @@ -5,9 +5,12 @@ # Library dir COMMON = ../common -# Default for the compiler lib search path as compiler define -CDEFS=-DCC65_LIB=\"/usr/lib/cc65/lib/\" -CFLAGS = -g -O2 -Wall -W -I$(COMMON) $(CDEFS) +# The linker library search path. Default is "/usr/lib/cc65/lib/" if nothing +# is defined. You may use CC65_LIB=foo on the command line to override it. +CC65_LIB = \"/usr/lib/cc65/lib/\" + +# +CFLAGS = -g -O2 -Wall -W -I$(COMMON) -DCC65_LIB=$(CC65_LIB) CC=gcc EBIND=emxbind LDFLAGS= @@ -115,7 +118,7 @@ depend dep: $(OBJS:.o=.c) apple2.inc: cfg/apple2.cfg @$(CVT) $< $@ CfgApple2 - + # The apple2enh target uses the same config as the apple2 apple2enh.inc: cfg/apple2.cfg @$(CVT) $< $@ CfgApple2Enh