annotate lwlib/Imakefile @ 29103:036d6bd19167

(SOME_MACHINE_LISP): Add disp-table.elc, dos-vars.elc, ccl.elc, and codepage.elc, all loaded by the ms-dos version. (MSDOS_SUPPORT): Add dos-vars.elc, ccl.elc, and codepage.elc.
author Eli Zaretskii <eliz@gnu.org>
date Tue, 23 May 2000 10:45:28 +0000
parents 648d04be6a9c
children
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
25842
Dave Love <fx@gnu.org>
parents:
diff changeset
1 /**/# Imakefile file for liblw.a, Copyright (c) 1992-1993 Lucid, Inc.
Dave Love <fx@gnu.org>
parents:
diff changeset
2
Dave Love <fx@gnu.org>
parents:
diff changeset
3 /*
Dave Love <fx@gnu.org>
parents:
diff changeset
4 * If you have Motif and want to provide support for Motif widgets in lwlib,
Dave Love <fx@gnu.org>
parents:
diff changeset
5 * then define USE_MOTIF.
Dave Love <fx@gnu.org>
parents:
diff changeset
6 *
Dave Love <fx@gnu.org>
parents:
diff changeset
7 * If you have OpenLook and want to provide support for OpenLook widgets in
Dave Love <fx@gnu.org>
parents:
diff changeset
8 * lwlib, then define USE_OLIT.
Dave Love <fx@gnu.org>
parents:
diff changeset
9 *
Dave Love <fx@gnu.org>
parents:
diff changeset
10 * Otherwise, define USE_LUCID to use Lucid's own Motif-lookalike widgets,
Dave Love <fx@gnu.org>
parents:
diff changeset
11 * which are included in this directory.
Dave Love <fx@gnu.org>
parents:
diff changeset
12 *
Dave Love <fx@gnu.org>
parents:
diff changeset
13 * You cannot define USE_MOTIF and USE_OLIT at the same time, but USE_LUCID
Dave Love <fx@gnu.org>
parents:
diff changeset
14 * may be defined along with either of the other two.
Dave Love <fx@gnu.org>
parents:
diff changeset
15 *
Dave Love <fx@gnu.org>
parents:
diff changeset
16 * The OLIT menubar is slow, and possibly buggy. We recommend against using
Dave Love <fx@gnu.org>
parents:
diff changeset
17 * it unless you'd like to try to improve it (which we encourage.)
Dave Love <fx@gnu.org>
parents:
diff changeset
18 *
Dave Love <fx@gnu.org>
parents:
diff changeset
19 * The Lucid menubar is much faster than the Motif menubar, but is missing
Dave Love <fx@gnu.org>
parents:
diff changeset
20 * a few features (most notably stay-up menus and keyboard traversal.) But
Dave Love <fx@gnu.org>
parents:
diff changeset
21 * since it has the Motif look-and-feel, we recommend using it even if you
Dave Love <fx@gnu.org>
parents:
diff changeset
22 * have Motif.
Dave Love <fx@gnu.org>
parents:
diff changeset
23 *
Dave Love <fx@gnu.org>
parents:
diff changeset
24 * Currently, only the Motif widgets provide support for dialog boxes. If
Dave Love <fx@gnu.org>
parents:
diff changeset
25 * you don't have Motif, you will not be able to pop up dialog boxes from
Dave Love <fx@gnu.org>
parents:
diff changeset
26 * emacs. If you define both USE_LUCID and USE_MOTIF, then the menus will
Dave Love <fx@gnu.org>
parents:
diff changeset
27 * be implemented with Lucid widgets, and the dialog boxes will be
Dave Love <fx@gnu.org>
parents:
diff changeset
28 * implemented with Motif widgets.
Dave Love <fx@gnu.org>
parents:
diff changeset
29 *
Dave Love <fx@gnu.org>
parents:
diff changeset
30 * It shouldn't take much work to add support for non-Motif dialog boxes;
Dave Love <fx@gnu.org>
parents:
diff changeset
31 * all that one need do is add code that implements Athena versions of the
Dave Love <fx@gnu.org>
parents:
diff changeset
32 * xm_create_dialog(), xm_update_one_widget(), and xm_update_one_value()
Dave Love <fx@gnu.org>
parents:
diff changeset
33 * routines in lwlib-Xm.c. If you do this, please send us the code.
Dave Love <fx@gnu.org>
parents:
diff changeset
34 *
Dave Love <fx@gnu.org>
parents:
diff changeset
35 * If you have your X11 source tree online, then you should define
Dave Love <fx@gnu.org>
parents:
diff changeset
36 * INCLUDE_EXTENSIONS to cause this library to contain some useful functions
Dave Love <fx@gnu.org>
parents:
diff changeset
37 * which Xt should provide but doesn't. You can only do this if you have
Dave Love <fx@gnu.org>
parents:
diff changeset
38 * the source tree online, because these functions require access to internal
Dave Love <fx@gnu.org>
parents:
diff changeset
39 * Xt data structures that are not defined in the exported header files.
Dave Love <fx@gnu.org>
parents:
diff changeset
40 * If you define INCLUDE_EXTENSIONS, then the variable $TOP must point at the
Dave Love <fx@gnu.org>
parents:
diff changeset
41 * root of the X11 source tree.
Dave Love <fx@gnu.org>
parents:
diff changeset
42 *
Dave Love <fx@gnu.org>
parents:
diff changeset
43 * To build a "shared" version of lwlib as well, define BUILD_SHARED_LIB.
Dave Love <fx@gnu.org>
parents:
diff changeset
44 * If INCLUDE_EXTENSIONS is defined, and you want to link with a dynamic
Dave Love <fx@gnu.org>
parents:
diff changeset
45 * version of Xt, it may be necessary to build a shared version of lwlib as
Dave Love <fx@gnu.org>
parents:
diff changeset
46 * well, as the X libraries sometimes put *different code* in the dynamic
Dave Love <fx@gnu.org>
parents:
diff changeset
47 * and shared versions of their libraries, for some reason I don't understand.
Dave Love <fx@gnu.org>
parents:
diff changeset
48 *
Dave Love <fx@gnu.org>
parents:
diff changeset
49 * Remember, if you build and install a shared version of lwlib, you may need
Dave Love <fx@gnu.org>
parents:
diff changeset
50 * to run ldconfig(8) before anything will realize that it exists.
Dave Love <fx@gnu.org>
parents:
diff changeset
51 *
Dave Love <fx@gnu.org>
parents:
diff changeset
52 * To compile with support for Lucid's Energize Programming System, you must
Dave Love <fx@gnu.org>
parents:
diff changeset
53 * define all of ENERGIZE, USE_LUCID, USE_MOTIF, and INCLUDE_EXTENSIONS.
Dave Love <fx@gnu.org>
parents:
diff changeset
54 */
Dave Love <fx@gnu.org>
parents:
diff changeset
55
Dave Love <fx@gnu.org>
parents:
diff changeset
56 #define USE_LUCID
Dave Love <fx@gnu.org>
parents:
diff changeset
57 /* #define USE_MOTIF */
Dave Love <fx@gnu.org>
parents:
diff changeset
58 /* #define USE_OLIT */
Dave Love <fx@gnu.org>
parents:
diff changeset
59 /* #define BUILD_SHARED_LIB */
Dave Love <fx@gnu.org>
parents:
diff changeset
60 /* #define ENERGIZE */
Dave Love <fx@gnu.org>
parents:
diff changeset
61
Dave Love <fx@gnu.org>
parents:
diff changeset
62 /* #define INCLUDE_EXTENSIONS */
Dave Love <fx@gnu.org>
parents:
diff changeset
63
Dave Love <fx@gnu.org>
parents:
diff changeset
64
Dave Love <fx@gnu.org>
parents:
diff changeset
65 #ifdef INCLUDE_EXTENSIONS /* this is where it is at our site */
Dave Love <fx@gnu.org>
parents:
diff changeset
66 TOP = /$(WHICH_X)/mit
Dave Love <fx@gnu.org>
parents:
diff changeset
67 #endif
Dave Love <fx@gnu.org>
parents:
diff changeset
68
Dave Love <fx@gnu.org>
parents:
diff changeset
69 /*
Dave Love <fx@gnu.org>
parents:
diff changeset
70 *
Dave Love <fx@gnu.org>
parents:
diff changeset
71 * You shouldn't need to edit anything below this point.
Dave Love <fx@gnu.org>
parents:
diff changeset
72 *
Dave Love <fx@gnu.org>
parents:
diff changeset
73 */
Dave Love <fx@gnu.org>
parents:
diff changeset
74
Dave Love <fx@gnu.org>
parents:
diff changeset
75 #ifdef ENERGIZE
Dave Love <fx@gnu.org>
parents:
diff changeset
76 # if !defined(USE_LUCID) || !defined(USE_MOTIF) || !defined(INCLUDE_EXTENSIONS)
Dave Love <fx@gnu.org>
parents:
diff changeset
77 ERROR! Energize requires Lucid widgets, Motif, and X Extensions.
Dave Love <fx@gnu.org>
parents:
diff changeset
78 # endif
Dave Love <fx@gnu.org>
parents:
diff changeset
79 #endif /* ENERGIZE */
Dave Love <fx@gnu.org>
parents:
diff changeset
80
Dave Love <fx@gnu.org>
parents:
diff changeset
81
Dave Love <fx@gnu.org>
parents:
diff changeset
82 #ifdef BUILD_SHARED_LIB
Dave Love <fx@gnu.org>
parents:
diff changeset
83 SOLWREV=1.0
Dave Love <fx@gnu.org>
parents:
diff changeset
84 #endif
Dave Love <fx@gnu.org>
parents:
diff changeset
85
Dave Love <fx@gnu.org>
parents:
diff changeset
86 #if (ProjectX == 4)
Dave Love <fx@gnu.org>
parents:
diff changeset
87 STD_DEFINES = LibraryDefines
Dave Love <fx@gnu.org>
parents:
diff changeset
88 CDEBUGFLAGS = LibraryCDebugFlags
Dave Love <fx@gnu.org>
parents:
diff changeset
89 EXT_DEFINES = -DTHIS_IS_X11R4
Dave Love <fx@gnu.org>
parents:
diff changeset
90 WHICH_X = x11r4
Dave Love <fx@gnu.org>
parents:
diff changeset
91 #define SpecialLibObjectRule SpecialObjectRule
Dave Love <fx@gnu.org>
parents:
diff changeset
92 #else /* !4 */
Dave Love <fx@gnu.org>
parents:
diff changeset
93 #if (ProjectX == 5)
Dave Love <fx@gnu.org>
parents:
diff changeset
94 #ifdef BUILD_SHARED_LIB
Dave Love <fx@gnu.org>
parents:
diff changeset
95 # define DoSharedLib YES
Dave Love <fx@gnu.org>
parents:
diff changeset
96 # define DoNormalLib YES
Dave Love <fx@gnu.org>
parents:
diff changeset
97 #endif
Dave Love <fx@gnu.org>
parents:
diff changeset
98 #include <Library.tmpl>
Dave Love <fx@gnu.org>
parents:
diff changeset
99 EXT_DEFINES = -DTHIS_IS_X11R5 -DINCLUDE_ALLOCA_H
Dave Love <fx@gnu.org>
parents:
diff changeset
100 WHICH_X = x11r5
Dave Love <fx@gnu.org>
parents:
diff changeset
101 #else /* !5 */
Dave Love <fx@gnu.org>
parents:
diff changeset
102 EXT_DEFINES = "ERROR! Imakefile was unable to determine whether this is X11r4 or X11r5."
Dave Love <fx@gnu.org>
parents:
diff changeset
103 #endif /* !5 */
Dave Love <fx@gnu.org>
parents:
diff changeset
104 #endif /* !4 */
Dave Love <fx@gnu.org>
parents:
diff changeset
105
Dave Love <fx@gnu.org>
parents:
diff changeset
106 LUCID_SRCS = lwlib-Xlw.c xlwmenu.c
Dave Love <fx@gnu.org>
parents:
diff changeset
107 LUCID_OBJS = lwlib-Xlw.o xlwmenu.o
Dave Love <fx@gnu.org>
parents:
diff changeset
108 MOTIF_SRCS = lwlib-Xm.c
Dave Love <fx@gnu.org>
parents:
diff changeset
109 MOTIF_OBJS = lwlib-Xm.o
Dave Love <fx@gnu.org>
parents:
diff changeset
110 OLIT_SRCS = lwlib-Xol.c lwlib-Xol-mb.c
Dave Love <fx@gnu.org>
parents:
diff changeset
111 OLIT_OBJS = lwlib-Xol.o lwlib-Xol-mb.o
Dave Love <fx@gnu.org>
parents:
diff changeset
112
Dave Love <fx@gnu.org>
parents:
diff changeset
113 #ifdef INCLUDE_EXTENSIONS
Dave Love <fx@gnu.org>
parents:
diff changeset
114 EXT_SRCS = dispatch.c xrdb-cpp.c xrdb.c
Dave Love <fx@gnu.org>
parents:
diff changeset
115 EXT_OBJS = dispatch.o xrdb-cpp.o xrdb.o
Dave Love <fx@gnu.org>
parents:
diff changeset
116 #endif
Dave Love <fx@gnu.org>
parents:
diff changeset
117
Dave Love <fx@gnu.org>
parents:
diff changeset
118 #if (defined(USE_MOTIF) && defined(USE_OLIT))
Dave Love <fx@gnu.org>
parents:
diff changeset
119 TOOLKIT_DEFINES = "ERROR! You cannot define both USE_MOTIF and USE_OLIT at the same time (in Imakefile)."
Dave Love <fx@gnu.org>
parents:
diff changeset
120 #else
Dave Love <fx@gnu.org>
parents:
diff changeset
121 # if (defined(USE_MOTIF) && defined(USE_LUCID))
Dave Love <fx@gnu.org>
parents:
diff changeset
122 TOOLKIT_DEFINES = -DUSE_MOTIF -DUSE_LUCID
Dave Love <fx@gnu.org>
parents:
diff changeset
123 TOOLKIT_SRCS = $(MOTIF_SRC) $(LUCID_SRCS)
Dave Love <fx@gnu.org>
parents:
diff changeset
124 TOOLKIT_OBJS = $(MOTIF_OBJS) $(LUCID_OBJS)
Dave Love <fx@gnu.org>
parents:
diff changeset
125 # else
Dave Love <fx@gnu.org>
parents:
diff changeset
126 # if (defined(USE_OLIT) && defined(USE_LUCID))
Dave Love <fx@gnu.org>
parents:
diff changeset
127 DEFINES = -DUSE_OLIT -DUSE_LUCID
Dave Love <fx@gnu.org>
parents:
diff changeset
128 TOOLKIT_SRCS = $(OLIT_SRC) $(LUCID_SRCS)
Dave Love <fx@gnu.org>
parents:
diff changeset
129 TOOLKIT_OBJS = $(OLIT_OBJS) $(LUCID_OBJS)
Dave Love <fx@gnu.org>
parents:
diff changeset
130 # else
Dave Love <fx@gnu.org>
parents:
diff changeset
131 # if defined(USE_OLIT)
Dave Love <fx@gnu.org>
parents:
diff changeset
132 TOOLKIT_DEFINES = -DUSE_OLIT
Dave Love <fx@gnu.org>
parents:
diff changeset
133 TOOLKIT_SRCS = $(OLIT_SRC)
Dave Love <fx@gnu.org>
parents:
diff changeset
134 TOOLKIT_OBJS = $(OLIT_OBJS)
Dave Love <fx@gnu.org>
parents:
diff changeset
135 # else
Dave Love <fx@gnu.org>
parents:
diff changeset
136 # if defined(USE_MOTIF)
Dave Love <fx@gnu.org>
parents:
diff changeset
137 TOOLKIT_DEFINES = -DUSE_MOTIF
Dave Love <fx@gnu.org>
parents:
diff changeset
138 TOOLKIT_SRCS = $(MOTIF_SRC)
Dave Love <fx@gnu.org>
parents:
diff changeset
139 TOOLKIT_OBJS = $(MOTIF_OBJS)
Dave Love <fx@gnu.org>
parents:
diff changeset
140 # else
Dave Love <fx@gnu.org>
parents:
diff changeset
141 # if defined(USE_LUCID)
Dave Love <fx@gnu.org>
parents:
diff changeset
142 TOOLKIT_DEFINES = -DUSE_LUCID
Dave Love <fx@gnu.org>
parents:
diff changeset
143 TOOLKIT_SRCS = $(LUCID_SRC)
Dave Love <fx@gnu.org>
parents:
diff changeset
144 TOOLKIT_OBJS = $(LUCID_OBJS)
Dave Love <fx@gnu.org>
parents:
diff changeset
145 # else
Dave Love <fx@gnu.org>
parents:
diff changeset
146 TOOLKIT_DEFINES = "ERROR! At least one of USE_MOTIF, USE_LUCID or USE_OLIT must be defined in Imakefile."
Dave Love <fx@gnu.org>
parents:
diff changeset
147 # endif
Dave Love <fx@gnu.org>
parents:
diff changeset
148 # endif
Dave Love <fx@gnu.org>
parents:
diff changeset
149 # endif
Dave Love <fx@gnu.org>
parents:
diff changeset
150 # endif
Dave Love <fx@gnu.org>
parents:
diff changeset
151 # endif
Dave Love <fx@gnu.org>
parents:
diff changeset
152 #endif
Dave Love <fx@gnu.org>
parents:
diff changeset
153
Dave Love <fx@gnu.org>
parents:
diff changeset
154 #ifdef ENERGIZE
Dave Love <fx@gnu.org>
parents:
diff changeset
155 # ifndef USE_MOTIF
Dave Love <fx@gnu.org>
parents:
diff changeset
156 EZ_OBJS = "ERROR! ENERGIZE requires USE_MOTIF to be defined in Imakefile."
Dave Love <fx@gnu.org>
parents:
diff changeset
157 # else
Dave Love <fx@gnu.org>
parents:
diff changeset
158 EZ_OBJS = energize/blpsheet.o energize/build.o energize/classbr_ps.o \
Dave Love <fx@gnu.org>
parents:
diff changeset
159 energize/ctreebr_ps.o energize/debuggerps.o \
Dave Love <fx@gnu.org>
parents:
diff changeset
160 energize/editmode.o energize/leb_psheet.o \
Dave Love <fx@gnu.org>
parents:
diff changeset
161 energize/projectdisp.o energize/projectps.o \
Dave Love <fx@gnu.org>
parents:
diff changeset
162 energize/search.o energize/target.o
Dave Love <fx@gnu.org>
parents:
diff changeset
163 ENERGIZEP = -DENERGIZE
Dave Love <fx@gnu.org>
parents:
diff changeset
164 # endif
Dave Love <fx@gnu.org>
parents:
diff changeset
165 #endif
Dave Love <fx@gnu.org>
parents:
diff changeset
166
Dave Love <fx@gnu.org>
parents:
diff changeset
167 SRCS = lwlib.c $(TOOLKIT_SRCS) lwlib-utils.c $(EXT_SRCS)
Dave Love <fx@gnu.org>
parents:
diff changeset
168 OBJS = lwlib.o $(TOOLKIT_OBJS) lwlib-utils.o $(EXT_OBJS) $(EZ_OBJS)
Dave Love <fx@gnu.org>
parents:
diff changeset
169 EXT_FLAGS = -I$(TOOLKITSRC) $(EXT_DEFINES)
Dave Love <fx@gnu.org>
parents:
diff changeset
170 LIBNAME = liblw.a
Dave Love <fx@gnu.org>
parents:
diff changeset
171
Dave Love <fx@gnu.org>
parents:
diff changeset
172
Dave Love <fx@gnu.org>
parents:
diff changeset
173 #if defined(ENERGIZE) && defined(BUILD_SHARED_LIB)
Dave Love <fx@gnu.org>
parents:
diff changeset
174 all::
Dave Love <fx@gnu.org>
parents:
diff changeset
175 @if [ ! -d shared ]; then mkdir shared; else exit 0; fi
Dave Love <fx@gnu.org>
parents:
diff changeset
176 @if [ ! -d energize/shared ]; then mkdir energize/shared; \
Dave Love <fx@gnu.org>
parents:
diff changeset
177 else exit 0; fi
Dave Love <fx@gnu.org>
parents:
diff changeset
178 @if [ ! -h shared/energize ]; \
Dave Love <fx@gnu.org>
parents:
diff changeset
179 then cd shared ; ln -s ../energize/shared energize ; \
Dave Love <fx@gnu.org>
parents:
diff changeset
180 else exit 0; fi
Dave Love <fx@gnu.org>
parents:
diff changeset
181
Dave Love <fx@gnu.org>
parents:
diff changeset
182 clean::
Dave Love <fx@gnu.org>
parents:
diff changeset
183 $(RM) shared/energize
Dave Love <fx@gnu.org>
parents:
diff changeset
184 #endif
Dave Love <fx@gnu.org>
parents:
diff changeset
185
Dave Love <fx@gnu.org>
parents:
diff changeset
186
Dave Love <fx@gnu.org>
parents:
diff changeset
187 #ifdef BUILD_SHARED_LIB
Dave Love <fx@gnu.org>
parents:
diff changeset
188 # if (ProjectX == 4)
Dave Love <fx@gnu.org>
parents:
diff changeset
189 SharedLibraryObjectRule ()
Dave Love <fx@gnu.org>
parents:
diff changeset
190 NormalSharedLibraryTarget(lw,$(SOLWREV),$(OBJS))
Dave Love <fx@gnu.org>
parents:
diff changeset
191 # else /* X != 4 */
Dave Love <fx@gnu.org>
parents:
diff changeset
192 LibraryObjectRule ()
Dave Love <fx@gnu.org>
parents:
diff changeset
193 SharedLibraryTarget(lw,$(SOLWREV),$(OBJS),shared,..)
Dave Love <fx@gnu.org>
parents:
diff changeset
194 # endif /* X != 4 */
Dave Love <fx@gnu.org>
parents:
diff changeset
195 #else /* !BUILD_SHARED_LIB */
Dave Love <fx@gnu.org>
parents:
diff changeset
196 NormalLibraryObjectRule ()
Dave Love <fx@gnu.org>
parents:
diff changeset
197 #endif /* !BUILD_SHARED_LIB */
Dave Love <fx@gnu.org>
parents:
diff changeset
198
Dave Love <fx@gnu.org>
parents:
diff changeset
199 NormalLibraryTarget (lw,$(OBJS))
Dave Love <fx@gnu.org>
parents:
diff changeset
200 MakefileSubdirs (energize)
Dave Love <fx@gnu.org>
parents:
diff changeset
201 DependTarget ()
Dave Love <fx@gnu.org>
parents:
diff changeset
202
Dave Love <fx@gnu.org>
parents:
diff changeset
203 #ifdef ENERGIZE
Dave Love <fx@gnu.org>
parents:
diff changeset
204
Dave Love <fx@gnu.org>
parents:
diff changeset
205 energize/Imakefile:
Dave Love <fx@gnu.org>
parents:
diff changeset
206 -mkdir energize
Dave Love <fx@gnu.org>
parents:
diff changeset
207 -(cd energize ; sh -c "ln -s ../$(VPATH)/energize/* .")
Dave Love <fx@gnu.org>
parents:
diff changeset
208
Dave Love <fx@gnu.org>
parents:
diff changeset
209 /* #### we should automatically edit BUILD_SHARED_LIB into/out of the energize
Dave Love <fx@gnu.org>
parents:
diff changeset
210 Imakefile, since that's the only thing down there that changes */
Dave Love <fx@gnu.org>
parents:
diff changeset
211 energize/Makefile: energize/Imakefile Imakefile
Dave Love <fx@gnu.org>
parents:
diff changeset
212 $(MAKE) $(MFLAGS) Makefiles
Dave Love <fx@gnu.org>
parents:
diff changeset
213
Dave Love <fx@gnu.org>
parents:
diff changeset
214 Makefile::
Dave Love <fx@gnu.org>
parents:
diff changeset
215 $(RM) energize/Makefile
Dave Love <fx@gnu.org>
parents:
diff changeset
216
Dave Love <fx@gnu.org>
parents:
diff changeset
217 $(EZ_OBJS): energize/Makefile
Dave Love <fx@gnu.org>
parents:
diff changeset
218 ${RM} $@ ; cd energize ; $(MAKE) $(MFLAGS) CC="$(CC)" CFLAGS="$(CFLAGS)"
Dave Love <fx@gnu.org>
parents:
diff changeset
219
Dave Love <fx@gnu.org>
parents:
diff changeset
220 clean::
Dave Love <fx@gnu.org>
parents:
diff changeset
221 cd energize ; $(MAKE) $(MFLAGS) clean
Dave Love <fx@gnu.org>
parents:
diff changeset
222
Dave Love <fx@gnu.org>
parents:
diff changeset
223 #endif
Dave Love <fx@gnu.org>
parents:
diff changeset
224
Dave Love <fx@gnu.org>
parents:
diff changeset
225 #if defined(BUILD_SHARED_LIB) && (ProjectX == 4)
Dave Love <fx@gnu.org>
parents:
diff changeset
226 # define LWObjectRule SpecialSharedObjectRule
Dave Love <fx@gnu.org>
parents:
diff changeset
227 #else
Dave Love <fx@gnu.org>
parents:
diff changeset
228 # define LWObjectRule SpecialLibObjectRule
Dave Love <fx@gnu.org>
parents:
diff changeset
229 #endif
Dave Love <fx@gnu.org>
parents:
diff changeset
230
Dave Love <fx@gnu.org>
parents:
diff changeset
231 CPPDEFS=-DCPP_PROGRAM=\"CppCmd\"
Dave Love <fx@gnu.org>
parents:
diff changeset
232
Dave Love <fx@gnu.org>
parents:
diff changeset
233 LWObjectRule (lwlib.o, lwlib.c, $(TOOLKIT_DEFINES))
Dave Love <fx@gnu.org>
parents:
diff changeset
234 LWObjectRule (dispatch.o, dispatch.c, $(EXT_FLAGS))
Dave Love <fx@gnu.org>
parents:
diff changeset
235 LWObjectRule (xrdb-cpp.o, xrdb-cpp.c, $(EXT_FLAGS) "$(CPPDEFS)")
Dave Love <fx@gnu.org>
parents:
diff changeset
236 LWObjectRule (xrdb.o, xrdb.c, $(EXT_FLAGS))
Dave Love <fx@gnu.org>
parents:
diff changeset
237 LWObjectRule (lwlib-Xm.o, lwlib-Xm.c, $(ENERGIZEP))
Dave Love <fx@gnu.org>
parents:
diff changeset
238
Dave Love <fx@gnu.org>
parents:
diff changeset
239 lwlib-utils.o: lwlib-utils.h
Dave Love <fx@gnu.org>
parents:
diff changeset
240 lwlib.o: lwlib.h lwlib-internal.h
Dave Love <fx@gnu.org>
parents:
diff changeset
241 lwlib-Xlw.o: lwlib.h lwlib-internal.h
Dave Love <fx@gnu.org>
parents:
diff changeset
242 lwlib-Xm.o: lwlib.h lwlib-internal.h lwlib-utils.h
Dave Love <fx@gnu.org>
parents:
diff changeset
243 lwlib-Xol.o: lwlib.h lwlib-internal.h
Dave Love <fx@gnu.org>
parents:
diff changeset
244 lwlib-Xol-mb.o: lwlib-Xol-mb.h lwlib-Xol-mbP.h