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