From: Alan Cox Date: Thu, 20 Oct 2016 16:45:56 +0000 (+0100) Subject: v7: add a Makefile for the v7 games X-Git-Url: https://git.ndcode.org/public/gitweb.cgi?a=commitdiff_plain;h=8697fb567f4d1a68eff849e3687511aa256f69ec;p=FUZIX.git v7: add a Makefile for the v7 games --- diff --git a/Applications/V7/games/Makefile b/Applications/V7/games/Makefile new file mode 100644 index 00000000..43520aa9 --- /dev/null +++ b/Applications/V7/games/Makefile @@ -0,0 +1,54 @@ +CC = sdcc +ASM = sdasz80 +AR = sdar +LINKER = sdcc +FCC = ../../../Library/tools/fcc +FCCOPTS = -O2 +PLATFORM = +#PLATFORM = -tzx128 + +PROGLOAD=`(cat ../../../Kernel/platform/config.h; echo PROGLOAD) | cpp -E | tail -n1` + +.SUFFIXES: .c .rel + +SRCS = arithmetic.c backgammon.c fish.c wump.c + +SRCSBAD = + +OBJS = $(SRCS:.c=.rel) +OBJSNS = $(SRCSNS:.c=.rel) +OBJSBAD = $(SRCSBAD:.c=.rel) + +LIBS = ../../../Library/libs/syslib.lib + +APPSNS = $(OBJSNS:.rel=) + +APPS = $(OBJS:.rel=) $(OBJSBAD:.rel=) $(OBJSNS:.rel=) + +all: $(APPS) sizes + + +$(APPSNS): OPTS = --nostdio + +$(OBJS): %.rel: %.c + +$(OBJSNS): %.rel: %.c + +$(OBJSBAD): %.rel: %.c + $(FCC) $(PLATFORM) -c $< + +.c.rel: + $(FCC) $(PLATFORM) $(FCCOPTS) -c $< + +%: %.rel + $(FCC) $(PLATFORM) $(OPTS) $< -o $@ + +sizes: $(APPS) + ls -l $(APPS) >size.report + +clean: + rm -f $(OBJS) $(APPS) $(SRCS:.c=) core *~ *.asm *.lst *.sym *.map *.noi *.lk *.ihx *.tmp *.bin size.report + +rmbak: + rm -f *~ core +