65c816: Makefile
authorAlan Cox <alan@linux.intel.com>
Fri, 22 Sep 2017 22:38:38 +0000 (23:38 +0100)
committerAlan Cox <alan@linux.intel.com>
Fri, 22 Sep 2017 22:38:38 +0000 (23:38 +0100)
Kernel/platform-v65c816/Makefile [new file with mode: 0644]

diff --git a/Kernel/platform-v65c816/Makefile b/Kernel/platform-v65c816/Makefile
new file mode 100644 (file)
index 0000000..0a48e99
--- /dev/null
@@ -0,0 +1,34 @@
+
+CSRCS = devtty.c devhd.c
+CSRCS += devices.c main.c
+
+ASRCS = v65.s crt0.s
+ASRCS += tricks.s commonmem.s
+
+COBJS = $(CSRCS:.c=$(BINEXT))
+AOBJS = $(ASRCS:.s=$(BINEXT))
+OBJS  = $(COBJS) $(AOBJS)
+
+JUNK = $(CSRCS:.c=.o) $(CSRCS:.c=.s) $(ASRCS:.s=.o)
+
+all:   $(OBJS)
+
+$(COBJS): %$(BINEXT): %.c
+       $(CROSS_CC) $(CROSS_CCOPTS) $(CROSS_CC_SEG1) $<
+
+$(AOBJS): %$(BINEXT): %.s
+       $(CROSS_AS) $(ASOPTS) $< -o $*$(BINEXT)
+
+clean:
+       rm -f $(OBJS) $(JUNK)  core *~ 
+
+image:
+       $(CROSS_LD) -o ../fuzix.bin --mapfile ../fuzix.map -C ld65.cfg \
+       crt0.o commonmem.o \
+       v65.o ../start.o ../version.o ../lowlevel-65c816.o \
+       ../lib/65c816.o main.o ../timer.o ../kdata.o devhd.o devices.o \
+       ../devio.o ../filesys.o ../process.o ../inode.o ../syscall_fs.o \
+       ../syscall_proc.o ../syscall_other.o ../mm.o ../bank65c816.o \
+       ../tty.o ../devsys.o ../syscall_fs2.o ../syscall_fs3.o \
+       ../syscall_exec16.o ../usermem.o ../usermem_std-65c816.o devtty.o
+       dd if=../fuzix.bin of=fuzix.img bs=512 skip=1