utils: Link stdio-free apps with stdio-free crt0 on 6809
authorTormod Volden <debian.tormod@gmail.com>
Sat, 28 May 2016 15:32:49 +0000 (17:32 +0200)
committerAlan Cox <alan@etchedpixels.co.uk>
Tue, 31 May 2016 11:41:00 +0000 (12:41 +0100)
This also adds building of a few missing apps.

Signed-off-by: Tormod Volden <debian.tormod@gmail.com>
Applications/util/Makefile
Applications/util/Makefile.6809

index 511fdcb..62940f3 100644 (file)
@@ -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 \
index 4ed3118..2539d22 100644 (file)
@@ -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