From: nealcrook Date: Mon, 7 Nov 2016 13:14:56 +0000 (+0000) Subject: for picol (tiny TCL) add package file and 6809 makefile. X-Git-Url: https://git.ndcode.org/public/gitweb.cgi?a=commitdiff_plain;h=2e7d72d4b4bff7c926888a4dbbd7ecd8532d7740;p=FUZIX.git for picol (tiny TCL) add package file and 6809 makefile. --- diff --git a/Applications/TCL/Makefile.6809 b/Applications/TCL/Makefile.6809 new file mode 100644 index 00000000..bc3de24b --- /dev/null +++ b/Applications/TCL/Makefile.6809 @@ -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 index 00000000..cd11a898 --- /dev/null +++ b/Applications/TCL/fuzix-TCL.pkg @@ -0,0 +1,4 @@ +package TCL +if-file picol + +f 0755 /usr/bin/picol picol