This commit was generated by cvs2svn to compensate for changes in r2,
which included commits to RCS files with non-trunk default branches. git-svn-id: svn://svn.cc65.org/cc65/trunk@3 b7a2c559-68d2-44c3-8de9-860c34a00d81
This commit is contained in:
66
src/ld65/make/gcc.mak
Normal file
66
src/ld65/make/gcc.mak
Normal file
@@ -0,0 +1,66 @@
|
||||
#
|
||||
# gcc Makefile for ld65
|
||||
#
|
||||
|
||||
# Default for the compiler lib search path as compiler define
|
||||
CDEFS=-DCC65_LIB=\"/usr/lib/cc65/lib/\"
|
||||
CFLAGS = -g -O2 -Wall $(CDEFS)
|
||||
CC=gcc
|
||||
LDFLAGS=
|
||||
|
||||
OBJS = bin.o \
|
||||
binfmt.o \
|
||||
config.o \
|
||||
dbgsyms.o \
|
||||
error.o \
|
||||
exports.o \
|
||||
expr.o \
|
||||
extsyms.o \
|
||||
fileio.o \
|
||||
global.o \
|
||||
library.o \
|
||||
main.o \
|
||||
mapfile.o \
|
||||
mem.o \
|
||||
o65.o \
|
||||
objdata.o \
|
||||
objfile.o \
|
||||
scanner.o \
|
||||
segments.o \
|
||||
target.o
|
||||
|
||||
LIBS = ../common/common.a
|
||||
|
||||
|
||||
EXECS = ld65
|
||||
|
||||
.PHONY: all
|
||||
ifeq (.depend,$(wildcard .depend))
|
||||
all : $(EXECS)
|
||||
include .depend
|
||||
else
|
||||
all: depend
|
||||
@$(MAKE) -f make/gcc.mak all
|
||||
endif
|
||||
|
||||
|
||||
|
||||
ld65: $(OBJS) $(LIBS)
|
||||
$(CC) $(CFLAGS) -o $@ $(OBJS) $(LIBS)
|
||||
|
||||
clean:
|
||||
rm -f *~ core *.map
|
||||
|
||||
zap: clean
|
||||
rm -f *.o $(EXECS) .depend
|
||||
|
||||
|
||||
# ------------------------------------------------------------------------------
|
||||
# Make the dependencies
|
||||
|
||||
.PHONY: depend dep
|
||||
depend dep: $(OBJS:.o=.c)
|
||||
@echo "Creating dependency information"
|
||||
$(CC) -MM $^ > .depend
|
||||
|
||||
|
||||
Reference in New Issue
Block a user