mirror of
https://github.com/cc65/cc65.git
synced 2024-12-28 22:30:12 +00:00
Added a makefile to build the utility.
git-svn-id: svn://svn.cc65.org/cc65/trunk@5424 b7a2c559-68d2-44c3-8de9-860c34a00d81
This commit is contained in:
parent
94c90cbe1f
commit
e0d6948ff6
47
targetutil/apple2/Makefile
Normal file
47
targetutil/apple2/Makefile
Normal file
@ -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)
|
||||||
|
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user