Import Upstream version 1.8.5
[hcoop/debian/openafs.git] / src / gtx / Makefile.in
1 # Copyright 2000, International Business Machines Corporation and others.
2 # All Rights Reserved.
3 #
4 # This software has been released under the terms of the IBM Public
5 # License. For details, see the LICENSE file in the top-level source
6 # directory or online at http://www.openafs.org/dl/license10.html
7
8 # Makefile for gtx, a display-independent, object-oriented window toolkit.
9
10 srcdir=@srcdir@
11 include @TOP_OBJDIR@/src/config/Makefile.config
12 include @TOP_OBJDIR@/src/config/Makefile.lwp
13
14
15 INCLS=gtxobjects.h \
16 gtxwindows.h \
17 gtxcurseswin.h \
18 gtxinput.h \
19 gtxdumbwin.h \
20 gtxX11win.h \
21 gtxobjects.h \
22 gtxkeymap.h \
23 gtxlightobj.h \
24 gtxtextobj.h \
25 gtxframe.h \
26 gtxobjdict.h \
27 ${TOP_INCDIR}/afs/keys.h \
28 ${TOP_INCDIR}/afs/cellconfig.h \
29 ${TOP_INCDIR}/afs/cmd.h
30
31 LIBS=\
32 ${TOP_LIBDIR}/librx.a \
33 ${TOP_LIBDIR}/liblwp.a \
34 ${TOP_LIBDIR}/libsys.a \
35 ${TOP_LIBDIR}/libcmd.a \
36 ${TOP_LIBDIR}/libkauth.a \
37 ${TOP_LIBDIR}/libauth.a \
38 ${TOP_LIBDIR}/librxkad.a \
39 ${TOP_LIBDIR}/libafsrfc3961.a \
40 ${TOP_LIBDIR}/libafscom_err.a \
41 ${TOP_LIBDIR}/libopr.a \
42 ${TOP_LIBDIR}/util.a
43
44 EXTRA_LIBS=${LIB_curses} ${XLIBS}
45
46 KEYMAP_SRCS=keymap.c input.c frame.c
47
48 KEYMAP_OBJS=keymap.o input.o frame.o
49
50 WINDOW_SRCS=curseswindows.c \
51 dumbwindows.c \
52 X11windows.c \
53 windows.c
54
55 WINDOW_OBJS=curseswindows.o \
56 dumbwindows.o \
57 X11windows.o \
58 windows.o
59
60 OBJECT_SRCS=objects.c \
61 lightobject.c \
62 textobject.c
63
64 OBJECT_OBJS=objects.o \
65 lightobject.o \
66 textobject.o
67
68 DICT_SRCS=objdict.c
69 DICT_OBJS=objdict.o
70
71 CB_SRCS=textcb.c
72 CB_OBJS=textcb.o
73
74 all: gtxtest \
75 ${TOP_LIBDIR}/libgtx.a \
76 ${TOP_INCDIR}/afs/gtxcurseswin.h \
77 ${TOP_INCDIR}/afs/gtxdumbwin.h \
78 ${TOP_INCDIR}/afs/gtxframe.h \
79 ${TOP_INCDIR}/afs/gtxinput.h \
80 ${TOP_INCDIR}/afs/gtxkeymap.h \
81 ${TOP_INCDIR}/afs/gtxlightobj.h \
82 ${TOP_INCDIR}/afs/gtxobjdict.h \
83 ${TOP_INCDIR}/afs/gtxobjects.h \
84 ${TOP_INCDIR}/afs/gtxtextcb.h \
85 ${TOP_INCDIR}/afs/gtxtextobj.h \
86 ${TOP_INCDIR}/afs/gtxwindows.h \
87 ${TOP_INCDIR}/afs/gtxX11win.h
88
89 ${TOP_LIBDIR}/libgtx.a: libgtx.a
90 ${INSTALL_DATA} $? $@
91
92 ${TOP_INCDIR}/afs/gtxcurseswin.h: gtxcurseswin.h
93 ${INSTALL_DATA} $? $@
94
95 ${TOP_INCDIR}/afs/gtxdumbwin.h: gtxdumbwin.h
96 ${INSTALL_DATA} $? $@
97
98 ${TOP_INCDIR}/afs/gtxframe.h: gtxframe.h
99 ${INSTALL_DATA} $? $@
100
101 ${TOP_INCDIR}/afs/gtxinput.h: gtxinput.h
102 ${INSTALL_DATA} $? $@
103
104 ${TOP_INCDIR}/afs/gtxkeymap.h: gtxkeymap.h
105 ${INSTALL_DATA} $? $@
106
107 ${TOP_INCDIR}/afs/gtxlightobj.h: gtxlightobj.h
108 ${INSTALL_DATA} $? $@
109
110 ${TOP_INCDIR}/afs/gtxobjdict.h: gtxobjdict.h
111 ${INSTALL_DATA} $? $@
112
113 ${TOP_INCDIR}/afs/gtxobjects.h: gtxobjects.h
114 ${INSTALL_DATA} $? $@
115
116 ${TOP_INCDIR}/afs/gtxtextcb.h: gtxtextcb.h
117 ${INSTALL_DATA} $? $@
118
119 ${TOP_INCDIR}/afs/gtxtextobj.h: gtxtextobj.h
120 ${INSTALL_DATA} $? $@
121
122 ${TOP_INCDIR}/afs/gtxwindows.h: gtxwindows.h
123 ${INSTALL_DATA} $? $@
124
125 ${TOP_INCDIR}/afs/gtxX11win.h: gtxX11win.h
126 ${INSTALL_DATA} $? $@
127
128 tests: object_test screen_test curses_test cb_test gtxtest
129
130 # All objects in the library
131 LIBSRCS = ${KEYMAP_SRCS} ${WINDOW_SRCS} ${OBJECT_SRCS} ${DICT_SRCS} ${CB_SRCS}
132 LIBOBJS = $(KEYMAP_OBJS) ${WINDOW_OBJS} ${OBJECT_OBJS} ${DICT_OBJS} ${CB_OBJS}
133
134 ${LIBSRCS}: ${INCLS}
135 $(LIBOBJS): ${INCLS}
136
137 keymap.o: keymap.c ${INCLS}
138
139 frame.o: frame.c $(INCLS)
140
141 input.o: input.c ${INCLS}
142
143 curseswindows.o: curseswindows.c ${INCLS}
144
145 dumbwindows.o: dumbwindows.c ${INCLS}
146
147 X11windows.o: X11windows.c ${INCLS}
148
149 windows.o: windows.c ${INCLS}
150
151 lightobject.o: lightobject.c ${INCLS}
152
153 textobject.o: textobject.c ${INCLS}
154
155 textcb.o: textcb.c ${INCLS}
156
157 #
158 # Test programs.
159 #
160 curses_test.o: curses_test.c ${INCLS} AFS_component_version_number.o
161
162 curses_test: curses_test.o $(LIBS)
163 $(AFS_LDRULE) curses_test.o $(LIBS) ${EXTRA_LIBS}
164
165 screen_test.o: screen_test.c ${INCLS} AFS_component_version_number.o
166
167 screen_test: screen_test.o ${WINDOW_OBJS} ${LIBS}
168 $(AFS_LDRULE) screen_test.o ${WINDOW_OBJS} ${LIBS} ${EXTRA_LIBS}
169
170 cb_test.o: cb_test.c ${INCLS} AFS_component_version_number.o
171
172 cb_test: cb_test.o ${CB_OBJS} ${LIBS}
173 $(AFS_LDRULE) cb_test.o ${CB_OBJS} ${LIBS} ${EXTRA_LIBS}
174
175 gtxtest.o: gtxtest.c ${INCLS} AFS_component_version_number.o
176
177 gtxtest: gtxtest.o libgtx.a ${LIBS}
178 $(AFS_LDRULE) gtxtest.o libgtx.a ${LIBS} ${EXTRA_LIBS}
179
180 object_test.o: object_test.c ${INCLS} AFS_component_version_number.o
181
182 object_test: object_test.o ${WINDOW_OBJS} ${DICT_OBJS} ${OBJECT_OBJS} ${CB_OBJS} ${LIBS}
183 $(AFS_LDRULE) object_test.o ${WINDOW_OBJS} ${DICT_OBJS} \
184 ${OBJECT_OBJS} ${CB_OBJS} ${LIBS} ${EXTRA_LIBS}
185
186 #
187 # Installation targets
188 #
189 libgtx.a: ${LIBOBJS} AFS_component_version_number.o
190 -$(RM) -f $@
191 $(AR) crv $@ ${LIBOBJS} AFS_component_version_number.o
192 ${RANLIB} $@
193
194 install: libgtx.a
195 ${INSTALL} -d ${DESTDIR}${libdir}/afs
196 ${INSTALL} -d ${DESTDIR}${includedir}/afs
197 ${INSTALL_DATA} libgtx.a ${DESTDIR}${libdir}/afs/libgtx.a
198 ${INSTALL_DATA} ${srcdir}/gtxcurseswin.h ${DESTDIR}${includedir}/afs/gtxcurseswin.h
199 ${INSTALL_DATA} ${srcdir}/gtxdumbwin.h ${DESTDIR}${includedir}/afs/gtxdumbwin.h
200 ${INSTALL_DATA} ${srcdir}/gtxframe.h ${DESTDIR}${includedir}/afs/gtxframe.h
201 ${INSTALL_DATA} ${srcdir}/gtxinput.h ${DESTDIR}${includedir}/afs/gtxinput.h
202 ${INSTALL_DATA} ${srcdir}/gtxkeymap.h ${DESTDIR}${includedir}/afs/gtxkeymap.h
203 ${INSTALL_DATA} ${srcdir}/gtxlightobj.h ${DESTDIR}${includedir}/afs/gtxlightobj.h
204 ${INSTALL_DATA} ${srcdir}/gtxobjdict.h ${DESTDIR}${includedir}/afs/gtxobjdict.h
205 ${INSTALL_DATA} ${srcdir}/gtxobjects.h ${DESTDIR}${includedir}/afs/gtxobjects.h
206 ${INSTALL_DATA} ${srcdir}/gtxtextcb.h ${DESTDIR}${includedir}/afs/gtxtextcb.h
207 ${INSTALL_DATA} ${srcdir}/gtxtextobj.h ${DESTDIR}${includedir}/afs/gtxtextobj.h
208 ${INSTALL_DATA} ${srcdir}/gtxwindows.h ${DESTDIR}${includedir}/afs/gtxwindows.h
209 ${INSTALL_DATA} ${srcdir}/gtxX11win.h ${DESTDIR}${includedir}/afs/gtxX11win.h
210
211 dest: libgtx.a
212 ${INSTALL} -d ${DEST}/lib/afs
213 ${INSTALL} -d ${DEST}/include/afs
214 ${INSTALL_DATA} libgtx.a ${DEST}/lib/afs/libgtx.a
215 ${INSTALL_DATA} ${srcdir}/gtxcurseswin.h ${DEST}/include/afs/gtxcurseswin.h
216 ${INSTALL_DATA} ${srcdir}/gtxdumbwin.h ${DEST}/include/afs/gtxdumbwin.h
217 ${INSTALL_DATA} ${srcdir}/gtxframe.h ${DEST}/include/afs/gtxframe.h
218 ${INSTALL_DATA} ${srcdir}/gtxinput.h ${DEST}/include/afs/gtxinput.h
219 ${INSTALL_DATA} ${srcdir}/gtxkeymap.h ${DEST}/include/afs/gtxkeymap.h
220 ${INSTALL_DATA} ${srcdir}/gtxlightobj.h ${DEST}/include/afs/gtxlightobj.h
221 ${INSTALL_DATA} ${srcdir}/gtxobjdict.h ${DEST}/include/afs/gtxobjdict.h
222 ${INSTALL_DATA} ${srcdir}/gtxobjects.h ${DEST}/include/afs/gtxobjects.h
223 ${INSTALL_DATA} ${srcdir}/gtxtextcb.h ${DEST}/include/afs/gtxtextcb.h
224 ${INSTALL_DATA} ${srcdir}/gtxtextobj.h ${DEST}/include/afs/gtxtextobj.h
225 ${INSTALL_DATA} ${srcdir}/gtxwindows.h ${DEST}/include/afs/gtxwindows.h
226 ${INSTALL_DATA} ${srcdir}/gtxX11win.h ${DEST}/include/afs/gtxX11win.h
227
228 #
229 # Misc targets
230 #
231 clean:
232 $(RM) -f *.o *.a *.ln object_test screen_test curses_test core cb_test gtxtest AFS_component_version_number.c
233
234 include ../config/Makefile.version