Annotation of 43BSD/ucb/tn3270/Makefile, revision 1.1.1.1

1.1       root        1: # Makefile for tn3270 and friends...
                      2: # @(#)Makefile 2.11    2.11
                      3: 
                      4: CC     = cc
                      5: 
                      6: DEFINES = -DDEBUG
                      7: DEFINES =
                      8: 
                      9: INCLUDES = -I.
                     10: INCLUDES =
                     11: 
                     12: OPTIMIZE = -O
                     13: 
                     14: CFLAGS = $(OPTIMIZE) $(INCLUDES) $(DEFINES)
                     15: 
                     16: # Lint flags
                     17: LINTFLAGS      = -hbxaz
                     18: # How to install the bloody thing...
                     19: 
                     20: DESTDIR=
                     21: 
                     22: BINDIR         = $(DESTDIR)/usr/ucb
                     23: ETCDIR         = $(DESTDIR)/etc
                     24: 
                     25: # Names for the terminal libraries...
                     26: LIBCURSES      = -lcurses
                     27: LIBTERM                = -ltermlib
                     28: 
                     29: # The source files...
                     30: ALLH = 3270.h ascebc.h ectype.h options.h screen.h state.h DEFS.h
                     31: M4FILE = termcodes.m4
                     32: 
                     33: MOSTC = asctab.c ebctab.c options.c screen.c datastream.c keyboard.c \
                     34:        termin.c map3270.c ectype.c
                     35: TNMAIN = tn3270.c
                     36: MSMAIN = mset.c
                     37: 
                     38: #
                     39: #      In a vax environment, we use vaxbsubs.s, which gives us a fair amount
                     40: #      of increased performance.  We have provided genbsubs.c, which perform
                     41: #      (more or less) the same function.
                     42: SUBS = genbsubs.c
                     43: SUBS = vaxbsubs.s
                     44: 
                     45: SUBSO = genbsubs.o
                     46: SUBSO = vaxbsubs.o
                     47: 
                     48: ALLC = ${MOSTC} ${TNMAIN} ${MSMAIN} ${SUBS}
                     49: ALLC = ${MOSTC} ${TNMAIN} ${MSMAIN}
                     50: 
                     51: ALLS =
                     52: ALLS = vaxbsubs.s
                     53: 
                     54: MOSTO  = tn3270.o ebctab.o asctab.o termin.o keyboard.o \
                     55:                datastream.o screen.o map3270.o options.o \
                     56:                ectype.o $(SUBSO)
                     57: 
                     58: ALLO   = $(MOSTO) mset.o
                     59: 
                     60: .s.o:
                     61:        /lib/cpp -E $< | as -o $@
                     62: 
                     63: all:   ${ALLH} ${ALLC} ${ALLS} tn3270 mset
                     64: 
                     65: tn3270:        $(MOSTO)
                     66:        ${CC} ${CFLAGS} -o tn3270 tn3270.o $(MOSTO) $(LIBCURSES) $(LIBTERM)
                     67: 
                     68: mset:  mset.o map3270.o
                     69:        ${CC} ${CFLAGS} -o mset mset.o map3270.o $(LIBCURSES)
                     70: 
                     71: install:
                     72:        install -s tn3270 $(BINDIR)
                     73:        install -s mset $(BINDIR)
                     74:        install -c -m 444 map3270 $(ETCDIR)
                     75: 
                     76: clean:
                     77:        rm -f $(ALLO) mset tn3270 m4.out errs Makefile.bak
                     78: 
                     79: print:
                     80:        print ${ALLH} ${M4FILE} ${MOSTC} ${TNMAIN} ${MSMAIN} ${SUBS}
                     81:        fold default.map3270 | pr -f -h "` echo default.map3270 - ;date`" | lpr
                     82: 
                     83: tags:  ${ALLC} ${ALLH}
                     84:        ctags -t ${ALLC} ${ALLH}
                     85: 
                     86: lint:
                     87:        lint ${LINTFLAGS} ${TNMAIN} ${MOSTC} -lcurses
                     88:        lint ${LINTFLAGS} ${MSMAIN} map3270.c -lcurses
                     89: 
                     90: .DEFAULT:
                     91:        sccs get $<
                     92: 
                     93: m4.out:                termcodes.m4
                     94:        /bin/rm -f m4.out
                     95:        m4 termcodes.m4 > m4.out
                     96:        /bin/chmod 444 m4.out
                     97: 
                     98: depend:
                     99:        grep '^#include' ${ALLC} | grep -v '<' | \
                    100:        sed -e 's/:[^"]*"\([^"]*\)".*/: \1/' \
                    101:            -e 's/\.c/.o/' \
                    102:            -e 's,../[a-zA-Z]*/,,' | \
                    103:        awk ' { if ($$1 != prev) { print rec; rec = $$0; prev = $$1; } \
                    104:                else { if (length(rec $$2) > 78) { print rec; rec = $$0; } \
                    105:                       else rec = rec " " $$2 } } \
                    106:              END { print rec } ' > makedep
                    107:        echo '$$r makedep' >>eddep
                    108:        echo '/^# DO NOT DELETE THIS LINE/+1,$$d' >eddep
                    109:        echo '$$r makedep' >>eddep
                    110:        echo 'w' >>eddep
                    111:        cp Makefile Makefile.bak
                    112:        ed - Makefile < eddep
                    113:        rm eddep makedep
                    114: 
                    115: # DO NOT DELETE THIS LINE
                    116: 
                    117: asctab.o: ascebc.h
                    118: ebctab.o: ascebc.h
                    119: options.o: options.h
                    120: screen.o: screen.h 3270.h
                    121: datastream.o: ascebc.h 3270.h screen.h
                    122: keyboard.o: m4.out ascebc.h 3270.h screen.h options.h ectype.h
                    123: termin.o: m4.out state.h
                    124: map3270.o: m4.out state.h default.map3270
                    125: mset.o: state.h m4.out

unix.superglobalmegacorp.com

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