|
|
1.1 ! root 1: # Makefile for Tertiary boot code for COHERENT ! 2: # Targets are stand-alone bootable programs. ! 3: # ! 4: # La Monte H. Yarroll <[email protected]>, September 1991 ! 5: ! 6: ! 7: #CC=cc286 ! 8: #LD=cc286 ! 9: #AR=/bin/286/ar ! 10: #RANLIB=/bin/286/ranlib ! 11: CP=cp ! 12: #AS=/bin/286/as ! 13: ! 14: CC=cc ! 15: LD=ld ! 16: AR=/bin/ar ! 17: RANLIB=/bin/ranlib ! 18: AS=/bin/as ! 19: ! 20: DESTDIR=/bin386/ ! 21: DESTDIR2=/bin386/etc/ ! 22: ! 23: LIBOBJECTS=bootlib.o cbootlib.o diskio.o indirect.o intcall.o monitor.o \ ! 24: l.out.o coff.o bio.o gift.o objects.o pacifier.o \ ! 25: fifo_b.o fifo_k.o sys.o fdisk.o arg_exist.o execute.o \ ! 26: cpu_type.o printf.o ! 27: ! 28: LIBSOURCES=bootlib.m cbootlib.c diskio.c indirect.c intcall.m monitor.c \ ! 29: l.out.c coff.c bio.c gift.c objects.c pacifier.c \ ! 30: fifo_b.c fifo_k.c sys.c fdisk.c arg_exist.c execute.c \ ! 31: cpu_type.s printf.c ! 32: ! 33: OBJECTS=Startup.o $(LIBOBJECTS) ! 34: ! 35: SOURCES=Startup.s $(LIBSOURCES) ! 36: ! 37: LIBS=libtboot.a /lib/libc.a ! 38: #LIBS=libtboot.a libtboot.a libtboot.a /lib/286/libc.a ! 39: INCLUDE=-I. -I/usr/include -I/usr/include/sys ! 40: CFLAGS=$(INCLUDE) ! 41: ! 42: all: tboot bootcmd ! 43: touch all ! 44: ! 45: # NB: Startup.o must come first in the link line, so the entry ! 46: # point in Startup lines up correctly. ! 47: tboot: sys/ptypes.h Startup.o tboot.o builtin.o libtboot.a ! 48: $(LD) -o $(DESTDIR)tboot Startup.o tboot.o builtin.o $(LIBS) ! 49: ! 50: bootcmd: bootcmd.o fifo_k.o ! 51: $(LD) -o $(DESTDIR2)bootcmd bootcmd.o fifo_k.o ! 52: ! 53: libtboot.a: $(LIBOBJECTS) ! 54: rm -f $@ ! 55: $(AR) rkus $@ $(LIBOBJECTS) ! 56: $(RANLIB) $@ ! 57: ! 58: sys/ptypes.h: ptypes.h ! 59: $(CP) ptypes.h sys/ptypes.h ! 60: ! 61: pacifier.o: pacifier.c pac_states.h ! 62: $(CC) -c $(CFLAGS) pacifier.c ! 63: ! 64: hello: hello.o $(OBJECTS) ! 65: $(LD) -o hello $(OBJECTS) hello.o $(LIBS) ! 66: ! 67: hello.o: Examples/hello.c ! 68: ! 69: dir: dir.o $(OBJECTS) ! 70: $(LD) -o dir $(OBJECTS) dir.o $(LIBS) ! 71: ! 72: dir.o: Examples/dir.c ! 73: ! 74: newdir: newdir.o libtboot.a ! 75: $(LD) -o newdir Startup.o newdir.o $(LIBS) ! 76: ! 77: newdir.o: Examples/newdir.c ! 78: ! 79: tags: ! 80: ctags -r *.[ch] ! 81: ! 82: clean: ! 83: rm -f l.out *.o *.a ! 84: ! 85: install: ! 86: cp tboot $(DESTDIR) ! 87: chown root $(DESTDIR)/tboot ! 88: chgrp daemon $(DESTDIR)/tboot ! 89: chmod ugo=r $(DESTDIR)/tboot
This archive runs on limited infrastructure. Preserving old code on modern bandwidth. Automated agents are requested to crawl responsibly.