make 'w2cas' a targetutil

This commit is contained in:
Christian Groessler 2014-03-01 13:10:01 +01:00
parent dec2376195
commit 69f81f6d67
4 changed files with 16 additions and 1 deletions

View file

@ -230,7 +230,7 @@ The size of a cassette boot file is restricted to 32K. Larger programs
would need to be split in more parts and the parts to be loaded manually. would need to be split in more parts and the parts to be loaded manually.
To write the generated file to a cassette, a utility to run To write the generated file to a cassette, a utility to run
on an Atari is provided (<tt/util&sol;atari&sol;w2cas.c/). on an Atari is provided (<tt/W2CAS.COM/).
<sect1><tt/atarixl/ config files<p> <sect1><tt/atarixl/ config files<p>

View file

@ -102,6 +102,7 @@ MKINC = $(GEOS) \
nes nes
TARGETUTIL = apple2 \ TARGETUTIL = apple2 \
atari \
geos-apple geos-apple
GEOSDIRS = common \ GEOSDIRS = common \

View file

@ -0,0 +1,14 @@
ifeq ($(TARGET),atari)
DEPS += ../wrk/$(TARGET)/w2cas.d
../wrk/$(TARGET)/w2cas.o: CC65FLAGS:=-O -W error
../wrk/$(TARGET)/w2cas.o: $(SRCDIR)/targetutil/w2cas.c | ../wrk/$(TARGET)
$(COMPILE_recipe)
../targetutil/W2CAS.COM: ../wrk/$(TARGET)/w2cas.o ../lib/$(TARGET).lib | ../targetutil
$(LD65) -o $@ -t $(TARGET) $^
$(TARGET): ../targetutil/W2CAS.COM
endif