Fix bug of clearing terminal screen in wrong place (curses
[unix-history] / usr / src / usr.bin / tn3270 / sys_curses / makefile
CommitLineData
dd6c8c3e
GM
1# msdos versus unix defines
2O = .o
2b7ffe6e 3#PC_O = .obj
dd6c8c3e
GM
4
5X =
2b7ffe6e
GM
6#PC_X = .exe
7
8L =
9#PC_L = -link
dd6c8c3e 10
117a4254 11CC = cc
2b7ffe6e 12#PC_CC = cl
dd6c8c3e
GM
13
14MV = mv
2b7ffe6e 15#PC_MV = rename
dd6c8c3e
GM
16
17RM = rm -f
2b7ffe6e 18#PC_RM= erase
dd6c8c3e
GM
19
20LINT_ARGS =
2b7ffe6e 21#PC_LINT_ARGS = -DLINT_ARGS
dd6c8c3e
GM
22
23DEBUG_FLAGS = -g
2b7ffe6e 24#PC_DEBUG_FLAGS = -Zi -Od
dd6c8c3e
GM
25
26AR = ar
2b7ffe6e
GM
27AR1 = cr
28AR2 =
29AR3 =
30#PC_AR = lib
31#PC_AR1 =
32#PC_AR2 = +
33#PC_AR3 = ";"
dd6c8c3e
GM
34
35RANLIB = ranlib
2b7ffe6e 36#PC_RANLIB = echo "Done with "
dd6c8c3e 37
117a4254
GM
38PRINT = print
39
dd6c8c3e 40DEFINES = ${LINT_ARGS}
117a4254
GM
41
42INCLUDES = -I.
43
44OPTIMIZE = -O
dd6c8c3e 45OPTIMIZE = ${DEBUG_FLAGS}
117a4254
GM
46
47CFLAGS = $(OPTIMIZE) $(INCLUDES) $(DEFINES)
48
49# Lint flags
50LINTFLAGS = -hbxaz
51
4377cf8d
GM
52ALLH = terminal.h termout.ext
53
f33ac97e 54ALLC = system.c termout.c
117a4254 55
dd6c8c3e 56ALLO = system$O termout$O
117a4254 57
4377cf8d
GM
58ALLPRINT = ${ALLH} ${ALLC}
59
60ALLSOURCE = ${ALLPRINT} makefile
117a4254 61
dd6c8c3e
GM
62.c.obj:
63 ${CC} ${CFLAGS} -c $<
64
62c6784b 65syslib.a: $(ALLO)
dd6c8c3e 66 ${RM} $@
2b7ffe6e 67 for i in ${ALLO}; do (${AR} ${AR1} $@ ${AR2} $$i${AR3}); done
dd6c8c3e 68 ${RANLIB} $@
117a4254
GM
69
70clean:
dd6c8c3e
GM
71 for i in $(ALLO) errs makefile.bak syslib.a; \
72 do (${RM} $$i); done
73
74sccsclean:
62c6784b
GM
75 -sccs clean
76 -sccs get makefile
117a4254 77
4377cf8d
GM
78sourcelist: ${ALLSOURCE}
79 @for i in ${ALLSOURCE}; \
62c6784b 80 do (echo ${DIRPATH}$$i); done
4377cf8d 81
117a4254 82print:
4377cf8d 83 ${PRINT} ${ALLPRINT}
117a4254
GM
84
85tags: ${ALLC} ${ALLH}
86 ctags -t ${ALLC} ${ALLH}
87
0f801b82
GM
88action:
89 ${ACTION}
90
117a4254
GM
91lint:
92 lint ${LINTFLAGS} ${INCLUDES} ${DEFINES} -DTN3270 \
93 ${TNMAIN} ${MOSTC} -lcurses
94 lint ${LINTFLAGS} ${INCLUDES} ${DEFINES} ${MSMAIN} map3270.c -lcurses
95
96.DEFAULT:
97 sccs get $<
98
117a4254
GM
99depend:
100 grep '^#include' ${ALLC} ${ALLH} | grep -v '<' | \
101 sed -e 's/:[^"]*"\([^"]*\)".*/: \1/' \
dd6c8c3e 102 -e 's/\.c/$$O/' | \
117a4254
GM
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
dd6c8c3e 111 -rm -f makefile.bak
117a4254
GM
112 cp makefile makefile.bak
113 ed - makefile < eddep
114 rm eddep makedep
115
116# DO NOT DELETE THIS LINE
117
dd6c8c3e
GM
118system$O: ../general/general.h ../api/api.h ../apilib/api_exch.h
119system$O: ../general/globals.h
120termout$O: ../general/general.h terminal.h ../telnet.ext ../apilib/disp_asc.h
121termout$O: ../ctlr/hostctlr.h ../ctlr/inbound.ext ../ctlr/oia.h
122termout$O: ../ctlr/options.ext ../ctlr/outbound.ext ../ctlr/screen.h
123termout$O: ../ascii/map3270.ext ../general/globals.h