|
|
1.1 ! root 1: # ! 2: # Copyright (c) 1988 Regents of the University of California. ! 3: # All rights reserved. ! 4: # ! 5: # Redistribution and use in source and binary forms are permitted ! 6: # provided that the above copyright notice and this paragraph are ! 7: # duplicated in all such forms and that any documentation, ! 8: # advertising materials, and other materials related to such ! 9: # distribution and use acknowledge that the software was developed ! 10: # by the University of California, Berkeley. The name of the ! 11: # University may not be used to endorse or promote products derived ! 12: # from this software without specific prior written permission. ! 13: # THIS SOFTWARE IS PROVIDED ``AS IS'' AND WITHOUT ANY EXPRESS OR ! 14: # IMPLIED WARRANTIES, INCLUDING, WITHOUT LIMITATION, THE IMPLIED ! 15: # WARRANTIES OF MERCHANTIBILITY AND FITNESS FOR A PARTICULAR PURPOSE. ! 16: # ! 17: # @(#)makefile 4.2 (Berkeley) 6/6/90 ! 18: # ! 19: # msdos versus unix defines ! 20: O = .o ! 21: #PC_O = .obj ! 22: ! 23: X = ! 24: #PC_X = .exe ! 25: ! 26: L = ! 27: #PC_L = -link ! 28: ! 29: CC = cc ! 30: #PC_CC = cl ! 31: ! 32: MV = mv ! 33: #PC_MV = rename ! 34: ! 35: RM = rm -f ! 36: #PC_RM= erase ! 37: ! 38: LINT_ARGS = ! 39: #PC_LINT_ARGS = -DLINT_ARGS ! 40: ! 41: DEBUG_FLAGS = -g ! 42: #PC_DEBUG_FLAGS = -Zi -Od ! 43: ! 44: AR = ar ! 45: AR1 = cr ! 46: AR2 = ! 47: AR3 = ! 48: #PC_AR = lib ! 49: #PC_AR1 = ! 50: #PC_AR2 = + ! 51: #PC_AR3 = ";" ! 52: ! 53: RANLIB = ranlib ! 54: #PC_RANLIB = echo "Done with " ! 55: ! 56: PRINT = print ! 57: ! 58: DEFINES = ${LINT_ARGS} ! 59: ! 60: INCLUDES = -I. ! 61: ! 62: OPTIMIZE = -O ! 63: OPTIMIZE = ${DEBUG_FLAGS} ! 64: ! 65: CFLAGS = $(OPTIMIZE) $(INCLUDES) $(DEFINES) ! 66: ! 67: # Lint flags ! 68: LINTFLAGS = -hbxaz ! 69: # How to install the bloody thing... ! 70: ! 71: DESTDIR= ! 72: ! 73: BINDIR = $(DESTDIR)/usr/ucb ! 74: ETCDIR = $(DESTDIR)/etc ! 75: MANDIR = $(DESTDIR)/usr/man/man ! 76: ! 77: # Names for the terminal libraries... ! 78: LIBCURSES = -lcurses ! 79: LIBTERM = -ltermlib ! 80: ! 81: # The source files... ! 82: ALLH = general.h globals.h ! 83: ! 84: ALLC = globals.c ! 85: ! 86: # ! 87: # In a vax environment, we use vaxbsubs.s, which gives us a fair amount ! 88: # of increased performance. We have provided genbsubs.c, which perform ! 89: # (more or less) the same function. ! 90: SUBS = vaxbsubs.s ! 91: SUBS = genbsubs.c ! 92: ! 93: SUBSO = vaxbsubs$O ! 94: SUBSO = genbsubs$O ! 95: ! 96: ALLS = vaxbsubs.s ! 97: ! 98: ALLHC= ${ALLH} ${ALLC} ! 99: ALLPRINT = ${ALLHC} vaxbsubs.s genbsubs.c ! 100: ! 101: ALLSOURCE = ${ALLPRINT} makefile makefile.mak ! 102: ! 103: ALLS = ! 104: ! 105: ALLO = globals$O ${SUBSO} ! 106: ! 107: .s.o: ! 108: /lib/cpp -E $< | as -o $@ ! 109: ! 110: #.c.obj: ! 111: # ${CC} ${CFLAGS} -c $< ! 112: ! 113: generallib.a: ${ALLO} ! 114: ${RM} $@ ! 115: for i in ${ALLO}; do (${AR} ${AR1} $@ ${AR2} $$i${AR3}); done ! 116: ${RANLIB} $@ ! 117: ! 118: clean: ! 119: for i in $(ALLO) errs makefile.bak generallib.a; \ ! 120: do (${RM} $$i); done ! 121: ! 122: sccsclean: ! 123: -sccs clean ! 124: -sccs get makefile ! 125: ! 126: clist: ${ALLC} ! 127: @for i in ${ALLC} ; \ ! 128: do (echo ${DIRPATH}$$i); done ! 129: ! 130: hclist: ${ALLHC} ! 131: @for i in ${ALLHC} ; \ ! 132: do (echo ${DIRPATH}$$i); done ! 133: ! 134: sourcelist: ${ALLSOURCE} ! 135: @for i in ${ALLSOURCE}; \ ! 136: do (echo ${DIRPATH}$$i); done ! 137: ! 138: print: ! 139: ${PRINT} ${ALLPRINT} ! 140: ! 141: tags: ${ALLC} ${ALLH} ! 142: ctags -t ${ALLC} ${ALLH} ! 143: ! 144: action: ! 145: ${ACTION} ! 146: ! 147: lint: ! 148: lint ${LINTFLAGS} ${INCLUDES} ${DEFINES} ${ALLC} ! 149: ! 150: .DEFAULT: ! 151: sccs get $< ! 152: ! 153: depend: ! 154: grep '^#include' ${ALLC} ${ALLH} | grep -v '<' | \ ! 155: sed -e 's/:[^"]*"\([^"]*\)".*/: \1/' \ ! 156: -e 's/\.c/$$O/' | \ ! 157: awk ' { if ($$1 != prev) { print rec; rec = $$0; prev = $$1; } \ ! 158: else { if (length(rec $$2) > 78) { print rec; rec = $$0; } \ ! 159: else rec = rec " " $$2 } } \ ! 160: END { print rec } ' > makedep ! 161: echo '$$r makedep' >>eddep ! 162: echo '/^# DO NOT DELETE THIS LINE/+1,$$d' >eddep ! 163: echo '$$r makedep' >>eddep ! 164: echo 'w' >>eddep ! 165: -rm -f makefile.bak ! 166: cp makefile makefile.bak ! 167: ed - makefile < eddep ! 168: rm eddep makedep ! 169: ! 170: # DO NOT DELETE THIS LINE ! 171: ! 172: globals$O: ../ctlr/hostctlr.h ../ctlr/oia.h ../ctlr/options.h ../ctlr/screen.h ! 173: globals$O: globals.h ../general/general.h
This archive runs on limited infrastructure. Preserving old code on modern bandwidth. Automated agents are requested to crawl responsibly.