|
|
1.1 root 1: # for all OS --
2: OPT = -O
3: PROF = -p
4: PI = -g
5:
6: PRODUCTION = $(OPT)
7: DEBUG = $(PROF) $(PI)
8:
9: # -- for UNIX 9th Ed --
10: CFLAGS = $(PRODUCTION)
11: LIBS = -lY3610 -lY
12: PORTLIB = -lport
13: LDFLAGS =
14: F77LIBS = $(LIBS)
15: MLIB =
16: REGEX =
17: FTW =
18: METLIB = mlib.o
19: RASTLIB =
20: POSTLIB =
21: GRAPHICLIBS =
22:
23: # -- For Sun OS 4.x --
24: ##GRAPHICLIBS = -lsuntool -lsunwindow -lpixrect
25: ##MLIB = -lm
26: ##LIBS = $(GRAPHICLIBS) $(MLIB)
27: ##PORTLIB = /usr/lib/libport3.a
28: ##F77LIBS = -lF77 -lI77 -lc $(MLIB) $(GRAPHICLIBS)
29: ##REGEX = regexec.o regcomp.o regerror.o
30: ##FTW = myftw.o
31: ##LDFLAGS = $(PROF) -fswitch
32: ##CFLAGS = $(PROF) -fswitch -Bstatic
33: ##METLIB = sunlib.o
34: ##RASTLIB = rastlib.o
35: ##POSTLIB = postlib.o
36:
37: all: bcp
38: touch bcp
39: clean:
40: rm -rf *.[cho15] bcp bcp.cpio *.srcs makefile
41:
42: # the next three targets are for use in 1127 software distribution on bowell
43:
44: install: /usr/bin/bcp
45: cp bcp.1 /usr/man/man1
46:
47: /usr/bin/bcp: bcp
48: strip bcp
49: cp bcp /usr/bin
50:
51: ship: /usr/bin/bcp
52: ship /usr/bin/bcp
53:
54: # If you want to use UNIX FILE_TREEs:
55: Path.o: Path.c CPU.h myftw.h Path.h
56: cc $(CFLAGS) -c Path.c
57: FTREE=Path.o
58:
59: # If you DON'T want to use FILE_TREEs:
60: ##FTREE=
61:
62: bcp: bcp.o CCITT.o rlelib.o riclib.o Coord.o piclib.o jslr.o Text.o $(FTREE) $(POSTLIB) $(RASTLIB)
63: cc $(CFLAGS) bcp.o CCITT.o rlelib.o riclib.o Coord.o piclib.o jslr.o Text.o $(FTREE) $(POSTLIB) $(RASTLIB) $(MLIB) $(GRAPHICLIBS) -o bcp
64: bcp.o: bcp.c CPU.h stdocr.h rle.h CCITT.h bitio.h pic.h Path.h Bitmap.h Text.h abort.h
65: cc $(CFLAGS) $(MLIB) $(GRAPHICLIBS) -c bcp.c
66:
67: stdocr.h: boole.h limits.h Units.h ric.h fioi.h
68: touch stdocr.h
69: CCITT.o: CCITT.c CPU.h stdocr.h rle.h Bitmap.h CCITT.h bitio.h
70: cc $(CFLAGS) -c CCITT.c
71: rlelib.o: rlelib.c CPU.h stdocr.h rle.h ric.h
72: cc $(CFLAGS) -c rlelib.c
73: riclib.o: riclib.c CPU.h stdocr.h
74: cc $(CFLAGS) -c riclib.c
75: Coord.o: Coord.c CPU.h boole.h Units.h Coord.h
76: cc $(CFLAGS) -c Coord.c
77: Text.o: Text.c font.h Bfeats.h stdocr.h
78: cc $(CFLAGS) -c Text.c
79: piclib.o: piclib.c CPU.h boole.h limits.h Units.h Coord.h pic.h
80: cc $(CFLAGS) -c piclib.c
81: jslr.o: jslr.c
82: cc $(CFLAGS) -c jslr.c
83: rastlib.o: rastlib.c
84: cc $(CFLAGS) $(MLIB) $(GRAPHICLIBS) -c rastlib.c
85: postlib.o: postlib.c
86: cc $(CFLAGS) -c postlib.c
87: sunlib.o: sunlib.c
88: cc $(CFLAGS) -c sunlib.c
89: myftw.o: myftw.c myftw.h
90: cc $(CFLAGS) -c myftw.c
This archive runs on limited infrastructure. Preserving old code on modern bandwidth. Automated agents are requested to crawl responsibly.