From ddaf88f59306aaae958f61a329411549aec0bf29 Mon Sep 17 00:00:00 2001 From: Tormod Volden Date: Sat, 28 May 2016 17:32:49 +0200 Subject: [PATCH] utils: Link stdio-free apps with stdio-free crt0 on 6809 This also adds building of a few missing apps. Signed-off-by: Tormod Volden --- Applications/util/Makefile | 2 +- Applications/util/Makefile.6809 | 93 +++++++++++++++++++-------------- 2 files changed, 56 insertions(+), 39 deletions(-) diff --git a/Applications/util/Makefile b/Applications/util/Makefile index 511fdcbb..62940f30 100644 --- a/Applications/util/Makefile +++ b/Applications/util/Makefile @@ -89,9 +89,9 @@ SRCS = banner.c \ tail.c \ umount.c \ uniq.c \ + uptime.c \ uud.c \ uue.c \ - uptime.c \ wc.c \ which.c \ who.c \ diff --git a/Applications/util/Makefile.6809 b/Applications/util/Makefile.6809 index 4ed31186..2539d22c 100644 --- a/Applications/util/Makefile.6809 +++ b/Applications/util/Makefile.6809 @@ -11,81 +11,92 @@ LINKER_OPT += -L$(LIBGCCDIR) -lgcc LINKER_OPT += --script=$(TARGET).link ASM_OPT = -o CRT0 = ../../Library/libs/crt0_6809.o +CRT0NS = ../../Library/libs/crt0nostdio_6809.o .SUFFIXES: .c .o - -SRCS = banner.c \ +SRCSNS = \ basename.c \ - bd.c \ - cal.c \ cat.c \ chgrp.c \ chmod.c \ chown.c \ - cksum.c \ cmp.c \ cp.c \ - cut.c \ date.c \ + dirname.c \ + false.c \ + groups.c \ + head.c \ + init.c \ + kill.c \ + ln.c \ + logname.c \ + mkdir.c \ + mkfifo.c \ + mknod.c \ + mv.c \ + pagesize.c \ + printenv.c \ + prtroot.c \ + pwd.c \ + reboot.c \ + rm.c \ + rmdir.c \ + sum.c \ + sync.c \ + tee.c \ + telinit.c \ + touch.c \ + tr.c \ + true.c \ + while1.c \ + whoami.c \ + yes.c + + +SRCS = \ + banner.c \ + bd.c \ + cal.c \ + cksum.c \ + cut.c \ dd.c \ decomp16.c \ df.c \ - dirname.c \ dosread.c \ du.c \ echo.c \ ed.c \ env.c \ factor.c \ - false.c \ fdisk.c \ + fforth.c \ fgrep.c \ fsck.c \ grep.c \ - head.c \ id.c \ - init.c \ - kill.c \ ll.c \ - ln.c \ - logname.c \ ls.c \ man.c \ - mkdir.c \ mkfs.c \ - mkfifo.c \ - mknod.c \ mode.c \ more.c \ mount.c \ - mv.c \ od.c \ - pagesize.c \ passwd.c \ patchcpm.c \ - printenv.c \ - prtroot.c \ ps.c \ - pwd.c \ - reboot.c \ - rm.c \ - rmdir.c \ sed.c \ sleep.c \ ssh.c \ + socktest.c \ sort.c \ stty.c \ - sum.c \ su.c \ - sync.c \ tar.c \ - tee.c \ tail.c \ - telinit.c \ - touch.c \ - tr.c \ - true.c \ + tget.c \ umount.c \ uniq.c \ uptime.c \ @@ -94,27 +105,33 @@ SRCS = banner.c \ wc.c \ which.c \ who.c \ - whoami.c \ write.c \ - xargs.c \ - yes.c + xargs.c + +SKIPPED = \ + termcap.c \ + tiddles.c \ + OBJS = $(SRCS:.c=.o) +OBJSNS = $(SRCSNS:.c=.o) APPS = $(OBJS:.o=) +APPSNS = $(OBJSNS:.o=) -all: $(APPS) size.report +all: $(APPS) $(APPSNS) size.report $(APPS): $(CRT0) +$(APPSNS): $(CRT0NS) -$(APPS): %: %.o +$(APPS) $(APPSNS): %: %.o $(LINKER) -o $@ $(LINKER_OPT) $^ -size.report: $(APPS) +size.report: $(APPS) $(APPSNS) ls -l $^ > $@ clean: - rm -f $(OBJS) $(APPS) $(SRCS:.c=) core *~ *.asm *.lst *.sym *.map *.noi *.lk *.ihx *.tmp *.bin size.report + rm -f $(OBJS) $(OBJSNS) $(APPS) $(APPSNS) $(SRCS:.c=) core *~ *.asm *.lst *.sym *.map *.noi *.lk *.ihx *.tmp *.bin size.report rmbak: rm -f *~ core -- 2.34.1