|
|
1.1 root 1: # variables...
2: O = .obj
3: X = .exe
4: L = -link
5: CC = cl
6: MV = rename
7: RM = erase
8: LINT_ARGS = -DLINT_ARGS
9: DEBUG_FLAGS = -Zi -Od
10: AR = lib
11: AR1 =
12: AR2 = +
13: AR3 = ";"
14: RANLIB = echo "Done with "
15: DEFINES = ${LINT_ARGS}
16: CFLAGS = ${DEBUG_FLAGS} -I..
17: PRINT = lpr -p
18: ALLC = tnrecv.c
19: ALLH = tncomp.h
20: ALLPRINT = ${ALLH} ${ALLC}
21: ALLSOURCE = ${ALLPRINT} makefile makefile.mak
22: ALLO = tnrecv${O}
23:
24:
25: #targets...
26:
27: .c.obj:
28: ${CC} ${CFLAGS} -c $<
29:
30: all: tnrecv${X}
31:
32:
33: tnrecv${X}: tnrecv${O}
34: ${CC} ${CFLAGS} -o $@ tnrecv${O} ${L} ..\api\api.lib
35:
36: clean:
37: ${RM} makefile.bak
38: cd ${CWD}
39: ${RM} tnrecv.obj
40: cd ${CWD}
41: ${RM} errs
42: cd ${CWD}
43: ${RM} tnrecv.exe
44: cd ${CWD}
45:
46:
47:
48: .DEFAULT:
49: sccs get $<
50:
51: sccsclean:
52: -sccs clean
53: -sccs get makefile
54:
55: action:
56: ${ACTION}
57:
58: print:
59: ${PRINT} ${ALLPRINT}
60:
61: sourcelist: ${ALLSOURCE} tarread.exe
62: echo ${DIRPATH}tncomp.h
63: cd ${CWD}
64: echo ${DIRPATH}tnrecv.c
65: cd ${CWD}
66: echo ${DIRPATH}makefile
67: cd ${CWD}
68: echo ${DIRPATH}makefile.mak
69: cd ${CWD}
70: echo ${DIRPATH}tarread.exe
71: cd ${CWD}
72:
73:
74:
75: depend:
76: grep '^#include' ${ALLC} | grep -v '<' | sed -e 's\:[^"]*"\([^"]*\)".*\: \1\' -e 's\\.c\$$O\' | awk ' { if ($$1 != prev) { print rec; rec = $$0; prev = $$1; } \
77: else { if (length(rec $$2) > 78) { print rec; rec = $$0; } \
78: else rec = rec " " $$2 } } \
79: END { print rec } ' > makedep
80: echo '$$r makedep' >>eddep
81: echo '\^# DO NOT DELETE THIS LINE\+1,$$d' >eddep
82: echo '$$r makedep' >>eddep
83: echo 'w' >>eddep
84: -rm -f makefile.bak
85: cp makefile makefile.bak
86: ed - makefile < eddep
87: rm eddep makedep
This archive runs on limited infrastructure. Preserving old code on modern bandwidth. Automated agents are requested to crawl responsibly.