|
|
1.1 root 1: ###############################################################################
2: # Instructions to Make, for compilation of QUIPU photo programs
3: ###############################################################################
4:
5: ###############################################################################
6: #
7: # $Header: /f/osi/others/quipu/photo/RCS/Makefile,v 7.1 90/03/27 08:52:54 mrose Exp $
8: #
9: #
10: # $Log: Makefile,v $
11: # Revision 7.1 90/03/27 08:52:54 mrose
12: # pbmplus
13: #
14: # Revision 7.0 89/11/23 22:01:31 mrose
15: # Release 6.0
16: #
17: ###############################################################################
18:
19: ###############################################################################
20: #
21: # NOTICE
22: #
23: # Acquisition, use, and distribution of this module and related
24: # materials are subject to the restrictions of a license agreement.
25: # Consult the Preface in the User's Manual for the full terms of
26: # this agreement.
27: #
28: ###############################################################################
29:
30:
31: # should really go in config/CONFIG.make
32: DISPLAY = ttyphoto hexphoto
33: # DISPLAY = sunphoto Xphoto ttyphoto hexphoto t4014
34:
35:
36: #######################################################################
37:
38: DEC = decode.o build_trees.o
39: ENC = encode.o code_word.o
40: UTIL = interface.o
41:
42:
43: all: libphoto.a $(DISPLAY)
44:
45: lint:
46: $(LINT) $(LFLAGS) decode.c build_trees.c interface.c d_main.c tty.c
47:
48: libphoto.a: $(DEC) $(UTIL)
49: -rm -f $@
50: @$(UTILDIR)make-lib.sh $(SYSTEM) $(ARFLAGS) $@ $(DEC) $(UTIL)
51:
52: pr2pe: $(ENC) $(UTIL) e_main.o
53: $(LDCC) $(LDFLAGS) -o pr2pe e_main.o $(ENC) $(UTIL) -lpixrect
54:
55: sunphoto: libphoto.a d_main.o sunview.o
56: $(LDCC) $(LDFLAGS) -o sunphoto \
57: d_main.o libphoto.a sunview.o -lsuntool -lsunwindow -lpixrect
58:
59: Xphoto: libphoto.a d_main.o winx.o
60: $(LDCC) $(LDFLAGS) -o Xphoto \
61: d_main.o libphoto.a winx.o -lX11
62:
63: t4014: libphoto.a d_main.o t4014.o
64: $(LDCC) $(LDFLAGS) -o t4014 \
65: d_main.o libphoto.a t4014.o -l4014 -lm
66:
67: ttyphoto: libphoto.a d_main.o tty.o
68: $(LDCC) $(LDFLAGS) -o ttyphoto \
69: d_main.o libphoto.a tty.o
70:
71: hexphoto: hexphoto.o d_main.o
72: $(LDCC) $(LDFLAGS) -o hexphoto hexphoto.o d_main.o
73:
74: decode.o: decode.c $(HDIR)quipu/photo.h
75: $(CC) -c $(CFLAGS) -DFAXDIR=\"$(SBINDIR)g3fax\" $*.c
76:
77:
78: ###############################################################################
79: # some programs for Jef Poskanzer's pbm package
80: ###############################################################################
81:
82: PBMDIR = /usr/src/pbmplus/
83: LIBPBM = $(PBMDIR)pbm/libpbm.a
84:
85: pbm: faxtopbm pbmtofax
86:
87: faxtopbm: faxtopbm.o libphoto.a $(LIBPBM)
88: $(LDCC) $(LDFLAGS) -o $@ faxtopbm.o libphoto.a $(LIBPBM) \
89: $(TOPDIR)libisode.a $(LSOCKET)
90:
91: faxtopbm.o: faxtopbm.c
92: $(CC) $(CFLAGS) -I$(PBMDIR) -c faxtopbm.c
93:
94: pbmtofax: pbmtofax.o encode.o code_word.o interface.o $(LIBPBM)
95: $(LDCC) $(LDFLAGS) -o $@ pbmtofax.o encode.o code_word.o \
96: interface.o $(LIBPBM)
97:
98: pbmtofax.o: pbmtofax.c
99: $(CC) $(CFLAGS) -I$(PBMDIR) -c pbmtofax.c
100:
101:
102: #####################################################################
103: install: inst-all clean
104:
105: inst-all: $(SBINDIR)g3fax inst-disp
106:
107: inst-disp: $(DISPLAY) libphoto.a
108: -mv $(SBINDIR)g3fax/ttyphoto zttyphoto
109: -cp ttyphoto $(SBINDIR)g3fax/ttyphoto
110: -mv $(SBINDIR)g3fax/hexphoto zhexphoto
111: -cp hexphoto $(SBINDIR)g3fax/hexphoto
112: -mv $(SBINDIR)g3fax/sunphoto zsunphoto
113: -cp sunphoto $(SBINDIR)g3fax/sunphoto
114: -mv $(SBINDIR)g3fax/Xphoto zXphoto
115: -cp Xphoto $(SBINDIR)g3fax/Xphoto
116: -mv $(SBINDIR)g3fax/t4014 zt4014
117: -cp t4014 $(SBINDIR)g3fax/t4014
118: -rm -f $(SBINDIR)g3fax/libphoto.a
119: cp libphoto.a $(SBINDIR)g3fax/libphoto.a
120: @$(UTILDIR)make-lib.sh $(SYSTEM) $(SBINDIR)g3fax/libphoto.a -ranlib
121: -@ls -gls $(SBINDIR)g3fax/libphoto.a
122: -@echo ""
123:
124: inst-pr2pe: pr2pe
125: -mv $(SBINDIR)g3fax/pr2pe zpr2pe
126: -cp pr2pe $(SBINDIR)g3fax/pr2pe
127:
128: inst-pbm: pbm
129: -mv $(SBINDIR)g3fax/faxtopbm zfaxtopbm
130: -mv $(SBINDIR)g3fax/pbmtofax zpbmtofax
131: -cp faxtopbm pbmtofax $(SBINDIR)g3fax/
132:
133: $(SBINDIR)g3fax: g3fax
134: -rm -rf $@
135: -cp -r g3fax $(SBINDIR)
136:
137: clean:
138: rm -f _* *.o *.old *% foo* core z* *.a \
139: *.orig \
140: sunphoto hexphoto ttyphoto \
141: pr2pe Xphoto t4014 \
142: faxtopbm pbmtofax
This archive runs on limited infrastructure. Preserving old code on modern bandwidth. Automated agents are requested to crawl responsibly.