mirror of
https://github.com/cc65/cc65.git
synced 2025-01-25 11:30:06 +00:00
Merge pull request #1653 from mrdudz/movesamples
move some things from targettest to samples
This commit is contained in:
commit
94d1bfc450
@ -154,7 +154,7 @@ endif
|
|||||||
# Lists of subdirectories
|
# Lists of subdirectories
|
||||||
|
|
||||||
# disasm depends on cpp
|
# disasm depends on cpp
|
||||||
DIRLIST = tutorial geos atari2600 supervision cbm
|
DIRLIST = tutorial geos atari2600 atari5200 apple2 gamate supervision sym1 cbm
|
||||||
|
|
||||||
# --------------------------------------------------------------------------
|
# --------------------------------------------------------------------------
|
||||||
# Lists of executables
|
# Lists of executables
|
||||||
@ -170,6 +170,7 @@ EXELIST_apple2 = \
|
|||||||
multdemo \
|
multdemo \
|
||||||
ovrldemo \
|
ovrldemo \
|
||||||
sieve \
|
sieve \
|
||||||
|
tinyshell \
|
||||||
tgidemo
|
tgidemo
|
||||||
|
|
||||||
EXELIST_apple2enh = $(EXELIST_apple2)
|
EXELIST_apple2enh = $(EXELIST_apple2)
|
||||||
@ -183,6 +184,7 @@ EXELIST_atari = \
|
|||||||
multdemo \
|
multdemo \
|
||||||
ovrldemo \
|
ovrldemo \
|
||||||
sieve \
|
sieve \
|
||||||
|
tinyshell \
|
||||||
tgidemo
|
tgidemo
|
||||||
|
|
||||||
EXELIST_atarixl = $(EXELIST_atari)
|
EXELIST_atarixl = $(EXELIST_atari)
|
||||||
@ -212,6 +214,7 @@ EXELIST_c64 = \
|
|||||||
multdemo \
|
multdemo \
|
||||||
ovrldemo \
|
ovrldemo \
|
||||||
sieve \
|
sieve \
|
||||||
|
tinyshell \
|
||||||
tgidemo
|
tgidemo
|
||||||
|
|
||||||
EXELIST_c128 = \
|
EXELIST_c128 = \
|
||||||
@ -222,11 +225,13 @@ EXELIST_c128 = \
|
|||||||
mandelbrot \
|
mandelbrot \
|
||||||
mousedemo \
|
mousedemo \
|
||||||
sieve \
|
sieve \
|
||||||
|
tinyshell \
|
||||||
tgidemo
|
tgidemo
|
||||||
|
|
||||||
EXELIST_c16 = \
|
EXELIST_c16 = \
|
||||||
ascii \
|
ascii \
|
||||||
enumdevdir \
|
enumdevdir \
|
||||||
|
tinyshell \
|
||||||
hello
|
hello
|
||||||
|
|
||||||
EXELIST_cbm510 = \
|
EXELIST_cbm510 = \
|
||||||
@ -234,12 +239,14 @@ EXELIST_cbm510 = \
|
|||||||
gunzip65 \
|
gunzip65 \
|
||||||
hello \
|
hello \
|
||||||
mousedemo \
|
mousedemo \
|
||||||
|
tinyshell \
|
||||||
sieve
|
sieve
|
||||||
|
|
||||||
EXELIST_cbm610 = \
|
EXELIST_cbm610 = \
|
||||||
ascii \
|
ascii \
|
||||||
gunzip65 \
|
gunzip65 \
|
||||||
hello \
|
hello \
|
||||||
|
tinyshell \
|
||||||
sieve
|
sieve
|
||||||
|
|
||||||
EXELIST_creativision = \
|
EXELIST_creativision = \
|
||||||
@ -254,6 +261,7 @@ EXELIST_cx16 = \
|
|||||||
mandelbrot \
|
mandelbrot \
|
||||||
mousedemo \
|
mousedemo \
|
||||||
sieve \
|
sieve \
|
||||||
|
tinyshell \
|
||||||
tgidemo
|
tgidemo
|
||||||
|
|
||||||
EXELIST_gamate = \
|
EXELIST_gamate = \
|
||||||
@ -285,6 +293,7 @@ EXELIST_pet = \
|
|||||||
ascii \
|
ascii \
|
||||||
enumdevdir \
|
enumdevdir \
|
||||||
hello \
|
hello \
|
||||||
|
tinyshell \
|
||||||
sieve
|
sieve
|
||||||
|
|
||||||
EXELIST_plus4 = \
|
EXELIST_plus4 = \
|
||||||
@ -292,6 +301,7 @@ EXELIST_plus4 = \
|
|||||||
enumdevdir \
|
enumdevdir \
|
||||||
gunzip65 \
|
gunzip65 \
|
||||||
hello \
|
hello \
|
||||||
|
tinyshell \
|
||||||
sieve
|
sieve
|
||||||
|
|
||||||
EXELIST_sim6502 = \
|
EXELIST_sim6502 = \
|
||||||
@ -376,6 +386,23 @@ tgidemo: tgidemo.o
|
|||||||
$(LD) -D __HIMEM__=0x6000 $(LDFLAGS) -o $@ -C vic20-tgi.cfg -m $@.map $^ $(SYS).lib
|
$(LD) -D __HIMEM__=0x6000 $(LDFLAGS) -o $@ -C vic20-tgi.cfg -m $@.map $^ $(SYS).lib
|
||||||
endif
|
endif
|
||||||
|
|
||||||
|
# --------------------------------------------------------------------------
|
||||||
|
# some programs link against getsp.o
|
||||||
|
|
||||||
|
getsp.o: getsp.s
|
||||||
|
$(AS) $(ASFLAGS) -t $(SYS) $<
|
||||||
|
|
||||||
|
ifneq ($(SYS),vic20)
|
||||||
|
tinyshell: tinyshell.o getsp.o
|
||||||
|
$(LD) $(LDFLAGS) -t $(SYS) -o $@ $^ $(SYS).lib
|
||||||
|
endif
|
||||||
|
|
||||||
|
# some programs need more memory on the vic20
|
||||||
|
ifeq ($(SYS),vic20)
|
||||||
|
tinyshell: tinyshell.o getsp.o
|
||||||
|
$(LD) $(LDFLAGS) -o $@ -C vic20-32k.cfg -m $@.map $^ $(SYS).lib
|
||||||
|
endif
|
||||||
|
|
||||||
# --------------------------------------------------------------------------
|
# --------------------------------------------------------------------------
|
||||||
# Rule to make a CBM disk with all samples. Needs the c1541 program that comes
|
# Rule to make a CBM disk with all samples. Needs the c1541 program that comes
|
||||||
# with the VICE emulator.
|
# with the VICE emulator.
|
||||||
@ -456,7 +483,10 @@ install:
|
|||||||
$(INSTALL) -d $(DESTDIR)$(samplesdir)/geos
|
$(INSTALL) -d $(DESTDIR)$(samplesdir)/geos
|
||||||
$(INSTALL) -d $(DESTDIR)$(samplesdir)/tutorial
|
$(INSTALL) -d $(DESTDIR)$(samplesdir)/tutorial
|
||||||
$(INSTALL) -d $(DESTDIR)$(samplesdir)/atari2600
|
$(INSTALL) -d $(DESTDIR)$(samplesdir)/atari2600
|
||||||
|
$(INSTALL) -d $(DESTDIR)$(samplesdir)/atari5200
|
||||||
|
$(INSTALL) -d $(DESTDIR)$(samplesdir)/apple2
|
||||||
$(INSTALL) -d $(DESTDIR)$(samplesdir)/cbm
|
$(INSTALL) -d $(DESTDIR)$(samplesdir)/cbm
|
||||||
|
$(INSTALL) -d $(DESTDIR)$(samplesdir)/gamate
|
||||||
$(INSTALL) -d $(DESTDIR)$(samplesdir)/supervision
|
$(INSTALL) -d $(DESTDIR)$(samplesdir)/supervision
|
||||||
$(INSTALL) -m0644 *.* $(DESTDIR)$(samplesdir)
|
$(INSTALL) -m0644 *.* $(DESTDIR)$(samplesdir)
|
||||||
$(INSTALL) -m0644 readme.txt $(DESTDIR)$(samplesdir)
|
$(INSTALL) -m0644 readme.txt $(DESTDIR)$(samplesdir)
|
||||||
@ -464,7 +494,10 @@ install:
|
|||||||
$(INSTALL) -m0644 geos/*.* $(DESTDIR)$(samplesdir)/geos
|
$(INSTALL) -m0644 geos/*.* $(DESTDIR)$(samplesdir)/geos
|
||||||
$(INSTALL) -m0644 tutorial/*.* $(DESTDIR)$(samplesdir)/tutorial
|
$(INSTALL) -m0644 tutorial/*.* $(DESTDIR)$(samplesdir)/tutorial
|
||||||
$(INSTALL) -m0644 atari2600/*.* $(DESTDIR)$(samplesdir)/atari2600
|
$(INSTALL) -m0644 atari2600/*.* $(DESTDIR)$(samplesdir)/atari2600
|
||||||
|
$(INSTALL) -m0644 atari5200/*.* $(DESTDIR)$(samplesdir)/atari5200
|
||||||
|
$(INSTALL) -m0644 apple2/*.* $(DESTDIR)$(samplesdir)/apple2
|
||||||
$(INSTALL) -m0644 cbm/*.* $(DESTDIR)$(samplesdir)/cbm
|
$(INSTALL) -m0644 cbm/*.* $(DESTDIR)$(samplesdir)/cbm
|
||||||
|
$(INSTALL) -m0644 gamate/*.* $(DESTDIR)$(samplesdir)/gamate
|
||||||
$(INSTALL) -m0644 supervision/*.* $(DESTDIR)$(samplesdir)/supervision
|
$(INSTALL) -m0644 supervision/*.* $(DESTDIR)$(samplesdir)/supervision
|
||||||
|
|
||||||
# --------------------------------------------------------------------------
|
# --------------------------------------------------------------------------
|
||||||
@ -477,7 +510,9 @@ zip:
|
|||||||
# Clean-up rules
|
# Clean-up rules
|
||||||
|
|
||||||
mostlyclean:
|
mostlyclean:
|
||||||
@$(DEL) *.lbl *.map *.o *.s 2>$(NULLDEV)
|
@$(DEL) *.lbl *.map *.o 2>$(NULLDEV)
|
||||||
|
# we cant use .s since we have asm files in the directory that we want to keep
|
||||||
|
@$(DEL) ${patsubst %.c,%.s,$(wildcard *.c)} 2>$(NULLDEV)
|
||||||
|
|
||||||
clean: mostlyclean
|
clean: mostlyclean
|
||||||
@$(DEL) $(EXELIST_$(SYS)) $(DISK_$(SYS)) 2>$(NULLDEV)
|
@$(DEL) $(EXELIST_$(SYS)) $(DISK_$(SYS)) 2>$(NULLDEV)
|
||||||
|
@ -1,3 +1,8 @@
|
|||||||
|
|
||||||
|
# Run 'make SYS=<target>'; or, set a SYS env.
|
||||||
|
# var. to build for another target system.
|
||||||
|
SYS ?= apple2
|
||||||
|
|
||||||
# For this one see https://applecommander.github.io/
|
# For this one see https://applecommander.github.io/
|
||||||
AC ?= ac.jar
|
AC ?= ac.jar
|
||||||
|
|
||||||
@ -35,9 +40,9 @@ EXELIST_apple2 = \
|
|||||||
dhgrshow
|
dhgrshow
|
||||||
|
|
||||||
ifneq ($(EXELIST_$(SYS)),)
|
ifneq ($(EXELIST_$(SYS)),)
|
||||||
testcode: $(EXELIST_$(SYS))
|
samples: $(EXELIST_$(SYS))
|
||||||
else
|
else
|
||||||
testcode: notavailable
|
samples: notavailable
|
||||||
endif
|
endif
|
||||||
|
|
||||||
# empty target used to skip systems that will not work with any program in this dir
|
# empty target used to skip systems that will not work with any program in this dir
|
||||||
@ -45,7 +50,7 @@ notavailable:
|
|||||||
ifeq ($(MAKELEVEL),0)
|
ifeq ($(MAKELEVEL),0)
|
||||||
@echo "info: apple2 tests not available for" $(SYS)
|
@echo "info: apple2 tests not available for" $(SYS)
|
||||||
else
|
else
|
||||||
# suppress the "nothing to be done for 'testcode' message
|
# suppress the "nothing to be done for 'samples' message
|
||||||
@echo > $(NULLDEV)
|
@echo > $(NULLDEV)
|
||||||
endif
|
endif
|
||||||
|
|
@ -1,4 +1,8 @@
|
|||||||
|
|
||||||
|
# Run 'make SYS=<target>'; or, set a SYS env.
|
||||||
|
# var. to build for another target system.
|
||||||
|
SYS ?= atari5200
|
||||||
|
|
||||||
# Just the usual way to find out if we're
|
# Just the usual way to find out if we're
|
||||||
# using cmd.exe to execute make rules.
|
# using cmd.exe to execute make rules.
|
||||||
ifneq ($(shell echo),)
|
ifneq ($(shell echo),)
|
||||||
@ -31,9 +35,9 @@ EXELIST_atari5200 = \
|
|||||||
hello
|
hello
|
||||||
|
|
||||||
ifneq ($(EXELIST_$(SYS)),)
|
ifneq ($(EXELIST_$(SYS)),)
|
||||||
testcode: $(EXELIST_$(SYS))
|
samples: $(EXELIST_$(SYS))
|
||||||
else
|
else
|
||||||
testcode: notavailable
|
samples: notavailable
|
||||||
endif
|
endif
|
||||||
|
|
||||||
# empty target used to skip systems that will not work with any program in this dir
|
# empty target used to skip systems that will not work with any program in this dir
|
||||||
@ -41,7 +45,7 @@ notavailable:
|
|||||||
ifeq ($(MAKELEVEL),0)
|
ifeq ($(MAKELEVEL),0)
|
||||||
@echo "info: atari 5200 tests not available for" $(SYS)
|
@echo "info: atari 5200 tests not available for" $(SYS)
|
||||||
else
|
else
|
||||||
# suppress the "nothing to be done for 'testcode' message
|
# suppress the "nothing to be done for 'samples' message
|
||||||
@echo > $(NULLDEV)
|
@echo > $(NULLDEV)
|
||||||
endif
|
endif
|
||||||
|
|
57
samples/gamate/Makefile
Normal file
57
samples/gamate/Makefile
Normal file
@ -0,0 +1,57 @@
|
|||||||
|
|
||||||
|
# Run 'make SYS=<target>'; or, set a SYS env.
|
||||||
|
# var. to build for another target system.
|
||||||
|
SYS ?= gamate
|
||||||
|
|
||||||
|
# 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
|
||||||
|
|
||||||
|
EXELIST_gamate = \
|
||||||
|
nachtm.bin
|
||||||
|
|
||||||
|
ifneq ($(EXELIST_$(SYS)),)
|
||||||
|
samples: $(EXELIST_$(SYS))
|
||||||
|
else
|
||||||
|
samples: notavailable
|
||||||
|
endif
|
||||||
|
|
||||||
|
# empty target used to skip systems that will not work with any program in this dir
|
||||||
|
notavailable:
|
||||||
|
ifeq ($(MAKELEVEL),0)
|
||||||
|
@echo "info: gamate tests not available for" $(SYS)
|
||||||
|
else
|
||||||
|
# suppress the "nothing to be done for 'samples' message
|
||||||
|
@echo > $(NULLDEV)
|
||||||
|
endif
|
||||||
|
|
||||||
|
nachtm.bin: nachtm.c
|
||||||
|
$(CL) -Os -l nachtm.lst -t gamate -o nachtm.bin nachtm.c
|
||||||
|
../../util/gamate/gamate-fixcart nachtm.bin
|
||||||
|
|
||||||
|
clean:
|
||||||
|
@$(DEL) nachtm.bin nachtm.lst 2>$(NULLDEV)
|
12
samples/getsp.s
Normal file
12
samples/getsp.s
Normal file
@ -0,0 +1,12 @@
|
|||||||
|
|
||||||
|
.export _getsp
|
||||||
|
.importzp sp
|
||||||
|
|
||||||
|
.proc _getsp
|
||||||
|
|
||||||
|
ldx sp+1
|
||||||
|
lda sp
|
||||||
|
rts
|
||||||
|
|
||||||
|
.endproc
|
||||||
|
|
@ -1,6 +1,14 @@
|
|||||||
|
|
||||||
This directory contains sample programs for the cc65 compiler.
|
This directory contains sample programs for the cc65 compiler.
|
||||||
|
|
||||||
|
The programs contained here are
|
||||||
|
- used as samples and referenced from within the documentation (this is their
|
||||||
|
main purpose)
|
||||||
|
- installed into the filesystem
|
||||||
|
- compiled (but NOT run) by the CI test
|
||||||
|
|
||||||
|
-----------------------------------------------------------------------------
|
||||||
|
|
||||||
Below is a short description for each of the programs, together with a list
|
Below is a short description for each of the programs, together with a list
|
||||||
of the supported platforms.
|
of the supported platforms.
|
||||||
|
|
||||||
@ -105,6 +113,11 @@ Platforms: All systems with conio and clock support:
|
|||||||
Commander X16, Apple ][ (without timing due to missing clock
|
Commander X16, Apple ][ (without timing due to missing clock
|
||||||
support).
|
support).
|
||||||
|
|
||||||
|
-----------------------------------------------------------------------------
|
||||||
|
Name: tinyshell
|
||||||
|
Description: Simple ("tiny") shell to test filename and directory functions.
|
||||||
|
Platforms: Runs on all platforms that have stdio support
|
||||||
|
|
||||||
-----------------------------------------------------------------------------
|
-----------------------------------------------------------------------------
|
||||||
Name: tgidemo
|
Name: tgidemo
|
||||||
Description: Shows some of the graphics capabilities of the "Tiny Graphics
|
Description: Shows some of the graphics capabilities of the "Tiny Graphics
|
||||||
@ -125,6 +138,37 @@ Description: A "Hello world" type program.
|
|||||||
Platforms: Runs on only the Atari 2600 Video Console System.
|
Platforms: Runs on only the Atari 2600 Video Console System.
|
||||||
-----------------------------------------------------------------------------
|
-----------------------------------------------------------------------------
|
||||||
|
|
||||||
|
atari 5200:
|
||||||
|
-----------
|
||||||
|
|
||||||
|
Name: hello
|
||||||
|
Description: A "Hello world" type program.
|
||||||
|
Platforms: Runs on only the Atari 5200 Video Console System.
|
||||||
|
-----------------------------------------------------------------------------
|
||||||
|
|
||||||
|
apple2:
|
||||||
|
-------
|
||||||
|
|
||||||
|
Name: hgrtest
|
||||||
|
Description: shows how to incorporate a hires screen right into the binary,
|
||||||
|
thus allowing to place content both below and above the hires
|
||||||
|
video ram without multiple files nor copying stuff around (plus
|
||||||
|
having a nice splash screen as bonus). It basically demos how to
|
||||||
|
make use of apple2-hgr.cfg.
|
||||||
|
|
||||||
|
Name: hgrshow
|
||||||
|
Description: is a (single) hires program showing how to load (single) hires
|
||||||
|
screens from files without support from TGI. TGI could be used
|
||||||
|
to "paint" on the loaded screens.
|
||||||
|
|
||||||
|
Name: dhgrshow
|
||||||
|
Description: is a double hires program showing how to load double hires
|
||||||
|
screens from files. TGI is used for most of the I/O address
|
||||||
|
manipulation, but (in contrast to hgrshow) is not actually
|
||||||
|
functional.
|
||||||
|
|
||||||
|
-----------------------------------------------------------------------------
|
||||||
|
|
||||||
cbm:
|
cbm:
|
||||||
----
|
----
|
||||||
|
|
||||||
@ -147,6 +191,32 @@ Platforms: The program needs a VIC-II or a TED, so it runs on the following
|
|||||||
C64, C128, CBM510, Plus/4.
|
C64, C128, CBM510, Plus/4.
|
||||||
-----------------------------------------------------------------------------
|
-----------------------------------------------------------------------------
|
||||||
|
|
||||||
|
gamate:
|
||||||
|
-------
|
||||||
|
|
||||||
|
Name: nachtm
|
||||||
|
Description: Plays "Eine kleine Nachtmusik" by Wolfgang Amadeus Mozart.
|
||||||
|
-----------------------------------------------------------------------------
|
||||||
|
|
||||||
|
sym1:
|
||||||
|
-----
|
||||||
|
|
||||||
|
Name: symHello
|
||||||
|
Description: Hello World for Sym-1
|
||||||
|
|
||||||
|
Name: symTiny
|
||||||
|
Description: Hello World for Sym-1 (tiny version without printf)
|
||||||
|
|
||||||
|
Name: symDisplay
|
||||||
|
Description: Sym-1 front panel display example
|
||||||
|
|
||||||
|
Name: symIO
|
||||||
|
Description: Sym-1 digital I/O interface example
|
||||||
|
|
||||||
|
Name: symNotepad
|
||||||
|
Description: Sym-1 Notepad
|
||||||
|
|
||||||
|
-----------------------------------------------------------------------------
|
||||||
|
|
||||||
supervision:
|
supervision:
|
||||||
------------
|
------------
|
||||||
|
@ -1,3 +1,8 @@
|
|||||||
|
|
||||||
|
# Run 'make SYS=<target>'; or, set a SYS env.
|
||||||
|
# var. to build for another target system.
|
||||||
|
SYS ?= sym1
|
||||||
|
|
||||||
# Just the usual way to find out if we're
|
# Just the usual way to find out if we're
|
||||||
# using cmd.exe to execute make rules.
|
# using cmd.exe to execute make rules.
|
||||||
ifneq ($(shell echo),)
|
ifneq ($(shell echo),)
|
||||||
@ -30,9 +35,9 @@ EXELIST_sym1 = \
|
|||||||
symHello.bin symTiny.bin symDisplay.bin symIO.bin symNotepad.bin
|
symHello.bin symTiny.bin symDisplay.bin symIO.bin symNotepad.bin
|
||||||
|
|
||||||
ifneq ($(EXELIST_$(SYS)),)
|
ifneq ($(EXELIST_$(SYS)),)
|
||||||
testcode: $(EXELIST_$(SYS))
|
samples: $(EXELIST_$(SYS))
|
||||||
else
|
else
|
||||||
testcode: notavailable
|
samples: notavailable
|
||||||
endif
|
endif
|
||||||
|
|
||||||
# empty target used to skip systems that will not work with any program in this dir
|
# empty target used to skip systems that will not work with any program in this dir
|
||||||
@ -40,7 +45,7 @@ notavailable:
|
|||||||
ifeq ($(MAKELEVEL),0)
|
ifeq ($(MAKELEVEL),0)
|
||||||
@echo "info: sym1 tests not available for" $(SYS)
|
@echo "info: sym1 tests not available for" $(SYS)
|
||||||
else
|
else
|
||||||
# suppress the "nothing to be done for 'testcode' message
|
# suppress the "nothing to be done for 'samples' message
|
||||||
@echo > $(NULLDEV)
|
@echo > $(NULLDEV)
|
||||||
endif
|
endif
|
||||||
|
|
@ -174,7 +174,7 @@ endif
|
|||||||
# --------------------------------------------------------------------------
|
# --------------------------------------------------------------------------
|
||||||
# Lists of subdirectories
|
# Lists of subdirectories
|
||||||
|
|
||||||
DIRLIST = accelerator apple2 atari atari5200 cbm gamate pce sym1
|
DIRLIST = accelerator atari cbm gamate pce
|
||||||
|
|
||||||
# --------------------------------------------------------------------------
|
# --------------------------------------------------------------------------
|
||||||
# Lists of executables
|
# Lists of executables
|
||||||
@ -211,7 +211,6 @@ EXELIST_c64 = \
|
|||||||
strnlen \
|
strnlen \
|
||||||
stroserror-test \
|
stroserror-test \
|
||||||
strqtok-test \
|
strqtok-test \
|
||||||
tinyshell \
|
|
||||||
uname-test
|
uname-test
|
||||||
|
|
||||||
# omitted: seek
|
# omitted: seek
|
||||||
@ -246,7 +245,6 @@ EXELIST_c128 = \
|
|||||||
strnlen \
|
strnlen \
|
||||||
stroserror-test \
|
stroserror-test \
|
||||||
strqtok-test \
|
strqtok-test \
|
||||||
tinyshell \
|
|
||||||
uname-test
|
uname-test
|
||||||
|
|
||||||
|
|
||||||
@ -278,7 +276,6 @@ EXELIST_c16 = \
|
|||||||
strnlen \
|
strnlen \
|
||||||
stroserror-test \
|
stroserror-test \
|
||||||
strqtok-test \
|
strqtok-test \
|
||||||
tinyshell \
|
|
||||||
uname-test
|
uname-test
|
||||||
|
|
||||||
# omitted: seek ser-test
|
# omitted: seek ser-test
|
||||||
@ -312,7 +309,6 @@ EXELIST_cbm510 = \
|
|||||||
strnlen \
|
strnlen \
|
||||||
stroserror-test \
|
stroserror-test \
|
||||||
strqtok-test \
|
strqtok-test \
|
||||||
tinyshell \
|
|
||||||
uname-test
|
uname-test
|
||||||
|
|
||||||
# omitted: joy-test mouse-test seek
|
# omitted: joy-test mouse-test seek
|
||||||
@ -345,7 +341,6 @@ EXELIST_cbm610 = \
|
|||||||
strnlen \
|
strnlen \
|
||||||
stroserror-test \
|
stroserror-test \
|
||||||
strqtok-test \
|
strqtok-test \
|
||||||
tinyshell \
|
|
||||||
uname-test
|
uname-test
|
||||||
|
|
||||||
# omitted: clock-test em-test mouse-test seek ser-test
|
# omitted: clock-test em-test mouse-test seek ser-test
|
||||||
@ -376,7 +371,6 @@ EXELIST_pet = \
|
|||||||
strnlen \
|
strnlen \
|
||||||
stroserror-test \
|
stroserror-test \
|
||||||
strqtok-test \
|
strqtok-test \
|
||||||
tinyshell \
|
|
||||||
uname-test
|
uname-test
|
||||||
|
|
||||||
# omitted: clock-test em-test mouse-test seek
|
# omitted: clock-test em-test mouse-test seek
|
||||||
@ -408,7 +402,6 @@ EXELIST_plus4 = \
|
|||||||
strnlen \
|
strnlen \
|
||||||
stroserror-test \
|
stroserror-test \
|
||||||
strqtok-test \
|
strqtok-test \
|
||||||
tinyshell \
|
|
||||||
uname-test
|
uname-test
|
||||||
|
|
||||||
# omitted: seek clock-test mouse-test ser-test
|
# omitted: seek clock-test mouse-test ser-test
|
||||||
@ -440,7 +433,6 @@ EXELIST_vic20 = \
|
|||||||
strnlen \
|
strnlen \
|
||||||
stroserror-test \
|
stroserror-test \
|
||||||
strqtok-test \
|
strqtok-test \
|
||||||
tinyshell \
|
|
||||||
uname-test
|
uname-test
|
||||||
|
|
||||||
# omitted: cpeek-test, clock
|
# omitted: cpeek-test, clock
|
||||||
@ -474,7 +466,6 @@ EXELIST_apple2 = \
|
|||||||
strnlen \
|
strnlen \
|
||||||
stroserror-test \
|
stroserror-test \
|
||||||
strqtok-test \
|
strqtok-test \
|
||||||
tinyshell \
|
|
||||||
uname-test
|
uname-test
|
||||||
|
|
||||||
EXELIST_apple2enh = $(EXELIST_apple2)
|
EXELIST_apple2enh = $(EXELIST_apple2)
|
||||||
@ -511,13 +502,12 @@ EXELIST_atari = \
|
|||||||
strnlen \
|
strnlen \
|
||||||
stroserror-test \
|
stroserror-test \
|
||||||
strqtok-test \
|
strqtok-test \
|
||||||
tinyshell \
|
|
||||||
uname-test
|
uname-test
|
||||||
|
|
||||||
EXELIST_atarixl = $(EXELIST_atari)
|
EXELIST_atarixl = $(EXELIST_atari)
|
||||||
|
|
||||||
# omitted: clock-test cpeek-test deb dir-test em-test exec-test1 exec-test2
|
# omitted: clock-test cpeek-test deb dir-test em-test exec-test1 exec-test2
|
||||||
# joy-test mouse-test rename-test seek ser-test stroserror-test tinyshell
|
# joy-test mouse-test rename-test seek ser-test stroserror-test
|
||||||
EXELIST_telestrat = \
|
EXELIST_telestrat = \
|
||||||
minimal \
|
minimal \
|
||||||
arg-test \
|
arg-test \
|
||||||
@ -542,7 +532,7 @@ EXELIST_telestrat = \
|
|||||||
# omitted: arg-test clock-test clock cpeek-test conio cprintf cursor deb dir-test
|
# omitted: arg-test clock-test clock cpeek-test conio cprintf cursor deb dir-test
|
||||||
# em-test exec-test1 exec-test2 fileio-test ft getopt-test heaptest joy-test
|
# em-test exec-test1 exec-test2 fileio-test ft getopt-test heaptest joy-test
|
||||||
# mouse-test mul-test posixio-test rename-test scanf-test seek ser-test strdup-test
|
# mouse-test mul-test posixio-test rename-test scanf-test seek ser-test strdup-test
|
||||||
# stroserror-test tinyshell uname-test
|
# stroserror-test uname-test
|
||||||
EXELIST_sym1 = \
|
EXELIST_sym1 = \
|
||||||
minimal \
|
minimal \
|
||||||
div-test \
|
div-test \
|
||||||
@ -551,7 +541,7 @@ EXELIST_sym1 = \
|
|||||||
strqtok-test
|
strqtok-test
|
||||||
|
|
||||||
# omitted: clock-test cpeek-test conio deb dir-test em-test exec-test1 exec-test2
|
# omitted: clock-test cpeek-test conio deb dir-test em-test exec-test1 exec-test2
|
||||||
# fileio-test ft mouse-test posixio-test rename-test seek ser-test tinyshell
|
# fileio-test ft mouse-test posixio-test rename-test seek ser-test
|
||||||
EXELIST_atmos = \
|
EXELIST_atmos = \
|
||||||
minimal \
|
minimal \
|
||||||
arg-test \
|
arg-test \
|
||||||
@ -574,7 +564,7 @@ EXELIST_atmos = \
|
|||||||
# omitted: arg-test clock-test clock cpeek-test conio cprintf deb dir-test div-test
|
# omitted: arg-test clock-test clock cpeek-test conio cprintf deb dir-test div-test
|
||||||
# em-test exec-test1 exec-test2 fileio-test ft getopt-test heaptest joy-test moddiv-test
|
# em-test exec-test1 exec-test2 fileio-test ft getopt-test heaptest joy-test moddiv-test
|
||||||
# mouse-test mul-test posixio-test rename-test scanf-test seek ser-test strdup-test
|
# mouse-test mul-test posixio-test rename-test scanf-test seek ser-test strdup-test
|
||||||
# strnlen stroserror-test strqtok-test tinyshell uname-test
|
# strnlen stroserror-test strqtok-test uname-test
|
||||||
EXELIST_creativision = \
|
EXELIST_creativision = \
|
||||||
minimal \
|
minimal \
|
||||||
cursor
|
cursor
|
||||||
@ -609,13 +599,12 @@ EXELIST_cx16 = \
|
|||||||
strnlen \
|
strnlen \
|
||||||
stroserror-test \
|
stroserror-test \
|
||||||
strqtok-test \
|
strqtok-test \
|
||||||
tinyshell \
|
|
||||||
uname-test
|
uname-test
|
||||||
|
|
||||||
# omitted: arg-test clock-test clock cpeek-test cprintf cursor deb dir-test div-test
|
# omitted: arg-test clock-test clock cpeek-test cprintf cursor deb dir-test div-test
|
||||||
# em-test exec-test1 exec-test2 fileio-test ft getopt-test heaptest joy-test moddiv-test
|
# em-test exec-test1 exec-test2 fileio-test ft getopt-test heaptest joy-test moddiv-test
|
||||||
# mouse-test mul-test posixio-test rename-test scanf-test seek ser-test strdup-test
|
# mouse-test mul-test posixio-test rename-test scanf-test seek ser-test strdup-test
|
||||||
# strnlen stroserror-test strqtok-test tinyshell uname-test
|
# strnlen stroserror-test strqtok-test uname-test
|
||||||
EXELIST_nes = \
|
EXELIST_nes = \
|
||||||
minimal \
|
minimal \
|
||||||
conio
|
conio
|
||||||
@ -623,7 +612,7 @@ EXELIST_nes = \
|
|||||||
# omitted: arg-test clock-test clock cpeek-test cprintf cursor deb dir-test div-test
|
# omitted: arg-test clock-test clock cpeek-test cprintf cursor deb dir-test div-test
|
||||||
# em-test exec-test1 exec-test2 fileio-test ft getopt-test heaptest joy-test moddiv-test
|
# em-test exec-test1 exec-test2 fileio-test ft getopt-test heaptest joy-test moddiv-test
|
||||||
# mouse-test mul-test posixio-test rename-test scanf-test seek ser-test strdup-test
|
# mouse-test mul-test posixio-test rename-test scanf-test seek ser-test strdup-test
|
||||||
# strnlen stroserror-test strqtok-test tinyshell uname-test
|
# strnlen stroserror-test strqtok-test uname-test
|
||||||
EXELIST_pce = \
|
EXELIST_pce = \
|
||||||
minimal \
|
minimal \
|
||||||
conio
|
conio
|
||||||
@ -631,7 +620,7 @@ EXELIST_pce = \
|
|||||||
# omitted: arg-test clock-test clock cpeek-test conio cprintf deb dir-test div-test
|
# omitted: arg-test clock-test clock cpeek-test conio cprintf deb dir-test div-test
|
||||||
# em-test exec-test1 exec-test2 fileio-test ft getopt-test heaptest joy-test moddiv-test
|
# em-test exec-test1 exec-test2 fileio-test ft getopt-test heaptest joy-test moddiv-test
|
||||||
# mouse-test posixio-test rename-test scanf-test seek ser-test strdup-test strnlen
|
# mouse-test posixio-test rename-test scanf-test seek ser-test strdup-test strnlen
|
||||||
# stroserror-test strqtok-test tinyshell uname-test
|
# stroserror-test strqtok-test uname-test
|
||||||
EXELIST_osic1p = \
|
EXELIST_osic1p = \
|
||||||
minimal \
|
minimal \
|
||||||
cursor \
|
cursor \
|
||||||
@ -640,7 +629,7 @@ EXELIST_osic1p = \
|
|||||||
# omitted: arg-test clock-test clock cpeek-test conio cprintf deb dir-test div-test
|
# omitted: arg-test clock-test clock cpeek-test conio cprintf deb dir-test div-test
|
||||||
# em-test exec-test1 exec-test2 fileio-test ft getopt-test heaptest joy-test moddiv-test
|
# em-test exec-test1 exec-test2 fileio-test ft getopt-test heaptest joy-test moddiv-test
|
||||||
# mouse-test posixio-test rename-test scanf-test seek ser-test strdup-test strnlen
|
# mouse-test posixio-test rename-test scanf-test seek ser-test strdup-test strnlen
|
||||||
# stroserror-test strqtok-test tinyshell uname-test
|
# stroserror-test strqtok-test uname-test
|
||||||
EXELIST_geos-apple = \
|
EXELIST_geos-apple = \
|
||||||
minimal \
|
minimal \
|
||||||
cursor \
|
cursor \
|
||||||
@ -649,7 +638,7 @@ EXELIST_geos-apple = \
|
|||||||
# omitted: arg-test clock-test clock cpeek-test conio cprintf deb dir-test div-test
|
# omitted: arg-test clock-test clock cpeek-test conio cprintf deb dir-test div-test
|
||||||
# em-test exec-test1 exec-test2 fileio-test ft getopt-test heaptest joy-test moddiv-test
|
# em-test exec-test1 exec-test2 fileio-test ft getopt-test heaptest joy-test moddiv-test
|
||||||
# mouse-test posixio-test rename-test scanf-test seek ser-test strdup-test strnlen
|
# mouse-test posixio-test rename-test scanf-test seek ser-test strdup-test strnlen
|
||||||
# stroserror-test strqtok-test tinyshell uname-test
|
# stroserror-test strqtok-test uname-test
|
||||||
|
|
||||||
EXELIST_geos-cbm = \
|
EXELIST_geos-cbm = \
|
||||||
minimal \
|
minimal \
|
||||||
@ -658,7 +647,7 @@ EXELIST_geos-cbm = \
|
|||||||
|
|
||||||
# omitted: clock clock-test conio cpeek-test cprintf cursor deb dir-test em-test
|
# omitted: clock clock-test conio cpeek-test cprintf cursor deb dir-test em-test
|
||||||
# exec-test1 exec-test2 ft heaptest joy-test mouse-test mul-test rename-test seek
|
# exec-test1 exec-test2 ft heaptest joy-test mouse-test mul-test rename-test seek
|
||||||
# ser-test strdup-test stroserror-test tinyshell uname-test
|
# ser-test strdup-test stroserror-test uname-test
|
||||||
EXELIST_sim6502 = \
|
EXELIST_sim6502 = \
|
||||||
minimal \
|
minimal \
|
||||||
arg-test \
|
arg-test \
|
||||||
@ -739,9 +728,6 @@ mouse-test: mouse-test.o getsp.o
|
|||||||
ifneq ($(SYS),vic20)
|
ifneq ($(SYS),vic20)
|
||||||
ft: ft.o getsp.o
|
ft: ft.o getsp.o
|
||||||
$(LD) $(LDFLAGS) -t $(SYS) -o $@ $^ $(SYS).lib
|
$(LD) $(LDFLAGS) -t $(SYS) -o $@ $^ $(SYS).lib
|
||||||
|
|
||||||
tinyshell: tinyshell.o getsp.o
|
|
||||||
$(LD) $(LDFLAGS) -t $(SYS) -o $@ $^ $(SYS).lib
|
|
||||||
endif
|
endif
|
||||||
|
|
||||||
# some programs need more memory on the vic20
|
# some programs need more memory on the vic20
|
||||||
@ -749,9 +735,6 @@ endif
|
|||||||
ifeq ($(SYS),vic20)
|
ifeq ($(SYS),vic20)
|
||||||
ft: ft.o getsp.o
|
ft: ft.o getsp.o
|
||||||
$(LD) $(LDFLAGS) -o $@ -C vic20-32k.cfg -m $@.map $^ $(SYS).lib
|
$(LD) $(LDFLAGS) -o $@ -C vic20-32k.cfg -m $@.map $^ $(SYS).lib
|
||||||
|
|
||||||
tinyshell: tinyshell.o getsp.o
|
|
||||||
$(LD) $(LDFLAGS) -o $@ -C vic20-32k.cfg -m $@.map $^ $(SYS).lib
|
|
||||||
endif
|
endif
|
||||||
|
|
||||||
# --------------------------------------------------------------------------
|
# --------------------------------------------------------------------------
|
||||||
|
@ -1,4 +1,8 @@
|
|||||||
|
|
||||||
|
# Run 'make SYS=<target>'; or, set a SYS env.
|
||||||
|
# var. to build for another target system.
|
||||||
|
SYS ?= atari
|
||||||
|
|
||||||
# Just the usual way to find out if we're
|
# Just the usual way to find out if we're
|
||||||
# using cmd.exe to execute make rules.
|
# using cmd.exe to execute make rules.
|
||||||
ifneq ($(shell echo),)
|
ifneq ($(shell echo),)
|
||||||
|
@ -1,4 +1,8 @@
|
|||||||
|
|
||||||
|
# Run 'make SYS=<target>'; or, set a SYS env.
|
||||||
|
# var. to build for another target system.
|
||||||
|
SYS ?= gamate
|
||||||
|
|
||||||
# Just the usual way to find out if we're
|
# Just the usual way to find out if we're
|
||||||
# using cmd.exe to execute make rules.
|
# using cmd.exe to execute make rules.
|
||||||
ifneq ($(shell echo),)
|
ifneq ($(shell echo),)
|
||||||
@ -51,9 +55,6 @@ lcdtest.bin: lcdtest.s
|
|||||||
$(CL) -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
|
||||||
$(CL) -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
|
|
||||||
$(CL) -Os -l nachtm.lst -t gamate -o nachtm.bin nachtm.c
|
|
||||||
gamate-fixcart nachtm.bin
|
|
||||||
|
|
||||||
clean:
|
clean:
|
||||||
@$(DEL) lcdtest.o audiotest.o ctest.o 2>$(NULLDEV)
|
@$(DEL) lcdtest.o audiotest.o ctest.o 2>$(NULLDEV)
|
||||||
|
@ -1,4 +1,8 @@
|
|||||||
|
|
||||||
|
# Run 'make SYS=<target>'; or, set a SYS env.
|
||||||
|
# var. to build for another target system.
|
||||||
|
SYS ?= pce
|
||||||
|
|
||||||
# Just the usual way to find out if we're
|
# Just the usual way to find out if we're
|
||||||
# using cmd.exe to execute make rules.
|
# using cmd.exe to execute make rules.
|
||||||
ifneq ($(shell echo),)
|
ifneq ($(shell echo),)
|
||||||
|
9
targettest/readme.txt
Normal file
9
targettest/readme.txt
Normal file
@ -0,0 +1,9 @@
|
|||||||
|
|
||||||
|
This directory contains test programs for the cc65 compiler.
|
||||||
|
|
||||||
|
The programs contained here are
|
||||||
|
- NOT to be referenced in the documentation
|
||||||
|
- compiled (but NOT run) by the CI test (this is their main purpose)
|
||||||
|
- some programs can be used interactively to check certain library features
|
||||||
|
|
||||||
|
Sample programs ment for endusers should be placed in the samples directory.
|
Loading…
x
Reference in New Issue
Block a user