1CC = cc 2PRINT = print 3 4DEFINES = 5 6INCLUDES = -I. 7 8OPTIMIZE = -O 9OPTIMIZE = -g 10 11CFLAGS = $(OPTIMIZE) $(INCLUDES) $(DEFINES) 12 13# Lint flags 14LINTFLAGS = -hbxaz 15 16ALLC = termout.c system.c 17 18ALLO = termout.o system.o 19 20ALLH = 21 22screenlib: $(ALLO) 23 ar cr screenlib $(ALLO) 24 ranlib screenlib 25 26clean: 27 rm -f $(ALLO) errs makefile.bak screenlib 28 29print: 30 ${PRINT} ${ALLC} ${ALLH} 31 32tags: ${ALLC} ${ALLH} 33 ctags -t ${ALLC} ${ALLH} 34 35action: 36 ${ACTION} 37 38lint: 39 lint ${LINTFLAGS} ${INCLUDES} ${DEFINES} -DTN3270 \ 40 ${TNMAIN} ${MOSTC} -lcurses 41 lint ${LINTFLAGS} ${INCLUDES} ${DEFINES} ${MSMAIN} map3270.c -lcurses 42 43.DEFAULT: 44 sccs get $< 45 46depend: 47 grep '^#include' ${ALLC} ${ALLH} | grep -v '<' | \ 48 sed -e 's/:[^"]*"\([^"]*\)".*/: \1/' \ 49 -e 's/\.c/.o/' | \ 50 awk ' { if ($$1 != prev) { print rec; rec = $$0; prev = $$1; } \ 51 else { if (length(rec $$2) > 78) { print rec; rec = $$0; } \ 52 else rec = rec " " $$2 } } \ 53 END { print rec } ' > makedep 54 echo '$$r makedep' >>eddep 55 echo '/^# DO NOT DELETE THIS LINE/+1,$$d' >eddep 56 echo '$$r makedep' >>eddep 57 echo 'w' >>eddep 58 cp makefile makefile.bak 59 ed - makefile < eddep 60 rm eddep makedep 61 62# DO NOT DELETE THIS LINE 63 64termout.o: ../general/general.h ../telnet.ext ../ascii/disp_asc.h 65termout.o: ../ascii/map3270.ext ../ctlr/hostctlr.h ../ctlr/inbound.ext 66termout.o: ../ctlr/oia.h ../ctlr/options.ext ../ctlr/outbound.ext 67termout.o: ../ctlr/screen.h ../general/globals.h video.h 68system.o: ../general/general.h ../api/api.h spint.h ../general/globals.h 69