From 69f81f6d67a2fb3127adbca68f508c65c1d4dd33 Mon Sep 17 00:00:00 2001 From: Christian Groessler Date: Sat, 1 Mar 2014 13:10:01 +0100 Subject: [PATCH] make 'w2cas' a targetutil --- doc/atari.sgml | 2 +- libsrc/Makefile | 1 + libsrc/atari/targetutil/Makefile.inc | 14 ++++++++++++++ {util/atari => libsrc/atari/targetutil}/w2cas.c | 0 4 files changed, 16 insertions(+), 1 deletion(-) create mode 100644 libsrc/atari/targetutil/Makefile.inc rename {util/atari => libsrc/atari/targetutil}/w2cas.c (100%) diff --git a/doc/atari.sgml b/doc/atari.sgml index 781fdf03b..867f25c1d 100644 --- a/doc/atari.sgml +++ b/doc/atari.sgml @@ -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. To write the generated file to a cassette, a utility to run -on an Atari is provided ( diff --git a/libsrc/Makefile b/libsrc/Makefile index 3d8277ae5..89f952376 100644 --- a/libsrc/Makefile +++ b/libsrc/Makefile @@ -102,6 +102,7 @@ MKINC = $(GEOS) \ nes TARGETUTIL = apple2 \ + atari \ geos-apple GEOSDIRS = common \ diff --git a/libsrc/atari/targetutil/Makefile.inc b/libsrc/atari/targetutil/Makefile.inc new file mode 100644 index 000000000..eb371e111 --- /dev/null +++ b/libsrc/atari/targetutil/Makefile.inc @@ -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 diff --git a/util/atari/w2cas.c b/libsrc/atari/targetutil/w2cas.c similarity index 100% rename from util/atari/w2cas.c rename to libsrc/atari/targetutil/w2cas.c -- 2.39.5