appended after assigning the base value to CFLAGS. This allows to change
CFLAGS on the command line without too much hassle.
git-svn-id: svn://svn.cc65.org/cc65/trunk@4219
b7a2c559-68d2-44c3-8de9-
860c34a00d81
# Library dir
COMMON = ../common
-CFLAGS = -g -O2 -Wall -W -std=c89 -I$(COMMON)
+#
CC = gcc
+CFLAGS = -g -O2 -Wall -W -std=c89
+CFLAGS += -I$(COMMON)
EBIND = emxbind
LDFLAGS =
+# -----------------------------------------------------------------------------
+# List of all object files
+
OBJS = add.o \
del.o \
error.o \
# Several search paths. You may redefine these on the command line
CA65_INC = \"/usr/lib/cc65/asminc/\"
+#
+CC = gcc
CFLAGS = -g -O2 -Wall -W -std=c89
CFLAGS += -I$(COMMON)
CFLAGS += -DCA65_INC=$(CA65_INC)
-CC = gcc
EBIND = emxbind
LDFLAGS =
CC65_INC = \"/usr/lib/cc65/include/\"
#
-CFLAGS = -O2 -g -Wall -W -std=c89 -I$(COMMON) -DCC65_INC=$(CC65_INC)
-CC=gcc
-EBIND=emxbind
-LDFLAGS=-lm
+CC = gcc
+CFLAGS = -O2 -g -Wall -W -std=c89
+CFLAGS += -I$(COMMON)
+CFLAGS += -DCC65_INC=$(CC65_INC)
+EBIND = emxbind
+LDFLAGS = -lm
# Determine the svn version number if possible
ifneq "$(shell which svnversion 2>/dev/null)" ""
SPAWN = SPAWN_AMIGA
endif
-
-CC=gcc
-CFLAGS = -O2 -g -Wall -W -std=c89 -I$(COMMON) -D$(SPAWN)
-EBIND = emxbind
-LDFLAGS=
+#
+CC = gcc
+CFLAGS = -O2 -g -Wall -W -std=c89
+CFLAGS += -I$(COMMON)
+CFLAGS += -D$(SPAWN)
+EBIND = emxbind
+LDFLAGS =
OBJS = error.o \
global.o \
# Library dir
COMMON = ../common
-CFLAGS = -g -O2 -Wall -W -std=c89 -I$(COMMON)
+#
CC = gcc
+CFLAGS = -g -O2 -Wall -W -std=c89
+CFLAGS += -I$(COMMON)
EBIND = emxbind
LDFLAGS =
+# -----------------------------------------------------------------------------
+# List of all object files
+
OBJS = convert.o \
error.o \
fileio.o \
# Library dir
COMMON = ../common
-CFLAGS = -g -O2 -Wall -W -std=c89 -I$(COMMON)
-CC=gcc
-EBIND=emxbind
-LDFLAGS=
+#
+CC = gcc
+CFLAGS = -g -O2 -Wall -W -std=c89
+CFLAGS += -I$(COMMON)
+EBIND = emxbind
+LDFLAGS =
+
+
+# -----------------------------------------------------------------------------
+# List of all object files
OBJS = asminc.o \
attrtab.o \
COMMON = ../common
-CFLAGS = -g -O2 -Wall -W -std=c89 -I$(COMMON)
+#
CC = gcc
+CFLAGS = -g -O2 -Wall -W -std=c89
+CFLAGS += -I$(COMMON)
LDFLAGS =
EBIND = emxbind
+
+# -----------------------------------------------------------------------------
+# List of all object files
+
OBJS = grc.o
LIBS = $(COMMON)/common.a
LD65_CFG = \"/usr/lib/cc65/cfg/\"
#
-CFLAGS = -g -O2 -Wall -W -std=c89 -I$(COMMON)
+CC = gcc
+CFLAGS = -g -O2 -Wall -W -std=c89
+CFLAGS += -I$(COMMON)
CFLAGS += -DLD65_LIB=$(LD65_LIB) -DLD65_OBJ=$(LD65_OBJ) -DLD65_CFG=$(LD65_CFG)
-CC=gcc
-EBIND=emxbind
-LDFLAGS=
+EBIND = emxbind
+LDFLAGS =
# Perl script for config file conversion
CVT=cfg/cvt-cfg.pl
# Library dir
COMMON = ../common
-CFLAGS = -O2 -g -Wall -W -std=c89 -I$(COMMON)
-CC=gcc
-EBIND=emxbind
-LDFLAGS=
+#
+CC = gcc
+CFLAGS = -O2 -g -Wall -W -std=c89
+CFLAGS += -I$(COMMON)
+EBIND = emxbind
+LDFLAGS =
+
+
+# -----------------------------------------------------------------------------
+# List of all object files
OBJS = dump.o \
error.o \
# Library dir
COMMON = ../common
-CFLAGS = -g -O2 -Wall -W -std=c89 -I$(COMMON)
+#
CC = gcc
+CFLAGS = -g -O2 -Wall -W -std=c89
+CFLAGS += -I$(COMMON)
EBIND = emxbind
LDFLAGS =
+
+# -----------------------------------------------------------------------------
+# List of all object files
+
OBJS = addrspace.o \
callback.o \
cfgdata.o \