for picol (tiny TCL) add package file and 6809 makefile.
authornealcrook <neal@pippaluk.org.uk>
Mon, 7 Nov 2016 13:14:56 +0000 (13:14 +0000)
committernealcrook <neal@pippaluk.org.uk>
Mon, 7 Nov 2016 13:14:56 +0000 (13:14 +0000)
Applications/TCL/Makefile.6809 [new file with mode: 0644]
Applications/TCL/fuzix-TCL.pkg [new file with mode: 0644]

diff --git a/Applications/TCL/Makefile.6809 b/Applications/TCL/Makefile.6809
new file mode 100644 (file)
index 0000000..bc3de24
--- /dev/null
@@ -0,0 +1,31 @@
+PLATFORM = 6809
+CC = m6809-unknown-gcc
+# These are wrappers for lwasm and lwar
+ASM = m6809-unknown-as
+AR = m6809-unknown-ar
+LINKER = lwlink
+CFLAGS = -I../../Library/include -I../../Library/include/6809
+COPT = -Os
+LINKER_OPT = --format=raw -L../../Library/libs -lc6809
+LIBGCCDIR = $(dir $(shell $(CC) -print-libgcc-file-name))
+LINKER_OPT += -L$(LIBGCCDIR) -lgcc
+LINKER_OPT += --script=../util/$(TARGET).link
+ASM_OPT = -o
+CRT0 = ../../Library/libs/crt0_6809.o
+
+SRCS = picol.c
+
+OBJS = picol.o
+
+.SUFFIXES: .c .o
+
+all: picol
+
+.c.o:
+       $(CC) $(CFLAGS) $(CCOPTS) -c $<
+
+picol:  $(OBJS) $(CRT0)
+       $(LINKER) -o $@ $(LINKER_OPT) $^
+
+clean:
+       rm -f $(OBJS) $(APPS) $(SRCS:.c=) core *~ *.sym *.map *.noi *.lk *.ihx *.tmp *.bin size.report *.o
diff --git a/Applications/TCL/fuzix-TCL.pkg b/Applications/TCL/fuzix-TCL.pkg
new file mode 100644 (file)
index 0000000..cd11a89
--- /dev/null
@@ -0,0 +1,4 @@
+package  TCL
+if-file  picol
+
+f 0755 /usr/bin/picol  picol