Annotation of coherent/d/286_KERNEL/USRSRC/io/Makefile, revision 1.1.1.1

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

unix.superglobalmegacorp.com

This archive runs on limited infrastructure. Preserving old code on modern bandwidth. Automated agents are requested to crawl responsibly.