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:
63
src/ca65/make/gcc.mak
Normal file
63
src/ca65/make/gcc.mak
Normal file
@@ -0,0 +1,63 @@
|
||||
#
|
||||
# gcc Makefile for a65, link65 & libr65
|
||||
#
|
||||
|
||||
CFLAGS = -g -O2 -Wall
|
||||
CC = gcc
|
||||
LDFLAGS =
|
||||
|
||||
OBJS = condasm.o \
|
||||
ea.o \
|
||||
error.o \
|
||||
expr.o \
|
||||
fname.o \
|
||||
fragment.o \
|
||||
global.o \
|
||||
instr.o \
|
||||
listing.o \
|
||||
macpack.o \
|
||||
macro.o \
|
||||
main.o \
|
||||
mem.o \
|
||||
objcode.o \
|
||||
objfile.o \
|
||||
options.o \
|
||||
pseudo.o \
|
||||
scanner.o \
|
||||
strexpr.o \
|
||||
symtab.o \
|
||||
toknode.o \
|
||||
ulabel.o
|
||||
|
||||
LIBS = ../common/common.a
|
||||
|
||||
EXECS = ca65
|
||||
|
||||
.PHONY: all
|
||||
ifeq (.depend,$(wildcard .depend))
|
||||
all : $(EXECS)
|
||||
include .depend
|
||||
else
|
||||
all: depend
|
||||
@$(MAKE) -f make/gcc.mak all
|
||||
endif
|
||||
|
||||
|
||||
|
||||
ca65: $(OBJS) $(LIBS)
|
||||
$(CC) $(CFLAGS) -o $@ $(OBJS) $(LIBS)
|
||||
|
||||
clean:
|
||||
rm -f *~ core *.lst
|
||||
|
||||
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