|
|
1.1 ! root 1: # Makefile for AT specific Coherent drivers ! 2: ! 3: # System utility directory ! 4: USRSYS=/usr/sys ! 5: ! 6: # Source directory ! 7: USRSRC=/usr/src/sys ! 8: ! 9: # Loadable driver directory ! 10: LDRV=$(USRSYS)/ldrv ! 11: ! 12: # Include directories ! 13: USRINC=/usr/include ! 14: SYSINC=/usr/include/sys ! 15: ! 16: # Object directory ! 17: KOBJ=/usr/kobj ! 18: ! 19: ARCHIVES=\ ! 20: $(USRSYS)/lib/al.a \ ! 21: $(USRSYS)/lib/at.a \ ! 22: $(USRSYS)/lib/ati.a \ ! 23: $(USRSYS)/lib/fl.a \ ! 24: $(USRSYS)/lib/gr.a \ ! 25: $(USRSYS)/lib/hs.a \ ! 26: $(USRSYS)/lib/kb.a \ ! 27: $(USRSYS)/lib/lp.a \ ! 28: $(USRSYS)/lib/mm.a \ ! 29: $(USRSYS)/lib/ms.a \ ! 30: $(USRSYS)/lib/rm.a \ ! 31: $(USRSYS)/lib/rs.a \ ! 32: $(USRSYS)/lib/st.a \ ! 33: $(USRSYS)/lib/tn.a \ ! 34: ! 35: DRVOBJ=\ ! 36: $(KOBJ)/alx.o \ ! 37: $(KOBJ)/at.o \ ! 38: $(KOBJ)/atas.o \ ! 39: $(KOBJ)/ms.o \ ! 40: $(KOBJ)/ati.o \ ! 41: $(KOBJ)/com1.o $(KOBJ)/com2.o \ ! 42: $(KOBJ)/fdisk.o \ ! 43: $(KOBJ)/fl.o \ ! 44: $(KOBJ)/fontw.o \ ! 45: $(KOBJ)/gr.o $(KOBJ)/gras.o \ ! 46: $(KOBJ)/hs.o \ ! 47: $(KOBJ)/kb.o \ ! 48: $(KOBJ)/mm.o \ ! 49: $(KOBJ)/lp.o \ ! 50: $(KOBJ)/mmas.o \ ! 51: $(KOBJ)/rm.o \ ! 52: $(KOBJ)/rs0.o $(KOBJ)/rs1.o $(KOBJ)/rsas.o \ ! 53: $(KOBJ)/st.o \ ! 54: $(KOBJ)/tn.o $(KOBJ)/tnas.o ! 55: ! 56: DRIVERS=\ ! 57: $(LDRV)/al0 \ ! 58: $(LDRV)/al1 \ ! 59: $(LDRV)/at \ ! 60: $(LDRV)/fl \ ! 61: $(LDRV)/gr \ ! 62: $(LDRV)/hs \ ! 63: $(LDRV)/lp \ ! 64: $(LDRV)/mm \ ! 65: $(LDRV)/ms \ ! 66: $(LDRV)/rm ! 67: ! 68: install: $(ARCHIVES) $(DRIVERS) ! 69: @exec /bin/sync ! 70: ! 71: all: $(DRVOBJ) ! 72: @exec /bin/sync ! 73: ! 74: $(USRSYS)/lib/al.a: $(KOBJ)/com1.o $(KOBJ)/com2.o $(KOBJ)/alx.o ! 75: rm -f $@ ! 76: ar rc $@ $< ! 77: $(USRSYS)/lib/at.a: $(KOBJ)/at.o $(KOBJ)/atas.o $(KOBJ)/fdisk.o ! 78: rm -f $@ ! 79: ar rc $@ $< ! 80: $(USRSYS)/lib/ati.a: $(KOBJ)/mm.o $(KOBJ)/ati.o ! 81: rm -f $@ ! 82: ar rc $@ $< ! 83: $(USRSYS)/lib/fl.a: $(KOBJ)/fl.o ! 84: rm -f $(USRSYS)/lib/fl.a ! 85: ar rc $(USRSYS)/lib/fl.a $(KOBJ)/fl.o ! 86: $(USRSYS)/lib/gr.a: $(KOBJ)/mm.o $(KOBJ)/gr.o $(KOBJ)/gras.o \ ! 87: $(KOBJ)/fontw.o ! 88: rm -f $@ ! 89: ar rc $@ $< ! 90: $(USRSYS)/lib/hs.a: $(KOBJ)/hs.o ! 91: rm -f $@ ! 92: ar rc $@ $< ! 93: $(USRSYS)/lib/kb.a: $(KOBJ)/kb.o ! 94: rm -f $@ ! 95: ar rc $@ $< ! 96: $(USRSYS)/lib/lp.a: $(KOBJ)/lp.o ! 97: rm -f $@ ! 98: ar rc $@ $< ! 99: $(USRSYS)/lib/mm.a: $(KOBJ)/mm.o $(KOBJ)/mmas.o ! 100: rm -f $@ ! 101: ar rc $@ $< ! 102: $(USRSYS)/lib/ms.a: $(KOBJ)/ms.o ! 103: rm -f $@ ! 104: ar rc $@ $< ! 105: $(USRSYS)/lib/rm.a: $(KOBJ)/rm.o ! 106: rm -f $@ ! 107: ar rc $@ $< ! 108: $(USRSYS)/lib/rs.a: $(KOBJ)/rs0.o $(KOBJ)/rs1.o $(KOBJ)/rsas.o ! 109: rm -f $@ ! 110: ar rc $@ $< ! 111: $(USRSYS)/lib/st.a: $(KOBJ)/st.o ! 112: rm -f $@ ! 113: ar rc $@ $< ! 114: $(USRSYS)/lib/tn.a: $(KOBJ)/tn.o $(KOBJ)/tnas.o ! 115: rm -f $@ ! 116: ar rc $@ $< ! 117: ! 118: $(KOBJ)/alx.o: \ ! 119: $(SYSINC)/clist.h \ ! 120: $(SYSINC)/coherent.h $(SYSINC)/types.h $(SYSINC)/timeout.h \ ! 121: $(SYSINC)/machine.h $(SYSINC)/param.h \ ! 122: $(SYSINC)/fun.h \ ! 123: $(SYSINC)/con.h \ ! 124: $(USRINC)/errno.h \ ! 125: $(SYSINC)/i8086.h \ ! 126: $(SYSINC)/ins8250.h \ ! 127: $(SYSINC)/sched.h \ ! 128: $(SYSINC)/stat.h \ ! 129: $(SYSINC)/timeout.h \ ! 130: $(SYSINC)/tty.h $(SYSINC)/ktty.h \ ! 131: $(SYSINC)/uproc.h \ ! 132: alx.c ! 133: $(CC) $(CFLAGS) -c -o $@ alx.c ! 134: ! 135: $(KOBJ)/at.o: at.c \ ! 136: $(SYSINC)/coherent.h $(SYSINC)/types.h $(SYSINC)/timeout.h \ ! 137: $(SYSINC)/machine.h $(SYSINC)/param.h \ ! 138: $(SYSINC)/fun.h \ ! 139: $(SYSINC)/fdisk.h \ ! 140: $(SYSINC)/hdioctl.h \ ! 141: $(SYSINC)/buf.h \ ! 142: $(SYSINC)/con.h \ ! 143: $(SYSINC)/devices.h \ ! 144: $(SYSINC)/stat.h \ ! 145: $(SYSINC)/uproc.h \ ! 146: $(USRINC)/errno.h ! 147: $(CC) $(CFLAGS) -DVERBOSE=1 -c -o $@ at.c ! 148: ! 149: $(KOBJ)/atas.o: atas.s ! 150: $(AS) -go $@ $< ! 151: ! 152: $(KOBJ)/ati.o: ati.m ! 153: $(CC) $(CFLAGS) -DATI_132=1 -c -o $@ ati.m ! 154: ! 155: $(KOBJ)/com1.o: \ ! 156: $(SYSINC)/al.h \ ! 157: $(SYSINC)/clist.h \ ! 158: $(SYSINC)/coherent.h $(SYSINC)/types.h $(SYSINC)/timeout.h \ ! 159: $(SYSINC)/machine.h $(SYSINC)/param.h \ ! 160: $(SYSINC)/fun.h \ ! 161: $(SYSINC)/con.h \ ! 162: $(SYSINC)/devices.h \ ! 163: $(USRINC)/errno.h \ ! 164: $(SYSINC)/i8086.h \ ! 165: $(SYSINC)/ins8250.h \ ! 166: $(SYSINC)/sched.h \ ! 167: $(SYSINC)/stat.h \ ! 168: $(SYSINC)/timeout.h \ ! 169: $(SYSINC)/tty.h $(SYSINC)/ktty.h \ ! 170: $(SYSINC)/uproc.h \ ! 171: al.c ! 172: $(CC) $(CFLAGS) -DALCOM1=1 -c -o $@ al.c ! 173: ! 174: $(KOBJ)/com2.o: \ ! 175: $(SYSINC)/al.h \ ! 176: $(SYSINC)/clist.h \ ! 177: $(SYSINC)/coherent.h $(SYSINC)/types.h $(SYSINC)/timeout.h \ ! 178: $(SYSINC)/machine.h $(SYSINC)/param.h \ ! 179: $(SYSINC)/fun.h \ ! 180: $(SYSINC)/con.h \ ! 181: $(SYSINC)/devices.h \ ! 182: $(USRINC)/errno.h \ ! 183: $(SYSINC)/i8086.h \ ! 184: $(SYSINC)/ins8250.h \ ! 185: $(SYSINC)/sched.h \ ! 186: $(SYSINC)/stat.h \ ! 187: $(SYSINC)/timeout.h \ ! 188: $(SYSINC)/tty.h $(SYSINC)/ktty.h \ ! 189: $(SYSINC)/uproc.h \ ! 190: al.c ! 191: $(CC) $(CFLAGS) -DALCOM2=1 -c -o $@ al.c ! 192: ! 193: $(KOBJ)/fdisk.o: \ ! 194: $(SYSINC)/buf.h \ ! 195: $(SYSINC)/coherent.h $(SYSINC)/types.h $(SYSINC)/timeout.h \ ! 196: $(SYSINC)/machine.h $(SYSINC)/param.h \ ! 197: $(SYSINC)/fun.h \ ! 198: $(SYSINC)/con.h \ ! 199: $(USRINC)/errno.h \ ! 200: $(SYSINC)/fdisk.h \ ! 201: $(SYSINC)/inode.h \ ! 202: $(SYSINC)/uproc.h \ ! 203: fdisk.c ! 204: $(CC) $(CFLAGS) -c -o $@ fdisk.c ! 205: ! 206: $(KOBJ)/fl.o: \ ! 207: $(SYSINC)/buf.h \ ! 208: $(SYSINC)/coherent.h $(SYSINC)/types.h $(SYSINC)/timeout.h \ ! 209: $(SYSINC)/machine.h $(SYSINC)/param.h \ ! 210: $(SYSINC)/fun.h \ ! 211: $(SYSINC)/con.h \ ! 212: $(SYSINC)/devices.h \ ! 213: $(SYSINC)/dmac.h \ ! 214: $(USRINC)/errno.h \ ! 215: $(SYSINC)/fdioctl.h \ ! 216: $(SYSINC)/i8086.h \ ! 217: $(SYSINC)/sched.h \ ! 218: $(SYSINC)/stat.h \ ! 219: $(SYSINC)/timeout.h \ ! 220: $(SYSINC)/uproc.h \ ! 221: fl.c ! 222: $(CC) $(CFLAGS) -c -o $@ fl.c ! 223: ! 224: $(KOBJ)/fontw.o: tools/fontgen.c ! 225: $(CC) -o tools/fontgen tools/fontgen.c ! 226: exec tools/fontgen > fontw.s ! 227: exec /bin/rm tools/fontgen ! 228: $(AS) -gxo $(KOBJ)/fontw.o fontw.s ! 229: exec /bin/rm fontw.s ! 230: ! 231: $(KOBJ)/gr.o: \ ! 232: $(SYSINC)/coherent.h $(SYSINC)/types.h $(SYSINC)/timeout.h \ ! 233: $(SYSINC)/machine.h $(SYSINC)/param.h \ ! 234: $(SYSINC)/fun.h \ ! 235: $(SYSINC)/con.h \ ! 236: $(SYSINC)/devices.h \ ! 237: $(USRINC)/errno.h \ ! 238: $(SYSINC)/sched.h \ ! 239: $(SYSINC)/timeout.h \ ! 240: $(SYSINC)/types.h \ ! 241: $(SYSINC)/uproc.h \ ! 242: gr.c ! 243: $(CC) $(CFLAGS) -c -o $@ gr.c ! 244: ! 245: $(KOBJ)/gras.o: gras.m ! 246: $(CC) $(CFLAGS) -c -o $@ gras.m ! 247: ! 248: $(KOBJ)/hgas.o: gras.s ! 249: $(CC) $(CFLAGS) -c -o $@ -DHERCULES gras.m ! 250: ! 251: $(KOBJ)/hs.o: \ ! 252: $(SYSINC)/coherent.h $(SYSINC)/types.h $(SYSINC)/timeout.h \ ! 253: $(SYSINC)/machine.h $(SYSINC)/param.h \ ! 254: $(SYSINC)/fun.h \ ! 255: $(SYSINC)/con.h \ ! 256: $(SYSINC)/devices.h \ ! 257: $(USRINC)/errno.h \ ! 258: $(SYSINC)/ins8250.h \ ! 259: $(SYSINC)/proc.h $(SYSINC)/types.h $(SYSINC)/poll.h \ ! 260: $(SYSINC)/stat.h \ ! 261: $(SYSINC)/tty.h $(SYSINC)/ktty.h \ ! 262: $(SYSINC)/uproc.h \ ! 263: hs.c ! 264: $(CC) $(CFLAGS) -c -o $@ hs.c ! 265: ! 266: $(KOBJ)/kb.o: \ ! 267: $(SYSINC)/coherent.h $(SYSINC)/types.h $(SYSINC)/timeout.h \ ! 268: $(SYSINC)/machine.h $(SYSINC)/param.h \ ! 269: $(SYSINC)/fun.h \ ! 270: $(SYSINC)/con.h \ ! 271: $(SYSINC)/devices.h \ ! 272: $(USRINC)/errno.h \ ! 273: $(SYSINC)/i8086.h \ ! 274: $(SYSINC)/sched.h \ ! 275: $(USRINC)/signal.h \ ! 276: $(SYSINC)/stat.h \ ! 277: $(SYSINC)/tty.h $(SYSINC)/ktty.h \ ! 278: $(SYSINC)/uproc.h \ ! 279: kb.c ! 280: $(CC) $(CFLAGS) -c -o $@ kb.c ! 281: ! 282: $(KOBJ)/lp.o: \ ! 283: $(SYSINC)/coherent.h $(SYSINC)/types.h $(SYSINC)/timeout.h \ ! 284: $(SYSINC)/machine.h $(SYSINC)/param.h \ ! 285: $(SYSINC)/fun.h \ ! 286: $(SYSINC)/con.h \ ! 287: $(SYSINC)/devices.h \ ! 288: $(USRINC)/errno.h \ ! 289: $(SYSINC)/i8086.h \ ! 290: $(SYSINC)/io.h \ ! 291: $(SYSINC)/proc.h $(SYSINC)/types.h $(SYSINC)/poll.h \ ! 292: $(SYSINC)/stat.h \ ! 293: $(SYSINC)/timeout.h \ ! 294: $(SYSINC)/uproc.h \ ! 295: lp.c ! 296: $(CC) $(CFLAGS) -c -o $@ lp.c ! 297: ! 298: $(KOBJ)/mm.o: \ ! 299: $(SYSINC)/coherent.h $(SYSINC)/types.h $(SYSINC)/timeout.h \ ! 300: $(SYSINC)/machine.h $(SYSINC)/param.h \ ! 301: $(SYSINC)/fun.h \ ! 302: $(SYSINC)/sched.h \ ! 303: $(USRINC)/errno.h \ ! 304: $(SYSINC)/stat.h \ ! 305: $(SYSINC)/io.h \ ! 306: $(SYSINC)/tty.h $(SYSINC)/ktty.h \ ! 307: $(SYSINC)/uproc.h \ ! 308: $(SYSINC)/timeout.h \ ! 309: mm.c ! 310: $(CC) $(CFLAGS) -c -o $@ mm.c ! 311: ! 312: $(KOBJ)/mmas.o: mmas.m ! 313: $(CC) $(CFLAGS) -c -o $@ mmas.m ! 314: ! 315: $(KOBJ)/ms.o: \ ! 316: $(SYSINC)/coherent.h $(SYSINC)/types.h $(SYSINC)/timeout.h \ ! 317: $(SYSINC)/machine.h $(SYSINC)/param.h \ ! 318: $(SYSINC)/fun.h \ ! 319: $(SYSINC)/uproc.h \ ! 320: $(SYSINC)/con.h \ ! 321: $(SYSINC)/devices.h \ ! 322: $(SYSINC)/ms.h \ ! 323: $(USRINC)/errno.h \ ! 324: ms.c ! 325: $(CC) $(CFLAGS) -c -o $@ ms.c ! 326: ! 327: $(KOBJ)/rm.o: rm.c \ ! 328: $(SYSINC)/coherent.h $(SYSINC)/types.h $(SYSINC)/timeout.h \ ! 329: $(SYSINC)/machine.h $(SYSINC)/param.h \ ! 330: $(SYSINC)/fun.h \ ! 331: $(SYSINC)/buf.h \ ! 332: $(USRINC)/errno.h \ ! 333: $(SYSINC)/uproc.h \ ! 334: $(SYSINC)/seg.h \ ! 335: $(SYSINC)/con.h \ ! 336: $(SYSINC)/devices.h \ ! 337: $(SYSINC)/inode.h \ ! 338: $(SYSINC)/stat.h ! 339: $(CC) $(CFLAGS) -c -o $@ rm.c ! 340: ! 341: $(KOBJ)/rs0.o: \ ! 342: $(SYSINC)/coherent.h $(SYSINC)/types.h $(SYSINC)/timeout.h \ ! 343: $(SYSINC)/machine.h $(SYSINC)/param.h \ ! 344: $(SYSINC)/fun.h \ ! 345: $(SYSINC)/con.h \ ! 346: $(SYSINC)/devices.h \ ! 347: $(USRINC)/errno.h \ ! 348: $(SYSINC)/ins8250.h \ ! 349: $(SYSINC)/proc.h $(SYSINC)/types.h $(SYSINC)/poll.h \ ! 350: $(SYSINC)/sched.h \ ! 351: $(SYSINC)/stat.h \ ! 352: $(USRINC)/termio.h \ ! 353: $(SYSINC)/uproc.h \ ! 354: rs.c ! 355: $(CC) $(CFLAGS) -DRS0 -c -o $@ rs.c ! 356: ! 357: $(KOBJ)/rs1.o: \ ! 358: $(SYSINC)/coherent.h $(SYSINC)/types.h $(SYSINC)/timeout.h \ ! 359: $(SYSINC)/machine.h $(SYSINC)/param.h \ ! 360: $(SYSINC)/fun.h \ ! 361: $(SYSINC)/con.h \ ! 362: $(SYSINC)/devices.h \ ! 363: $(USRINC)/errno.h \ ! 364: $(SYSINC)/ins8250.h \ ! 365: $(SYSINC)/proc.h $(SYSINC)/types.h $(SYSINC)/poll.h \ ! 366: $(SYSINC)/sched.h \ ! 367: $(SYSINC)/stat.h \ ! 368: $(USRINC)/termio.h \ ! 369: $(SYSINC)/uproc.h \ ! 370: rs.c ! 371: $(CC) $(CFLAGS) -DRS1 -c -o $@ rs.c ! 372: ! 373: $(KOBJ)/rsas.o: rsas.s ! 374: $(AS) -gxo $@ rsas.s ! 375: ! 376: $(KOBJ)/st.o: \ ! 377: $(SYSINC)/buf.h \ ! 378: $(SYSINC)/coherent.h $(SYSINC)/types.h $(SYSINC)/timeout.h \ ! 379: $(SYSINC)/machine.h $(SYSINC)/param.h \ ! 380: $(SYSINC)/fun.h \ ! 381: $(SYSINC)/con.h \ ! 382: $(SYSINC)/devices.h \ ! 383: $(SYSINC)/const.h \ ! 384: $(USRINC)/errno.h \ ! 385: $(SYSINC)/inode.h \ ! 386: $(SYSINC)/mtioctl.h \ ! 387: $(SYSINC)/sched.h \ ! 388: $(SYSINC)/seg.h \ ! 389: $(SYSINC)/stat.h \ ! 390: $(SYSINC)/uproc.h \ ! 391: st.c ! 392: $(CC) $(CFLAGS) -c -o $@ st.c ! 393: ! 394: $(KOBJ)/tn.o: \ ! 395: $(SYSINC)/coherent.h $(SYSINC)/types.h $(SYSINC)/timeout.h \ ! 396: $(SYSINC)/machine.h $(SYSINC)/param.h \ ! 397: $(SYSINC)/fun.h \ ! 398: $(SYSINC)/con.h \ ! 399: $(SYSINC)/devices.h \ ! 400: $(USRINC)/errno.h \ ! 401: $(SYSINC)/sched.h \ ! 402: $(SYSINC)/timeout.h \ ! 403: $(SYSINC)/types.h \ ! 404: $(SYSINC)/uproc.h \ ! 405: tn.c ! 406: $(CC) $(CFLAGS) -c -o $@ tn.c ! 407: ! 408: $(KOBJ)/tnas.o: tnas.s ! 409: $(AS) -gxo $@ tnas.s ! 410: ! 411: # How to make loadable drivers. ! 412: ! 413: $(LDRV)/al0: $(USRSYS)/lib/al.a ! 414: ( cd $(USRSYS); ldconfig al0 ) ! 415: ! 416: $(LDRV)/al1: $(USRSYS)/lib/al.a ! 417: ( cd $(USRSYS); ldconfig al1 ) ! 418: ! 419: $(LDRV)/at: $(USRSYS)/lib/at.a ! 420: ( cd $(USRSYS); ldconfig at ) ! 421: ! 422: $(LDRV)/fl: $(USRSYS)/lib/fl.a ! 423: ( cd $(USRSYS); ldconfig fl ) ! 424: ! 425: $(LDRV)/gr: $(USRSYS)/lib/gr.a ! 426: ( cd $(USRSYS); ldconfig gr ) ! 427: ! 428: $(LDRV)/hs: $(USRSYS)/lib/hs.a ! 429: ( cd $(USRSYS); ldconfig hs ) ! 430: ! 431: $(LDRV)/lp: $(USRSYS)/lib/lp.a ! 432: ( cd $(USRSYS); ldconfig lp ) ! 433: ! 434: $(LDRV)/mm: $(USRSYS)/lib/mm.a ! 435: ( cd $(USRSYS); ldconfig mm ) ! 436: ! 437: $(LDRV)/ms: $(USRSYS)/lib/ms.a ! 438: ( cd $(USRSYS); ldconfig ms ) ! 439: ! 440: $(LDRV)/rm: $(USRSYS)/lib/rm.a ! 441: ( cd $(USRSYS); ldconfig rm )
This archive runs on limited infrastructure. Preserving old code on modern bandwidth. Automated agents are requested to crawl responsibly.