as09: Makefile for Z80 cross
authorAlan Cox <alan@linux.intel.com>
Wed, 22 Jun 2016 19:37:02 +0000 (20:37 +0100)
committerAlan Cox <alan@linux.intel.com>
Wed, 22 Jun 2016 19:37:02 +0000 (20:37 +0100)
Applications/as09/Makefile.z80 [new file with mode: 0644]

diff --git a/Applications/as09/Makefile.z80 b/Applications/as09/Makefile.z80
new file mode 100644 (file)
index 0000000..da6e55b
--- /dev/null
@@ -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