CRT0 = ../../../Library/libs/crt0_6502.o
CRT0NS = ../../../Library/libs/crt0nostdio_6502.o
-.SUFFIXES: .c .o
+.SUFFIXES: .c .o .y
SRC = ac.c almanac.c at.c col.c cron.c deroff.c ed.c find.c make.c \
moo.c pr.c tar.c ttt.c calendar.c m4.c
all: $(APPS) $(APPSNS) sizes
expr.c: expr.y
- byacc -o expr.c expr.y
find.c: find.y
- byacc -o find.c find.y
$(APPS): %: %.o
$(LINKER) -o $@ $(LINKER_OPT) $(CRT0) $^ c6502.lib -m $@.map
# For now while we get going. Really we want to use some kind of elf2zmagic
# with relocs.
ELF2FUZIX = elf2flt
-.SUFFIXES: .c .o
+.SUFFIXES: .c .o .y
SRCS = ac.c almanac.c at.c calendar.c col.c cron.c deroff.c ed.c expr.c find.c m4.c make.c moo.c pr.c tar.c test.c ttt.c units.c
$(ELF2FUZIX) -o $@ $@.bin
expr.c: expr.y
- byacc -o expr.c expr.y
find.c: find.y
- byacc -o find.c find.y
size.report: $(APPS)
ls -l $^ > $@
ASM_OPT = -o
CRT0 = ../../../Library/libs/crt0_6809.o
-.SUFFIXES: .c .o
+.SUFFIXES: .c .o .y
SRCS = ac.c almanac.c at.c calendar.c col.c cron.c deroff.c ed.c expr.c find.c m4.c make.c moo.c pr.c tar.c test.c ttt.c units.c du.c
$(LINKER) -o $@ $(LINKER_OPT) $^
expr.c: expr.y
- byacc -o expr.c expr.y
find.c: find.y
- byacc -o find.c find.y
size.report: $(APPS)
ls -l $^ > $@
PROGLOAD=`(cat ../../Kernel/platform/config.h; echo PROGLOAD) | cpp -E | tail -n1`
-.SUFFIXES: .c .rel
+.SUFFIXES: .c .rel .y
SRCSNS = expr.c test.c
$(FCC) $(PLATFORM) -c $<
expr.c: expr.y
- byacc -o expr.c expr.y
find.c: find.y
- byacc -o find.c find.y
.c.rel:
$(FCC) $(PLATFORM) $(FCCOPTS) -c $<
export SUBVERSION = "ac1"
export ROOT_DIR
-ifeq ($(MAKE),)
- export MAKE = "make"
-endif
-
UNAME_S := $(shell uname -s)
ROOT_DIR := $(shell dirname $(realpath $(lastword $(MAKEFILE_LIST))))
tools/make4x6 >font4x6.c
clean:
+ rm -rf platform
rm -f $(OBJS) $(JUNK) fuzix.cdb fuzix.com fuzix.tmp platform fuzix.bin fuzix.map fuzix.noi
rm -f fuzix.ihx common.ihx common.bin relocs.dat core *~ include/*~ version.c tools/make4x6
rm -f tools/analysemap tools/memhogs tools/binman tools/bihx tools/binmunge tools/bintomdv
tools/flat2z80: tools/flat2z80.c
tools/bankld/sdldz80:
- +(cd tools/bankld; make)
+ +(cd tools/bankld; $(MAKE))
cpm-loader/cpmload.bin: cpm-loader/cpmload.s cpm-loader/fuzixload.s cpm-loader/makecpmloader.c
- +make -C cpm-loader
+ +$(MAKE) -C cpm-loader
tools/makejv3: tools/makejv3.c
head -5 hogs.txt
tools/bihx fuzix.ihx
tools/binprep
- +make -C platform-$(TARGET) image
+ +$(MAKE) -C platform-$(TARGET) image
tools/binman common.bin fuzix.map fuzix.bin
tools/bihx fuzix_boot.ihx
-cp common.bin fuzix_boot.bin
- +make -C platform-$(TARGET) image
+ +$(MAKE) -C platform-$(TARGET) image
#!/bin/sh
-echo $(which sdcc | sed -e "s/bin\/sdcc//")share/sdcc/lib/$1
\ No newline at end of file
+echo $(which sdcc | sed -e "s/bin\/sdcc//")share/sdcc/sdcc/lib/$1
ASM = sdasz80
AR = sdar
LINKER = sdldz80
-export MAKE = make
# This gets set for 'awkward' devices like ZX128
#PLATFORM = -zx128
PLATFORM =