|
|
1.1.1.2 ! root 1: # D. L. Buck and Associates - 3277 Emulation Utilities - May, 1984 1.1 root 2: 1.1.1.2 ! root 3: #static s_make[] = "@(#)makefile 1.20 REL"; /* sccs id */ ! 4: ! 5: MAKEPARAM = AS=${AS} CC=${CC} LD=${LD} INCLDIR=${INCLDIR} LIBDIR=${LIBDIR} ULIBDIR=${ULIBDIR} DESTDIR=${DESTDIR} ! 6: SHELL = /bin/sh ! 7: MAKE = make ! 8: SH = /bin/sh ! 9: TESTDIR = ../../bin ! 10: TARGET = CCI ! 11: LDFLAGS = -i ! 12: LIBNAME = applib ! 13: CFLAGS=-O -I${INCLDIR} ! 14: I=../../include ! 15: ! 16: 3270FILES = em3277.c em_cnfig.c em_errs.c emgetstr.c emprint.c \ ! 17: emprocbuf.c emputchar.c emreadbuf.c emreadmod.c emstats.c \ ! 18: emterm.c emulate.c em_gnext.c em_help.c inst3270.c em_audnm.c ! 19: ! 20: 3280FILES = em3280.c emprinters.c emprcnfig.c emprtr.c empaudnm.c \ ! 21: emperrs.c emprbuf.c em_gnext.c inst3280.c ! 22: HDRS = /usr/include/em.h /usr/include/empr.h $(TARGET)local.h ! 23: 3270OBJS = em3277.o em_cnfig.o em_errs.o emgetstr.o emprint.o \ ! 24: emprocbuf.o emputchar.o emreadbuf.o emreadmod.o emstats.o \ ! 25: emterm.o emulate.o em_gnext.o em_help.o em_audnm.o ! 26: ! 27: 3280OBJS = em3280.o emprinters.o emprcnfig.o emprtr.o empaudnm.o \ ! 28: emperrs.o emprbuf.o em_gnext.o ! 29: .c: ! 30: $(CC) $(CFLAGS) $(LDFLAGS) $< -o $@ ! 31: ! 32: .c~: ! 33: $(GET) $(GFLAGS) -p $< > $*.c ! 34: $(CC) $(CFLAGS) $(LDFLAGS) $*.c -o $@ ! 35: -rm -f $*.c ! 36: ! 37: .s.a: ! 38: $(AS) $(ASFLAGS) -o $*.o $*.s ! 39: ar rv $@ $*.o ! 40: -rm -f $*.o ! 41: ! 42: all: ${DESTDIR}/usr/include/em.h $(TESTDIR)/.3277 ${DESTDIR}/usr/include/empr.h \ ! 43: local.h ! 44: ! 45: ! 46: release: ! 47: echo Modification history -- $(TARGET) > hist.out ! 48: -for i in $(3270FILES) $(3280FILES); \ ! 49: do echo "------------------- Delta History for" $$i "--------------" >> hist.out;\ ! 50: prs -r -e -d"Delta :I: on :D: by :P::\n\t:C:MRs :MR:" s.$$i >> hist.out;\ ! 51: done ! 52: pr -h "cmd/3270 modification history" hist.out | ipr -D"formwidth 132" ! 53: rm hist.out ! 54: ! 55: $(TESTDIR)/.3277:\ ! 56: $(TESTDIR)/em3277 \ ! 57: $(TESTDIR)/em3277.x\ ! 58: $(TESTDIR)/em3280 \ ! 59: $(TESTDIR)/em3280.x ! 60: -touch $(TESTDIR)/.3277 ! 61: ! 62: $(TESTDIR)/em3277: em3277 ! 63: -rm $(TESTDIR)/em3277;ln em3277 $(TESTDIR) ! 64: $(TESTDIR)/em3277.x: em3277.x ! 65: -rm $(TESTDIR)/em3277.x;ln em3277.x $(TESTDIR) ! 66: $(TESTDIR)/em3280: em3280 ! 67: -rm $(TESTDIR)/em3280; ln em3280 $(TESTDIR) ! 68: $(TESTDIR)/em3280.x: em3280.x ! 69: -rm $(TESTDIR)/em3280.x; ln em3280.x $(TESTDIR) ! 70: ! 71: $(LIBNAME): ! 72: cd ../batch;$(MAKE) applib TARGET=$(TARGET) ! 73: -ln ../batch/applib . ! 74: ! 75: ${DESTDIR}/usr/include/em.h: em.h ! 76: cp em.h ${DESTDIR}/usr/include/em.h ! 77: cp empr.h ${DESTDIR}/usr/include/empr.h ! 78: ! 79: ${DESTDIR}/usr/include/empr.h: empr.h ! 80: cp empr.h ${DESTDIR}/usr/include/empr.h ! 81: ! 82: local.h: $(TARGET)local.h ! 83: ln $(TARGET)local.h local.h ! 84: emterm.c: $(TARGET)emterm.c ! 85: ln $(TARGET)emterm.c emterm.c ! 86: ! 87: em3277: $(3270OBJS) $(LIBNAME) ! 88: $(CC) $(CFLAGS) $(FFLAG) -o em3277 inst3270.c \ ! 89: $(3270OBJS) \ ! 90: $(LIBNAME) -lcurses -ltermlib ! 91: ! 92: em3277.x: $(3270OBJS) $(LIBNAME) ! 93: -ld -r -x -o em3277.x \ ! 94: $(3270OBJS) \ ! 95: $(LIBNAME) -lcurses -ltermlib ! 96: ! 97: em3280: $(3280OBJS) $(LIBNAME) ! 98: $(CC) $(CFLAGS) $(FFLAG) -o em3280 inst3280.c \ ! 99: $(3280OBJS) $(LIBNAME) ! 100: em3280.x: $(3280OBJS) $(LIBNAME) ! 101: -ld -r -x -o em3280.x\ ! 102: $(3280OBJS) $(LIBNAME) ! 103: ! 104: # make debug version of 3277 emulator: uses file, not /dev/bsc ! 105: debug: db3277.o dbulate.o dbterm.o dbprocbuf.o $(3270OBJS) inst3270.o ! 106: $(CC) -o db3277 -i db3277.o dbterm.o dbulate.o dbprocbuf.o \ ! 107: em_cnfig.o em_errs.o emgetstr.o emprint.o \ ! 108: emputchar.o emreadbuf.o emreadmod.o emstats.o \ ! 109: em_gnext.o em_help.o em_audnm.o inst3270.o applib -lcurses -ltermlib ! 110: db3277.o: em3277.c ../../sys/bsc/bscio.h em.h /usr/include/curses.h ! 111: $(CC) $(CFLAGS) -c -DDEBUG em3277.c;mv em3277.o db3277.o ! 112: dbulate.o: emulate.c local.h ../../sys/bsc/bscio.h em.h /usr/include/curses.h ! 113: $(CC) $(CFLAGS) -c -DDEBUG emulate.c;mv emulate.o dbulate.o ! 114: dbterm.o: emterm.c em.h local.h /usr/include/curses.h ! 115: $(CC) $(CFLAGS) -c -DDEBUG emterm.c;mv emterm.o dbterm.o ! 116: dbprocbuf.o: emprocbuf.c em.h ../../sys/bsc/bscio.h /usr/include/curses.h ! 117: $(CC) $(CFLAGS) -c -DDEBUG emprocbuf.c;mv emprocbuf.o dbprocbuf.o ! 118: ! 119: # make debug version of 3280 emulator ! 120: debug8: db3280.o dbprinters.o dbprbuf.o dbprtr.o $(3280OBJS) inst3280.o ! 121: $(CC) -o db3280 -i db3280.o dbprinters.o dbprbuf.o dbprtr.o \ ! 122: emprcnfig.o emperrs.o empaudnm.o em_gnext.o inst3280.o applib ! 123: db3280.o: em3280.c ../../sys/bsc/bscio.h empr.h ! 124: $(CC) $(CFLAGS) -c -DDEBUG em3280.c;mv em3280.o db3280.o ! 125: dbprinters.o: emprinters.c ../../sys/bsc/bscio.h empr.h /usr/include/signal.h ! 126: $(CC) $(CFLAGS) -c -DDEBUG emprinters.c;mv emprinters.o dbprinters.o ! 127: dbprbuf.o: emprbuf.c empr.h ! 128: $(CC) $(CFLAGS) -c -DDEBUG emprbuf.c;mv emprbuf.o dbprbuf.o ! 129: dbprtr.o: emprtr.c empr.h ! 130: $(CC) $(CFLAGS) -c -DDEBUG emprtr.c;mv emprtr.o dbprtr.o ! 131: ../../sys/bsc/bscio.h: local.h ! 132: em3277.o: ../../sys/bsc/bscio.h em.h ${DESTDIR}/usr/include/curses.h ! 133: em3280.o: ../../sys/bsc/bscio.h empr.h ! 134: em_audnm.o: em.h ${DESTDIR}/usr/include/curses.h ! 135: em_cnfig.o: ../../sys/bsc/bscio.h ! 136: em_errs.o: ../../sys/bsc/bscio.h em.h ${DESTDIR}/usr/include/curses.h ! 137: em_help.o: em.h ${DESTDIR}/usr/include/curses.h ! 138: emgetstr.o: em.h ${DESTDIR}/usr/include/curses.h ! 139: empaudnm.o: empr.h ! 140: emperrs.o: ../../sys/bsc/bscio.h em.h ${DESTDIR}/usr/include/curses.h ! 141: emprbuf.o: empr.h ! 142: emprcnfig.o: ../../sys/bsc/bscio.h ! 143: emprint.o: em.h ${DESTDIR}/usr/include/curses.h ! 144: emprinters.o: empr.h ../../sys/bsc/bscio.h ! 145: emprocbuf.o: em.h ../../sys/bsc/bscio.h ${DESTDIR}/usr/include/curses.h ! 146: emprtr.o: empr.h ! 147: emputchar.o: em.h ${DESTDIR}/usr/include/curses.h ! 148: emreadbuf.o: em.h ../../sys/bsc/bscio.h ${DESTDIR}/usr/include/curses.h ! 149: emreadmod.o: em.h ../../sys/bsc/bscio.h ${DESTDIR}/usr/include/curses.h ! 150: emstats.o: em.h ${DESTDIR}/usr/include/curses.h ! 151: emterm.o: em.h local.h ${DESTDIR}/usr/include/curses.h ! 152: emulate.o: local.h ../../sys/bsc/bscio.h em.h ${DESTDIR}/usr/include/curses.h ! 153: ! 154: print: $(3270FILES) $(3280FILES) $(HDRS) ! 155: pr $? | spool; -touch print ! 156: ! 157: lint: $(3270FILES) $(3280FILES) $(HDRS) ! 158: lint $(3270FILES) $(3280FILES) ! 159: clean: ! 160: -rm -f *.o
This archive runs on limited infrastructure. Preserving old code on modern bandwidth. Automated agents are requested to crawl responsibly.