-FCC = ../../../Library/tools/fcc -m$(USERCPU)
+FCC = ../../../Library/tools/fcc -m$(USERCPU) $(Z80_PLATFORM)
FCCOPTS = -O2
-PLATFORM =
-#PLATFORM = -tzx128
-
-PROGLOAD=`(cat ../../Kernel/platform/config.h; echo PROGLOAD) | cpp -E | tail -n1`
.SUFFIXES: .c .rel .y
$(FCC) $(PLATFORM) $(FCCOPTS) -c $<
%: %.rel
- $(FCC) $(PLATFORM) $(OPTS) $< -o $@
+ $(FCC) $(PLATFORM) $(FCCOPTS) $< -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
+ rm -f $(OBJS) $(APPS) $(SRCS:.c=) core *~ *.y *.asm *.lst *.sym *.map *.noi *.lk *.ihx *.tmp *.bin size.report
rmbak:
rm -f *~ core
FCC = ../../../../Library/tools/fcc -m$(USERCPU) -O2 -DTARGET_Z80
-PLATFORM =
-#PLATFORM = -tzx128
.SUFFIXES: .c .rel
all: as nm ld
as: $(OBJS)
- $(FCC) $(PLATFORM) $(OBJS) -o $@
+ $(FCC) $(Z80_PLATFORM) $(OBJS) -o $@
nm.c: obj.h
nm: nm.rel
- $(FCC) $(PLATFORM) nm.rel -o $@
+ $(FCC) $(Z80_PLATFORM) nm.rel -o $@
ld.c: obj.h
ld: ld.rel
- $(FCC) $(PLATFORM) ld.rel -o $@
+ $(FCC) $(Z80_PLATFORM) ld.rel -o $@
$(OBJS): $(INCS)
.c.rel:
- $(FCC) $(PLATFORM) -c $<
+ $(FCC) $(Z80_PLATFORM) -c $<
%: %.rel
- $(FCC) $(PLATFORM) $< -o $@
+ $(FCC) $(Z80_PLATFORM) $< -o $@
clean:
rm -f $(OBJS) as $(SRCS:.c=) core *~ *.asm *.lst *.sym *.map *.noi *.lk *.ihx *.tmp *.bin
.SUFFIXES: .c .rel
-CC = fcc -m$(USERCPU)
+CC = fcc -m$(USERCPU) $(Z80_PLATFORM)
CFLAGS = -DTINY
COPT = -O2
FCC = ../../../Library/tools/fcc -m$(USERCPU)
FCCOPTS = -O2
-PLATFORM =
-#PLATFORM = -tzx128
-
-PROGLOAD=`(cat ../../../Kernel/platform/config.h; echo PROGLOAD) | cpp -E | tail -n1`
.SUFFIXES: .c .rel
$(OBJSTC): %.rel: %.c
$(OBJSBAD): %.rel: %.c
- $(FCC) $(PLATFORM) -c $<
+ $(FCC) $(Z80_PLATFORM) -c $<
.c.rel:
- $(FCC) $(PLATFORM) $(FCCOPTS) -c $<
+ $(FCC) $(Z80_PLATFORM) $(FCCOPTS) -c $<
%: %.rel
- $(FCC) $(PLATFORM) $(OPTS) $< -o $@
+ $(FCC) $(Z80_PLATFORM) $(OPTS) $< -o $@
sizes: $(APPS)
ls -l $(APPS) >size.report
FCC = ../../../../Library/tools/fcc -m $(USERCPU) -O2 -fsigned-char
-PLATFORM =
-#PLATFORM = -tzx128
.SUFFIXES: .c .rel
OBJS = $(SRCS:.c=.rel)
-LIBS = ../../../../Library/libs/syslib.lib
-
all: sh
sh: $(OBJS)
- $(FCC) $(PLATFORM) $(OBJS) -o $@
+ $(FCC) $(Z80_PLATFORM) $(OBJS) -o $@
$(OBJS): $(INCS)
.c.rel:
- $(FCC) $(PLATFORM) -c $<
+ $(FCC) $(Z80_PLATFORM) -c $<
%: %.rel
- $(FCC) $(PLATFORM) $< -o $@
+ $(FCC) $(Z80_PLATFORM) $< -o $@
clean:
rm -f $(OBJS) sh $(SRCS:.c=) core *~ *.asm *.lst *.sym *.map *.noi *.lk *.ihx *.tmp *.bin
FCC = ../../../Library/tools/fcc -m$(USERCPU)
FCCOPTS = -O2
-PLATFORM =
-#PLATFORM = -tzx128
-
-PROGLOAD=`(cat ../../../Kernel/platform/config.h; echo PROGLOAD) | cpp -E | tail -n1`
.SUFFIXES: .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=)
$(OBJSNS): %.rel: %.c
$(OBJSBAD): %.rel: %.c
- $(FCC) $(PLATFORM) -c $<
+ $(FCC) $(Z80_PLATFORM) -c $<
.c.rel:
- $(FCC) $(PLATFORM) $(FCCOPTS) -c $<
+ $(FCC) $(Z80_PLATFORM) $(FCCOPTS) -c $<
%: %.rel
- $(FCC) $(PLATFORM) $(OPTS) $< -o $@
+ $(FCC) $(Z80_PLATFORM) $(OPTS) $< -o $@
sizes: $(APPS)
ls -l $(APPS) >size.report
all: $(APPS)
netd-slip: $(OBJS)
- fcc -m$(USERCPU) -o netd netd.rel uip.rel uiplib.rel timer.rel clock-arch.rel \
+ fcc -m$(USERCPU) $(Z80_PLATFORM) -o netd netd.rel uip.rel uiplib.rel timer.rel clock-arch.rel \
uip_arp.rel slip.rel
$(OBJS): %.rel: %.c
.c.rel:
- fcc -m$(USERCPU) $(PLATFORM) $(OPTS) -c $<
+ fcc -m$(USERCPU) $(Z80_PLATFORM) $(OPTS) -c $<
telnet: telnet.rel gethostbyname.rel
fcc -o $@ $^
.SUFFIXES: .c .rel
-CC = fcc -m$(USERCPU)
+CC = fcc -m$(USERCPU) $(Z80_PLATFORM)
CFLAGS = -c
COPT = -O2
FCC = ../../Library/tools/fcc -m$(USERCPU)
FCCOPTS = -O2
-PLATFORM =
-#PLATFORM = -tzx128
-
-PROGLOAD=`(cat ../../Kernel/platform/config.h; echo PROGLOAD) | cpp -E | tail -n1`
.SUFFIXES: .c .rel
$(OBJSNS): %.rel: %.c
$(OBJSBAD): %.rel: %.c
- $(FCC) $(PLATFORM) -c $<
+ $(FCC) $(Z80_PLATFORM) -c $<
.c.rel:
- $(FCC) $(PLATFORM) $(FCCOPTS) -c $<
+ $(FCC) $(Z80_PLATFORM) $(FCCOPTS) -c $<
tchelp: tchelp.rel
- $(FCC) $(PLATFORM) $(OPTS) $< -o $@ -ltermcap
+ $(FCC) $(Z80_PLATFORM) $(OPTS) $< -o $@ -ltermcap
tget: tget.rel
- $(FCC) $(PLATFORM) $(OPTS) $< -o $@ -ltermcap
+ $(FCC) $(Z80_PLATFORM) $(OPTS) $< -o $@ -ltermcap
vile: vile.rel
- $(FCC) $(PLATFORM) $(OPTS) $< -o $@ -lcurses -ltermcap
+ $(FCC) $(Z80_PLATFORM) $(OPTS) $< -o $@ -lcurses -ltermcap
%: %.rel
- $(FCC) $(PLATFORM) $(OPTS) $< -o $@
+ $(FCC) $(Z80_PLATFORM) $(OPTS) $< -o $@
sizes: $(APPS)
ls -l $(APPS) >size.report