From 4df0938639f51965ccebe9fc9522ccb820cf95a2 Mon Sep 17 00:00:00 2001 From: sECuRE Date: Tue, 23 Oct 2007 13:56:47 +0000 Subject: [PATCH] create src/images/include-folders to clean up the directory git-svn-id: https://shell.noname-ev.de/svn/kasse/c128@52 af93e077-1a23-4f1e-9cbe-9382a9d578f5 --- Makefile | 15 +++++++-------- kasse.d64 => images/kasse.d64 | Bin test.d64 => images/test.d64 | Bin config.h => include/config.h | 0 credit_manager.h => include/credit_manager.h | 0 general.h => include/general.h | 0 kasse.h => include/kasse.h | 0 time.h => include/time.h | 0 config.c => src/config.c | 0 credit_manager.c => src/credit_manager.c | 0 general.c => src/general.c | 0 kasse.c => src/kasse.c | 0 time.c => src/time.c | 0 test.c => test/test.c | 0 14 files changed, 7 insertions(+), 8 deletions(-) rename kasse.d64 => images/kasse.d64 (100%) rename test.d64 => images/test.d64 (100%) rename config.h => include/config.h (100%) rename credit_manager.h => include/credit_manager.h (100%) rename general.h => include/general.h (100%) rename kasse.h => include/kasse.h (100%) rename time.h => include/time.h (100%) rename config.c => src/config.c (100%) rename credit_manager.c => src/credit_manager.c (100%) rename general.c => src/general.c (100%) rename kasse.c => src/kasse.c (100%) rename time.c => src/time.c (100%) rename test.c => test/test.c (100%) diff --git a/Makefile b/Makefile index 3bc9044..9224028 100644 --- a/Makefile +++ b/Makefile @@ -1,20 +1,20 @@ # Note: this are my paths to cc65 as there is no gentoo ebuild, sorry for that. # Please use the path below if you've installed cc65 system-wide -CC=~/customSoftware/cc65-2.11.0/src/cc65/cc65 -I ~/customSoftware/cc65-2.11.0/include -O +CC=~/customSoftware/cc65-2.11.0/src/cc65/cc65 -I ~/customSoftware/cc65-2.11.0/include CA=~/customSoftware/cc65-2.11.0/src/ca65/ca65 CL=~/customSoftware/cc65-2.11.0/src/cl65/cl65 # CC=cc65 # CA=ca65 # CL=cl65 -%.o: %.c - ${CC} -t c128 $< - ${CA} -t c128 $$(basename $< .c).s +src/%.o: src/%.c include/%.h + ${CC} -I include -t c128 $< + ${CA} -I include -t c128 src/$$(basename $< .c).s -all: config.o kasse.o general.o credit_manager.o time.o +all: src/config.o src/kasse.o src/general.o src/credit_manager.o src/time.o # See above, please just kill the PATH-definition cp /tmp/cc65/lib/c128* . - PATH=${PATH}:~/customSoftware/cc65-2.11.0/src/ld65:/tmp/cc65/lib ${CL} -t c128 *.o -o kasse + PATH=${PATH}:~/customSoftware/cc65-2.11.0/src/ld65:/tmp/cc65/lib ${CL} -t c128 -O src/*.o -o kasse package: all c1541 -attach kasse.d64 -delete state || exit 0 @@ -36,8 +36,7 @@ test-package: test c1541 -attach test.d64 -write items || exit 0 clean: - rm -rf *.o *.s + rm -rf src/*.o src/*.s dist-clean: clean rm kasse test - diff --git a/kasse.d64 b/images/kasse.d64 similarity index 100% rename from kasse.d64 rename to images/kasse.d64 diff --git a/test.d64 b/images/test.d64 similarity index 100% rename from test.d64 rename to images/test.d64 diff --git a/config.h b/include/config.h similarity index 100% rename from config.h rename to include/config.h diff --git a/credit_manager.h b/include/credit_manager.h similarity index 100% rename from credit_manager.h rename to include/credit_manager.h diff --git a/general.h b/include/general.h similarity index 100% rename from general.h rename to include/general.h diff --git a/kasse.h b/include/kasse.h similarity index 100% rename from kasse.h rename to include/kasse.h diff --git a/time.h b/include/time.h similarity index 100% rename from time.h rename to include/time.h diff --git a/config.c b/src/config.c similarity index 100% rename from config.c rename to src/config.c diff --git a/credit_manager.c b/src/credit_manager.c similarity index 100% rename from credit_manager.c rename to src/credit_manager.c diff --git a/general.c b/src/general.c similarity index 100% rename from general.c rename to src/general.c diff --git a/kasse.c b/src/kasse.c similarity index 100% rename from kasse.c rename to src/kasse.c diff --git a/time.c b/src/time.c similarity index 100% rename from time.c rename to src/time.c diff --git a/test.c b/test/test.c similarity index 100% rename from test.c rename to test/test.c -- 2.39.5