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