|
|
1.1.1.2 ! root 1: # makefile for xinu kernel on ATT7300 (3B1) or MECB ! 2: # wipe out default suffixes list-- ! 3: .SUFFIXES: ! 4: .SUFFIXES: .o68 .c .s ! 5: GNUBIN = /usr/local/gnu/bin ! 6: LIB = ../../../lib ! 7: # cc should also work-- ! 8: CC = gcc ! 9: CFLAGS = -O -m68000 -c -I../h -DDEBUG ! 10: CFLAGS_NOOPT = -m68000 -c -I../h -DDEBUG ! 11: # Sun as should also work-- ! 12: AS = $(GNUBIN)/as -m68000 ! 13: LD = ld ! 14: AR = ar ! 15: #default loadaddr for xinu exe-- ! 16: A = 1000 ! 17: AA = 90000 ! 18: ! 19: .c.o68: ! 20: $(CC) $(CFLAGS) -o $*.o68 $*.c ! 21: ! 22: .s.o68: ! 23: $(AS) -o $*.o68 $*.s ! 24: ! 25: OFILES = create.o68 dotrace.o68 freemem.o68 \ ! 26: getitem.o68 getmem.o68 getpid.o68 getstk.o68 \ ! 27: init.o68 initialize.o68 insert.o68 insertd.o68 \ ! 28: ioerr.o68 ionull.o68 kill.o68 \ ! 29: mark.o68 mdump.o68 newqueue.o68 \ ! 30: mkpool.o68 poolinit.o68 freebuf.o68 getbuf.o68 \ ! 31: queue.o68 ready.o68 receive.o68 \ ! 32: recvclr.o68 resched.o68 resume.o68 scount.o68 \ ! 33: screate.o68 sdelete.o68 send.o68 sendf.o68 \ ! 34: pcreate.o68 pdelete.o68 preceive.o68 psend.o68 \ ! 35: pinit.o68 preset.o68 pcount.o68 \ ! 36: signal.o68 signaln.o68 sleep.o68 sleep10.o68 \ ! 37: sreset.o68 ssclock.o68 suspend.o68 \ ! 38: piint.o68 ttyread.o68 ttygetc.o68 \ ! 39: ttycntl6850.o68 ttyiin6850.o68 ttyinit6850.o68 \ ! 40: ttyoin6850.o68 ttyputc6850.o68 ttywrite6850.o68 \ ! 41: sluint6850.o68 sluint7201.o68 slu7201.o68 \ ! 42: ttycntl7201.o68 ttyiin7201.o68 ttyinit7201.o68 \ ! 43: ttyoin7201.o68 ttyputc7201.o68 ttywrite7201.o68 \ ! 44: slu6850.o68 slu7201.o68 \ ! 45: userret.o68 wait.o68 wakeup.o68 xdone.o68 \ ! 46: read.o68 write.o68 init.o68 getc.o68 putc.o68 \ ! 47: control.o68 close.o68 open.o68 seek.o68 \ ! 48: ctxsw.o68 getprio.o68 chprio.o68 \ ! 49: panic.o68 regdump.o68 \ ! 50: slu1int.o68 slu2int.o68 slu3int.o68 spurint.o68 \ ! 51: pscfuncts.o68 pssfuncts.o68 \ ! 52: setclkr.o68 startup.o68 \ ! 53: dlccntl.o68 dlciin.o68 dlcinit.o68 dlcoin.o68 \ ! 54: dlcputc.o68 dlcread.o68 dlcwrite.o68 dldump.o68 \ ! 55: finput.o68 foutput.o68 freceive.o68 freebuf.o68 \ ! 56: freemem.o68 frinit.o68 frsend.o68 frtimer.o68 \ ! 57: fsend.o68 netinit.o68 getmid.o68 ! 58: ! 59: # XOFILES--object files unconditionally loaded for Xinu. The ! 60: # rest of the object files reside in libx.a, the Xinu library. ! 61: # We default to no net code by loading nullnet.o68 ahead of library-- ! 62: # similarly, default to no real lp driver by loading lpstubs.o68, ! 63: # and no real dlc driver by loading dlcstubs.o68. ! 64: # Only conf/conf7300.c, kprintf.c, clkinit.c, lpstubs.c, ! 65: # sizmem/sizmem7300.s and clkint.s depend explicitly on ! 66: # the platform (ATT7300 vs. MECB), and they are all ! 67: # in here, so the library libx.a can be used for both. ! 68: # Platform-independent unconditionally-loaded files-- ! 69: XOFILES_COMMON = startup.o68 initialize.o68 nullnet.o68 dlcstubs.o68 ! 70: ! 71: # MECB-only versions-- ! 72: XOFILES_MECB = conf.o68 clkinit.o68 clkint.o68 \ ! 73: kprintf.o68 lpstubs.o68 sizmem.o68 ! 74: ! 75: # ATT7300-only versions-- ! 76: XOFILES_7300 = conf7300.o68 clkinit7300.o68 clkint7300.o68 \ ! 77: kprintf7300.o68 lpstubs7300.o68 sizmem7300.o68 ! 78: ! 79: all: libx.a $(XOFILES_COMMON) $(XOFILES_MECB) $(XOFILES_7300) ! 80: ! 81: install: ! 82: cp libx.a $(LIB)/libx.a ! 83: ranlib $(LIB)/libx.a ! 84: cp $(XOFILES_COMMON) $(XOFILES_MECB) $(XOFILES_7300) $(LIB) 1.1 root 85: 86: clean: 1.1.1.2 ! root 87: -rm -rf *.o68 ,* .,* *.68 *.68a ! 88: -rm -rf libx.a a.out core make.out 1.1 root 89: 1.1.1.2 ! root 90: conf.o68: conf.c ../h/conf.h ! 91: $(CC) $(CFLAGS) -o conf.o68 conf.c 1.1 root 92: 1.1.1.2 ! root 93: conf7300.o68: conf7300.c ../h/conf.h ! 94: $(CC) $(CFLAGS) -DATT7300 -o conf7300.o68 conf7300.c 1.1 root 95: 1.1.1.2 ! root 96: # clocks are different on MECB and ATT7300-- ! 97: clkinit.o68: clkinit.c ../h/clock.h ! 98: $(CC) $(CFLAGS) -o clkinit.o68 clkinit.c ! 99: ! 100: clkinit7300.o68: clkinit.c ! 101: $(CC) $(CFLAGS) -DATT7300 -o clkinit7300.o68 clkinit.c ! 102: ! 103: clkint.o68: clkint.s ! 104: /lib/cpp clkint.s > temp.s ! 105: $(AS) $(ASFLAGS) temp.s -o clkint.o68; rm temp.s ! 106: ! 107: clkint7300.o68: clkint.s ! 108: /lib/cpp -DATT7300 clkint.s > temp.s ! 109: $(AS) $(ASFLAGS) temp.s -o clkint7300.o68; rm temp.s ! 110: ! 111: lpstubs.o68: lpstubs.c ! 112: $(CC) $(CFLAGS) -o lpstubs.o68 lpstubs.c ! 113: ! 114: # Not entirely trivial, to prevent lp interrupt from crashing system-- ! 115: lpstubs7300.o68: lpstubs.c ../h/pi7300.h ! 116: $(CC) $(CFLAGS) -DATT7300 -o lpstubs7300.o68 lpstubs.c ! 117: ! 118: # consoles are different on MECB and ATT7300, and also ! 119: # avoid optimizer removing reloading status reg in polling loop-- ! 120: kprintf.o68: kprintf.c ! 121: $(CC) $(CFLAGS_NOOPT) -DSLUCHIP=6850 -o kprintf.o68 kprintf.c ! 122: ! 123: kprintf7300.o68: kprintf.c ! 124: $(CC) $(CFLAGS_NOOPT) -DATT7300 -DSLUCHIP=7201 -o kprintf7300.o68 kprintf.c ! 125: ! 126: # create 2 versions of tty code, one for 6850 UART, one for 7201 UART ! 127: ! 128: # 6850 version-- ! 129: ttycntl6850.o68: ttycntl.c ! 130: $(CC) $(CFLAGS) -DSLUCHIP=6850 -o ttycntl6850.o68 ttycntl.c ! 131: ! 132: ttywrite6850.o68: ttywrite.c ! 133: $(CC) $(CFLAGS) -DSLUCHIP=6850 -o ttywrite6850.o68 ttywrite.c ! 134: ! 135: ttyputc6850.o68: ttyputc.c ! 136: $(CC) $(CFLAGS) -DSLUCHIP=6850 -o ttyputc6850.o68 ttyputc.c ! 137: ! 138: ttyiin6850.o68: ttyiin.c ! 139: $(CC) $(CFLAGS) -DSLUCHIP=6850 -o ttyiin6850.o68 ttyiin.c ! 140: ! 141: ttyoin6850.o68: ttyoin.c ! 142: $(CC) $(CFLAGS) -DSLUCHIP=6850 -o ttyoin6850.o68 ttyoin.c ! 143: ! 144: ttyinit6850.o68: ttyinit.c ! 145: $(CC) $(CFLAGS) -DSLUCHIP=6850 -o ttyinit6850.o68 ttyinit.c ! 146: ! 147: sluint6850.o68: sluint.c ! 148: $(CC) $(CFLAGS) -DSLUCHIP=6850 -o sluint6850.o68 sluint.c ! 149: ! 150: # 7201 version-- ! 151: ttycntl7201.o68: ttycntl.c ! 152: $(CC) $(CFLAGS) -DSLUCHIP=7201 -o ttycntl7201.o68 ttycntl.c ! 153: ! 154: ttywrite7201.o68: ttywrite.c ! 155: $(CC) $(CFLAGS) -DSLUCHIP=7201 -o ttywrite7201.o68 ttywrite.c ! 156: ! 157: ttyputc7201.o68: ttyputc.c ! 158: $(CC) $(CFLAGS) -DSLUCHIP=7201 -o ttyputc7201.o68 ttyputc.c ! 159: ! 160: ttyiin7201.o68: ttyiin.c ! 161: $(CC) $(CFLAGS) -DSLUCHIP=7201 -o ttyiin7201.o68 ttyiin.c ! 162: ! 163: ttyoin7201.o68: ttyoin.c ! 164: $(CC) $(CFLAGS) -DSLUCHIP=7201 -o ttyoin7201.o68 ttyoin.c 1.1 root 165: 1.1.1.2 ! root 166: ttyinit7201.o68: ttyinit.c ! 167: $(CC) $(CFLAGS) -DSLUCHIP=7201 -o ttyinit7201.o68 ttyinit.c 1.1 root 168: 1.1.1.2 ! root 169: sluint7201.o68: sluint.c ! 170: $(CC) $(CFLAGS) -DSLUCHIP=7201 -o sluint7201.o68 sluint.c 1.1 root 171: 1.1.1.2 ! root 172: libx.a: $(OFILES) 1.1 root 173: /bin/rm -f libx.a 1.1.1.2 ! root 174: $(AR) cr libx.a $(OFILES) 1.1 root 175: ranlib libx.a 176: 1.1.1.2 ! root 177: $(U).o68: $(U).c ! 178: $(CC) $(CFLAGS) -I../../../include $(U).c -o $(U).o68 ! 179: ! 180: $(U).68: libx.a $(U).o68 ! 181: $(LD) -N -T $(A) -o $(U).68 $(XOFILES_COMMON) \ ! 182: $(XOFILES_MECB) $(U).o68 $(LIB)/libxc.a \ ! 183: ./libx.a $(LIB)/libxc.a $(LIB)/libcsupp.a ! 184: ! 185: $(U).68a: libx.a $(U).o68 ! 186: $(LD) -N -T $(AA) -o $(U).68a $(XOFILES_COMMON) \ ! 187: $(XOFILES_7300) $(U).o68 $(LIB)/libxc.a \ ! 188: ./libx.a $(LIB)/libxc.a $(LIB)/libcsupp.a 1.1 root 189:
This archive runs on limited infrastructure. Preserving old code on modern bandwidth. Automated agents are requested to crawl responsibly.