From 0c7bd220d6be01c5a0c8c9b2c7e6c51dd902a69b Mon Sep 17 00:00:00 2001 From: Alan Cox Date: Wed, 22 Jun 2016 20:37:02 +0100 Subject: [PATCH] as09: Makefile for Z80 cross --- Applications/as09/Makefile.z80 | 51 ++++++++++++++++++++++++++++++++++ 1 file changed, 51 insertions(+) create mode 100644 Applications/as09/Makefile.z80 diff --git a/Applications/as09/Makefile.z80 b/Applications/as09/Makefile.z80 new file mode 100644 index 00000000..da6e55bb --- /dev/null +++ b/Applications/as09/Makefile.z80 @@ -0,0 +1,51 @@ +.SUFFIXES: .c .rel + +PLATFORM = 6809 +CC = fcc +CFLAGS = -c +COPT = -O2 + +OBJS = as.rel assemble.rel errors.rel express.rel \ + genbin.rel genlist.rel genobj.rel gensym.rel \ + keywords.rel macro.rel mops.rel pops.rel readsrc.rel \ + scan.rel table.rel typeconv.rel alloc.rel + +all: as09 + +as09: $(OBJS) + $(CC) -o $@ $(OBJS) + +clean realclean clobber: + rm -f *.rel as09 *~ + +$(OBJS): const.h errors.h + +ar.h: + test -f ar.h || \ + { rm -f ar.h ; ln -s ../libc/include/ar.h . ; } || \ + ln ../libc/include/ar.h . + +writebin.rel: writebin.c + $(CC) $(CFLAGS) $(DEFS) $(NATIVE) -c $< + +writerel.rel: writebin.c + +.c.rel: + $(CC) $(COPT) $(CFLAGS) $(DEFS) -c $< -o $@ + +as.rel: const.h type.h byteord.h macro.h file.h flag.h globvar.h +assemble.rel: const.h type.h address.h globvar.h opcode.h scan.h +error.rel: const.h type.h +express.rel: const.h type.h address.h globvar.h scan.h source.h +genbin.rel: const.h type.h address.h file.h globvar.h +genlist.rel: const.h type.h address.h flag.h file.h globvar.h macro.h scan.h \ + source.h +genobj.rel: const.h type.h address.h file.h globvar.h +gensym.rel: const.h type.h flag.h file.h globvar.h +keywords.rel: const.h type.h globvar.h opcode.h +macro.rel: const.h type.h globvar.h scan.h macro.h +mops.rel: const.h type.h globvar.h opcode.h scan.h address.h +pops.rel: const.h type.h address.h flag.h globvar.h opcode.h scan.h +readsrc.rel: const.h type.h flag.h file.h globvar.h macro.h scan.h source.h +scan.rel: const.h type.h globvar.h scan.h +table.rel: const.h type.h globvar.h opcode.h scan.h -- 2.34.1