mirror of
https://github.com/cc65/cc65.git
synced 2024-09-21 18:47:31 +00:00
added/updated Makefiles, preparing for CI (later)
This commit is contained in:
parent
ad1579140b
commit
8649859bc5
@ -1,4 +1,30 @@
|
|||||||
CL ?= cl65
|
# Just the usual way to find out if we're
|
||||||
|
# using cmd.exe to execute make rules.
|
||||||
|
ifneq ($(shell echo),)
|
||||||
|
CMD_EXE = 1
|
||||||
|
endif
|
||||||
|
|
||||||
|
ifdef CMD_EXE
|
||||||
|
NULLDEV = nul:
|
||||||
|
DEL = -del /f
|
||||||
|
RMDIR = rmdir /s /q
|
||||||
|
else
|
||||||
|
NULLDEV = /dev/null
|
||||||
|
DEL = $(RM)
|
||||||
|
RMDIR = $(RM) -r
|
||||||
|
endif
|
||||||
|
|
||||||
|
ifdef CC65_HOME
|
||||||
|
AS = $(CC65_HOME)/bin/ca65
|
||||||
|
CC = $(CC65_HOME)/bin/cc65
|
||||||
|
CL = $(CC65_HOME)/bin/cl65
|
||||||
|
LD = $(CC65_HOME)/bin/ld65
|
||||||
|
else
|
||||||
|
AS := $(if $(wildcard ../../../bin/ca65*),../../../bin/ca65,ca65)
|
||||||
|
CC := $(if $(wildcard ../../../bin/cc65*),../../../bin/cc65,cc65)
|
||||||
|
CL := $(if $(wildcard ../../../bin/cl65*),../../../bin/cl65,cl65)
|
||||||
|
LD := $(if $(wildcard ../../../bin/ld65*),../../../bin/ld65,ld65)
|
||||||
|
endif
|
||||||
|
|
||||||
all: c64-scpu-test.prg c128-scpu-test.prg c64dtv-test.prg \
|
all: c64-scpu-test.prg c128-scpu-test.prg c64dtv-test.prg \
|
||||||
c64-c128-test.prg c128-test.prg chameleon-test.prg \
|
c64-c128-test.prg c128-test.prg chameleon-test.prg \
|
||||||
@ -27,3 +53,6 @@ c65-test.prg: c65-test.c
|
|||||||
|
|
||||||
turbomaster-test.prg: turbomaster-test.c
|
turbomaster-test.prg: turbomaster-test.c
|
||||||
$(CL) -t c64 turbomaster-test.c -o turbomaster-test.prg
|
$(CL) -t c64 turbomaster-test.c -o turbomaster-test.prg
|
||||||
|
|
||||||
|
clean:
|
||||||
|
$(RM) *.prg
|
||||||
|
@ -1,7 +1,33 @@
|
|||||||
# For this one see https://applecommander.github.io/
|
# For this one see https://applecommander.github.io/
|
||||||
AC ?= ac.jar
|
AC ?= ac.jar
|
||||||
|
|
||||||
CL ?= cl65
|
# Just the usual way to find out if we're
|
||||||
|
# using cmd.exe to execute make rules.
|
||||||
|
ifneq ($(shell echo),)
|
||||||
|
CMD_EXE = 1
|
||||||
|
endif
|
||||||
|
|
||||||
|
ifdef CMD_EXE
|
||||||
|
NULLDEV = nul:
|
||||||
|
DEL = -del /f
|
||||||
|
RMDIR = rmdir /s /q
|
||||||
|
else
|
||||||
|
NULLDEV = /dev/null
|
||||||
|
DEL = $(RM)
|
||||||
|
RMDIR = $(RM) -r
|
||||||
|
endif
|
||||||
|
|
||||||
|
ifdef CC65_HOME
|
||||||
|
AS = $(CC65_HOME)/bin/ca65
|
||||||
|
CC = $(CC65_HOME)/bin/cc65
|
||||||
|
CL = $(CC65_HOME)/bin/cl65
|
||||||
|
LD = $(CC65_HOME)/bin/ld65
|
||||||
|
else
|
||||||
|
AS := $(if $(wildcard ../../../bin/ca65*),../../../bin/ca65,ca65)
|
||||||
|
CC := $(if $(wildcard ../../../bin/cc65*),../../../bin/cc65,cc65)
|
||||||
|
CL := $(if $(wildcard ../../../bin/cl65*),../../../bin/cl65,cl65)
|
||||||
|
LD := $(if $(wildcard ../../../bin/ld65*),../../../bin/ld65,ld65)
|
||||||
|
endif
|
||||||
|
|
||||||
all: hgr.dsk dhgr.dsk
|
all: hgr.dsk dhgr.dsk
|
||||||
|
|
||||||
@ -35,3 +61,8 @@ dhgr.dsk: dhgrshow
|
|||||||
|
|
||||||
dhgrshow: dhgrshow.c
|
dhgrshow: dhgrshow.c
|
||||||
$(CL) -Oirs -t apple2enh --start-addr 0x4000 -m dhgrshow.map $^
|
$(CL) -Oirs -t apple2enh --start-addr 0x4000 -m dhgrshow.map $^
|
||||||
|
|
||||||
|
clean:
|
||||||
|
$(RM) hgr.dsk dhgr.dsk
|
||||||
|
$(RM) hgrshow hgrshow.map
|
||||||
|
$(RM) hgrtest hgrtest.map
|
||||||
|
@ -1,24 +1,53 @@
|
|||||||
|
|
||||||
|
# Just the usual way to find out if we're
|
||||||
|
# using cmd.exe to execute make rules.
|
||||||
|
ifneq ($(shell echo),)
|
||||||
|
CMD_EXE = 1
|
||||||
|
endif
|
||||||
|
|
||||||
|
ifdef CMD_EXE
|
||||||
|
NULLDEV = nul:
|
||||||
|
DEL = -del /f
|
||||||
|
RMDIR = rmdir /s /q
|
||||||
|
else
|
||||||
|
NULLDEV = /dev/null
|
||||||
|
DEL = $(RM)
|
||||||
|
RMDIR = $(RM) -r
|
||||||
|
endif
|
||||||
|
|
||||||
|
ifdef CC65_HOME
|
||||||
|
AS = $(CC65_HOME)/bin/ca65
|
||||||
|
CC = $(CC65_HOME)/bin/cc65
|
||||||
|
CL = $(CC65_HOME)/bin/cl65
|
||||||
|
LD = $(CC65_HOME)/bin/ld65
|
||||||
|
else
|
||||||
|
AS := $(if $(wildcard ../../../bin/ca65*),../../../bin/ca65,ca65)
|
||||||
|
CC := $(if $(wildcard ../../../bin/cc65*),../../../bin/cc65,cc65)
|
||||||
|
CL := $(if $(wildcard ../../../bin/cl65*),../../../bin/cl65,cl65)
|
||||||
|
LD := $(if $(wildcard ../../../bin/ld65*),../../../bin/ld65,ld65)
|
||||||
|
endif
|
||||||
|
|
||||||
all: charmapping.xex defdev.xex displaylist.xex mem.xex multi.xex ostype.xex \
|
all: charmapping.xex defdev.xex displaylist.xex mem.xex multi.xex ostype.xex \
|
||||||
scrcode.com sys.xex
|
scrcode.com sys.xex
|
||||||
|
|
||||||
charmapping.xex: charmapping.c
|
charmapping.xex: charmapping.c
|
||||||
cl65 -t atari -o charmapping.xex charmapping.c
|
$(CL) -t atari -o charmapping.xex charmapping.c
|
||||||
defdev.xex: defdev.c
|
defdev.xex: defdev.c
|
||||||
cl65 -t atari -o defdev.xex defdev.c
|
$(CL) -t atari -o defdev.xex defdev.c
|
||||||
displaylist.xex: displaylist.c
|
displaylist.xex: displaylist.c
|
||||||
cl65 -t atari -o displaylist.xex displaylist.c
|
$(CL) -t atari -o displaylist.xex displaylist.c
|
||||||
mem.xex: mem.c ../getsp.s
|
mem.xex: mem.c ../getsp.s
|
||||||
cl65 -t atari -o mem.xex mem.c ../getsp.s
|
$(CL) -t atari -o mem.xex mem.c ../getsp.s
|
||||||
multi.xex: multi-xex.s multi-xex.cfg
|
multi.xex: multi-xex.s multi-xex.cfg
|
||||||
cl65 -t atari -C multi-xex.cfg multi-xex.s -o multi.xex
|
$(CL) -t atari -C multi-xex.cfg multi-xex.s -o multi.xex
|
||||||
ostype.xex: ostype.c
|
ostype.xex: ostype.c
|
||||||
cl65 -t atari -o ostype.xex ostype.c
|
$(CL) -t atari -o ostype.xex ostype.c
|
||||||
scrcode.com: scrcode.s
|
scrcode.com: scrcode.s
|
||||||
ca65 -t atari -o scrcode.o scrcode.s
|
# ca65 -t atari -o scrcode.o scrcode.s
|
||||||
ld65 -C atari-asm.cfg -o scrcode.com scrcode.o
|
# ld65 -C atari-asm.cfg -o scrcode.com scrcode.o
|
||||||
|
$(CL) -t atari -C atari-asm.cfg -o scrcode.com scrcode.s
|
||||||
sys.xex: sys.c
|
sys.xex: sys.c
|
||||||
cl65 -t atari -o sys.xex sys.c
|
$(CL) -t atari -o sys.xex sys.c
|
||||||
|
|
||||||
clean:
|
clean:
|
||||||
$(RM) charmapping.xex
|
$(RM) charmapping.xex
|
||||||
|
36
testcode/lib/atari5200/Makefile
Normal file
36
testcode/lib/atari5200/Makefile
Normal file
@ -0,0 +1,36 @@
|
|||||||
|
|
||||||
|
# Just the usual way to find out if we're
|
||||||
|
# using cmd.exe to execute make rules.
|
||||||
|
ifneq ($(shell echo),)
|
||||||
|
CMD_EXE = 1
|
||||||
|
endif
|
||||||
|
|
||||||
|
ifdef CMD_EXE
|
||||||
|
NULLDEV = nul:
|
||||||
|
DEL = -del /f
|
||||||
|
RMDIR = rmdir /s /q
|
||||||
|
else
|
||||||
|
NULLDEV = /dev/null
|
||||||
|
DEL = $(RM)
|
||||||
|
RMDIR = $(RM) -r
|
||||||
|
endif
|
||||||
|
|
||||||
|
ifdef CC65_HOME
|
||||||
|
AS = $(CC65_HOME)/bin/ca65
|
||||||
|
CC = $(CC65_HOME)/bin/cc65
|
||||||
|
CL = $(CC65_HOME)/bin/cl65
|
||||||
|
LD = $(CC65_HOME)/bin/ld65
|
||||||
|
else
|
||||||
|
AS := $(if $(wildcard ../../../bin/ca65*),../../../bin/ca65,ca65)
|
||||||
|
CC := $(if $(wildcard ../../../bin/cc65*),../../../bin/cc65,cc65)
|
||||||
|
CL := $(if $(wildcard ../../../bin/cl65*),../../../bin/cl65,cl65)
|
||||||
|
LD := $(if $(wildcard ../../../bin/ld65*),../../../bin/ld65,ld65)
|
||||||
|
endif
|
||||||
|
|
||||||
|
all: hello
|
||||||
|
|
||||||
|
hello: hello.c
|
||||||
|
$(CL) -t atari5200 -o hello hello.c
|
||||||
|
|
||||||
|
clean:
|
||||||
|
$(RM) hello
|
@ -1,14 +1,42 @@
|
|||||||
|
|
||||||
|
# Just the usual way to find out if we're
|
||||||
|
# using cmd.exe to execute make rules.
|
||||||
|
ifneq ($(shell echo),)
|
||||||
|
CMD_EXE = 1
|
||||||
|
endif
|
||||||
|
|
||||||
|
ifdef CMD_EXE
|
||||||
|
NULLDEV = nul:
|
||||||
|
DEL = -del /f
|
||||||
|
RMDIR = rmdir /s /q
|
||||||
|
else
|
||||||
|
NULLDEV = /dev/null
|
||||||
|
DEL = $(RM)
|
||||||
|
RMDIR = $(RM) -r
|
||||||
|
endif
|
||||||
|
|
||||||
|
ifdef CC65_HOME
|
||||||
|
AS = $(CC65_HOME)/bin/ca65
|
||||||
|
CC = $(CC65_HOME)/bin/cc65
|
||||||
|
CL = $(CC65_HOME)/bin/cl65
|
||||||
|
LD = $(CC65_HOME)/bin/ld65
|
||||||
|
else
|
||||||
|
AS := $(if $(wildcard ../../../bin/ca65*),../../../bin/ca65,ca65)
|
||||||
|
CC := $(if $(wildcard ../../../bin/cc65*),../../../bin/cc65,cc65)
|
||||||
|
CL := $(if $(wildcard ../../../bin/cl65*),../../../bin/cl65,cl65)
|
||||||
|
LD := $(if $(wildcard ../../../bin/ld65*),../../../bin/ld65,ld65)
|
||||||
|
endif
|
||||||
|
|
||||||
all: audiotest.bin lcdtest.bin ctest.bin
|
all: audiotest.bin lcdtest.bin ctest.bin
|
||||||
|
|
||||||
audiotest.bin: audiotest.s
|
audiotest.bin: audiotest.s
|
||||||
../../../bin/cl65 -l audiotest.lst -t gamate -o audiotest.bin audiotest.s
|
$(CL) -l audiotest.lst -t gamate -o audiotest.bin audiotest.s
|
||||||
lcdtest.bin: lcdtest.s
|
lcdtest.bin: lcdtest.s
|
||||||
../../../bin/cl65 -l lcdtest.lst -t gamate -o lcdtest.bin lcdtest.s
|
$(CL) -l lcdtest.lst -t gamate -o lcdtest.bin lcdtest.s
|
||||||
ctest.bin: ctest.c
|
ctest.bin: ctest.c
|
||||||
../../../bin/cl65 -l ctest.lst -t gamate -o ctest.bin ctest.c
|
$(CL) -l ctest.lst -t gamate -o ctest.bin ctest.c
|
||||||
nachtm.bin: nachtm.c
|
nachtm.bin: nachtm.c
|
||||||
../../../bin/cl65 -Os -l nachtm.lst -t gamate -o nachtm.bin nachtm.c
|
$(CL) -Os -l nachtm.lst -t gamate -o nachtm.bin nachtm.c
|
||||||
gamate-fixcart nachtm.bin
|
gamate-fixcart nachtm.bin
|
||||||
|
|
||||||
test1: lcdtest.bin
|
test1: lcdtest.bin
|
||||||
@ -21,5 +49,6 @@ testn: nachtm.bin
|
|||||||
cd ~/Desktop/mame/winmess/ && wine mess.exe gamate -window -skip_gameinfo -cart ~/Desktop/cc65/github/cc65/testcode/lib/gamate/nachtm.bin
|
cd ~/Desktop/mame/winmess/ && wine mess.exe gamate -window -skip_gameinfo -cart ~/Desktop/cc65/github/cc65/testcode/lib/gamate/nachtm.bin
|
||||||
|
|
||||||
clean:
|
clean:
|
||||||
rm -f lcdtest.o audiotest.o ctest.o
|
$(RM) lcdtest.o audiotest.o ctest.o
|
||||||
rm -f lcdtest.bin audiotest.bin ctest.bin nachtm.bin
|
$(RM) lcdtest.bin audiotest.bin ctest.bin nachtm.bin
|
||||||
|
$(RM) audiotest.lst lcdtest.lst ctest.lst
|
||||||
|
@ -1,3 +1,32 @@
|
|||||||
|
|
||||||
|
# Just the usual way to find out if we're
|
||||||
|
# using cmd.exe to execute make rules.
|
||||||
|
ifneq ($(shell echo),)
|
||||||
|
CMD_EXE = 1
|
||||||
|
endif
|
||||||
|
|
||||||
|
ifdef CMD_EXE
|
||||||
|
NULLDEV = nul:
|
||||||
|
DEL = -del /f
|
||||||
|
RMDIR = rmdir /s /q
|
||||||
|
else
|
||||||
|
NULLDEV = /dev/null
|
||||||
|
DEL = $(RM)
|
||||||
|
RMDIR = $(RM) -r
|
||||||
|
endif
|
||||||
|
|
||||||
|
ifdef CC65_HOME
|
||||||
|
AS = $(CC65_HOME)/bin/ca65
|
||||||
|
CC = $(CC65_HOME)/bin/cc65
|
||||||
|
CL = $(CC65_HOME)/bin/cl65
|
||||||
|
LD = $(CC65_HOME)/bin/ld65
|
||||||
|
else
|
||||||
|
AS := $(if $(wildcard ../../../bin/ca65*),../../../bin/ca65,ca65)
|
||||||
|
CC := $(if $(wildcard ../../../bin/cc65*),../../../bin/cc65,cc65)
|
||||||
|
CL := $(if $(wildcard ../../../bin/cl65*),../../../bin/cl65,cl65)
|
||||||
|
LD := $(if $(wildcard ../../../bin/ld65*),../../../bin/ld65,ld65)
|
||||||
|
endif
|
||||||
|
|
||||||
.PHONY: all clean test
|
.PHONY: all clean test
|
||||||
|
|
||||||
# Size of cartridge to generate.
|
# Size of cartridge to generate.
|
||||||
|
Loading…
Reference in New Issue
Block a user