From e0d6948ff621469090e51c1a288e5c72e76c7706 Mon Sep 17 00:00:00 2001 From: uz Date: Tue, 24 Jan 2012 20:41:57 +0000 Subject: [PATCH] Added a makefile to build the utility. git-svn-id: svn://svn.cc65.org/cc65/trunk@5424 b7a2c559-68d2-44c3-8de9-860c34a00d81 --- targetutil/apple2/Makefile | 47 ++++++++++++++++++++++++++++++++++++++ 1 file changed, 47 insertions(+) create mode 100644 targetutil/apple2/Makefile diff --git a/targetutil/apple2/Makefile b/targetutil/apple2/Makefile new file mode 100644 index 000000000..03596189e --- /dev/null +++ b/targetutil/apple2/Makefile @@ -0,0 +1,47 @@ +# +# Makefile +# + +# -------------------------------------------------------------------------- +# Programs +CC = ../../src/cc65/cc65 +AS = ../../src/ca65/ca65 +LD = ../../src/ld65/ld65 + +# Directories +CFGDIR = ../../src/ld65/cfg +INCDIR = ../../include +LIBDIR = ../../libsrc + +# -------------------------------------------------------------------------- +# List of executables. + +EXELIST = loader.system + + +# -------------------------------------------------------------------------- +# Targets + + +.PHONY: all +all: $(EXELIST) + + +loader.system: loader.s Makefile + $(AS) -t apple2 --forget-inc-paths loader.s + $(LD) -o $@ -C loader.cfg loader.o $(LIBDIR)/apple2.lib + + +# -------------------------------------------------------------------------- +# Cleanup rules + +.PHONY: clean +clean: + $(RM) *~ *.map *.o *.lbl + +.PHONY: zap +zap: clean + $(RM) $(EXELIST) + + +