]> git.sur5r.net Git - cc65/commitdiff
Added a makefile to build the utility.
authoruz <uz@b7a2c559-68d2-44c3-8de9-860c34a00d81>
Tue, 24 Jan 2012 20:41:57 +0000 (20:41 +0000)
committeruz <uz@b7a2c559-68d2-44c3-8de9-860c34a00d81>
Tue, 24 Jan 2012 20:41:57 +0000 (20:41 +0000)
git-svn-id: svn://svn.cc65.org/cc65/trunk@5424 b7a2c559-68d2-44c3-8de9-860c34a00d81

targetutil/apple2/Makefile [new file with mode: 0644]

diff --git a/targetutil/apple2/Makefile b/targetutil/apple2/Makefile
new file mode 100644 (file)
index 0000000..0359618
--- /dev/null
@@ -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)
+
+
+