annotate lwlib/Makefile.in.in @ 70:131b0175ea99 r20-0b30

Import from CVS: tag r20-0b30
author cvs
date Mon, 13 Aug 2007 09:02:59 +0200
parents 9ee227acff29
children c7528f8e288d
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1 /* Makefile for Lucid Widget Library
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2 Copyright (C) 1994 Lucid, Inc.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3 Copyright (C) 1995 Tinker Systems and INS Engineering Corp.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4 Copyright (C) 1994, 1995 Board of Trustees, University of Illinois
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
5
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
6 This file is part of the Lucid Widget Library.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
7
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
8 The Lucid Widget Library is free software; you can redistribute it and/or
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
9 modify it under the terms of the GNU General Public License as published by
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
10 the Free Software Foundation; either version 2, or (at your option)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
11 any later version.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
12
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
13 The Lucid Widget Library is distributed in the hope that it will be useful,
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
14 but WITHOUT ANY WARRANTY; without even the implied warranty of
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
15 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
16 GNU General Public License for more details.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
17
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
18 You should have received a copy of the GNU General Public License
70
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 14
diff changeset
19 along with GNU Emacs; see the file COPYING. If not, write to
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 14
diff changeset
20 the Free Software Foundation, 675 Mass Ave, Cambridge, MA 02139, USA. */
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
21
70
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 14
diff changeset
22 /* Some people use these in paths they define. We don't want their paths
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
23 getting changed on them. */
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
24 #undef sparc
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
25 #undef sun
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
26 #undef unix
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
27 #undef sgi
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
28 #undef NeXT
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
29
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
30 srcdir=@srcdir@
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
31 C_SWITCH_X_SITE=@C_SWITCH_X_SITE@
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
32 C_SWITCH_SITE=@C_SWITCH_SITE@
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
33
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
34 SHELL=/bin/sh
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
35
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
36 CC=@CC@
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
37 CFLAGS=@CFLAGS@
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
38 CPP=@CPP@
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
39 RANLIB=@RANLIB@
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
40
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
41 RM = rm -f
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
42 AR = ar cq
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
43 @SET_MAKE@
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
44
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
45 #define THIS_IS_YMAKEFILE
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
46 #define NOT_C_CODE
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
47 #include "../src/config.h"
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
48
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
49 /* With the traditional VPATH setting, it is not possible to
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
50 simultaneously compile in-place and in another directory. The
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
51 mistaken definition is that *all* dependencies are searched for in
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
52 the VPATH directory, rather than just the dependencies that are not
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
53 themselves targets. Thus, if there is an up-to-date .o file in the
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
54 in-place location, it will not get recompiled in the not-in-place
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
55 location.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
56
70
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 14
diff changeset
57 The GNU Make `vpath' directive continues this tradition, but at
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
58 least lets you restrict the classes of files that it applies to.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
59 This allows us to kludge around the problem. */
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
60 #ifdef USE_GNU_MAKE
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
61 vpath %.c @srcdir@
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
62 vpath %.h @srcdir@
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
63 /* now list files that should NOT be searched in the srcdir.
70
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 14
diff changeset
64 This includes any .c or .h that's built from something else
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
65 (e.g. a .in file). */
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
66 /* none here */
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
67 #else
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
68 VPATH=@srcdir@
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
69 #endif
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
70
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
71 #ifndef C_SWITCH_MACHINE
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
72 #define C_SWITCH_MACHINE
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
73 #endif
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
74
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
75 #ifndef C_SWITCH_SYSTEM
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
76 #define C_SWITCH_SYSTEM
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
77 #endif
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
78
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
79 #ifndef C_SWITCH_X_SYSTEM
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
80 #define C_SWITCH_X_SYSTEM
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
81 #endif
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
82
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
83 #ifndef C_SWITCH_X_MACHINE
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
84 #define C_SWITCH_X_MACHINE
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
85 #endif
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
86
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
87 #if defined (CONST_IS_LOSING)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
88 # define CONST_FLAG -DCONST_IS_LOSING
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
89 #else
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
90 # define CONST_FLAG
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
91 #endif
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
92
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
93 #if defined (LWLIB_MENUBARS_LUCID)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
94 # define LWLIB_MENUBARS -DMENUBARS_LUCID
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
95 #else
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
96 # if defined (LWLIB_MENUBARS_MOTIF)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
97 # define LWLIB_MENUBARS -DMENUBARS_MOTIF
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
98 # else
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
99 # define LWLIB_MENUBARS
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
100 # endif
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
101 #endif
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
102
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
103 #if defined (LWLIB_SCROLLBARS_LUCID)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
104 # define LWLIB_SCROLLBARS -DSCROLLBARS_LUCID
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
105 #else
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
106 # if defined (LWLIB_SCROLLBARS_MOTIF)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
107 # define LWLIB_SCROLLBARS -DSCROLLBARS_MOTIF
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
108 # else
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
109 # if defined (LWLIB_SCROLLBARS_ATHENA)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
110 # define LWLIB_SCROLLBARS -DSCROLLBARS_ATHENA
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
111 # else
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
112 # define LWLIB_SCROLLBARS
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
113 # endif
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
114 # endif
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
115 #endif
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
116
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
117 #if defined (LWLIB_DIALOGS_MOTIF)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
118 # define LWLIB_DIALOGS -DDIALOGS_MOTIF
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
119 #else
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
120 # if defined (LWLIB_DIALOGS_ATHENA)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
121 # define LWLIB_DIALOGS -DDIALOGS_ATHENA
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
122 # else
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
123 # define LWLIB_DIALOGS
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
124 # endif
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
125 #endif
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
126
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
127 #undef NEED_TOOLKIT
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
128
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
129 /* If Motif was chosen as the tookit for anything, then
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
130 LWLIB_USES_MOTIF should have gotten defined. */
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
131 #if defined (LWLIB_USES_MOTIF)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
132 # ifndef NEED_TOOLKIT
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
133 # define NEED_TOOLKIT
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
134 # endif
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
135 # define NEED_MOTIF -DNEED_MOTIF
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
136 # define MOTIF_SRCS lwlib-Xm.c
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
137 # define MOTIF_OBJS lwlib-Xm.o
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
138 #else
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
139 # define NEED_MOTIF
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
140 # define MOTIF_SRCS
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
141 # define MOTIF_OBJS
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
142 #endif
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
143
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
144 #if defined (LWLIB_MENUBARS_LUCID) || defined (LWLIB_SCROLLBARS_LUCID)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
145 # ifndef NEED_TOOLKIT
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
146 # define NEED_TOOLKIT
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
147 # endif
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
148 # define NEED_LUCID -DNEED_LUCID
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
149 # ifdef LWLIB_MENUBARS_LUCID
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
150 # define LUCID_MENUBAR_SRCS xlwmenu.c
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
151 # define LUCID_MENUBAR_OBJS xlwmenu.o
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
152 # else
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
153 # define LUCID_MENUBAR_SRCS
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
154 # define LUCID_MENUBAR_OBJS
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
155 # endif
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
156 # ifdef LWLIB_SCROLLBARS_LUCID
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
157 # define LUCID_SCROLLBAR_SRCS xlwscrollbar.c
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
158 # define LUCID_SCROLLBAR_OBJS xlwscrollbar.o
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
159 # else
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
160 # define LUCID_SCROLLBAR_SRCS
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
161 # define LUCID_SCROLLBAR_OBJS
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
162 # endif
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
163 # define LUCID_SRCS lwlib-Xlw.c LUCID_MENUBAR_SRCS LUCID_SCROLLBAR_SRCS
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
164 # define LUCID_OBJS lwlib-Xlw.o LUCID_MENUBAR_OBJS LUCID_SCROLLBAR_OBJS
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
165 #else
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
166 # define NEED_LUCID
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
167 # define LUCID_SRCS
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
168 # define LUCID_OBJS
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
169 #endif
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
170
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
171 #if defined (LWLIB_SCROLLBARS_ATHENA) || defined (LWLIB_DIALOGS_ATHENA)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
172 # ifndef NEED_TOOLKIT
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
173 # define NEED_TOOLKIT
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
174 # endif
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
175 # define NEED_ATHENA -DNEED_ATHENA
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
176 # define ATHENA_SRCS lwlib-Xaw.c
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
177 # define ATHENA_OBJS lwlib-Xaw.o
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
178 #else
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
179 # define NEED_ATHENA
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
180 # define ATHENA_SRCS
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
181 # define ATHENA_OBJS
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
182 #endif
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
183
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
184 #ifdef ENERGIZE
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
185 EZ_OBJS = energize/blpsheet.o energize/build.o energize/classbr_ps.o \
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
186 energize/ctreebr_ps.o energize/debuggerps.o \
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
187 energize/editmode.o energize/leb_psheet.o \
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
188 energize/projectdisp.o energize/projectps.o \
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
189 energize/search.o energize/target.o
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
190 ENERGIZEP = -DENERGIZE
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
191 EZ_SUBDIR = ez_dialog
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
192 #else
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
193 EZ_OBJS =
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
194 ENERGIZEP =
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
195 EZ_SUBDIR =
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
196 #endif
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
197
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
198 SRCS = lwlib.c MOTIF_SRCS LUCID_SRCS ATHENA_SRCS lwlib-utils.c \
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
199 lwlib-config.c
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
200 OBJS = lwlib.o MOTIF_OBJS LUCID_OBJS ATHENA_OBJS lwlib-utils.o \
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
201 lwlib-config.o $(EZ_OBJS)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
202
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
203 #ifdef NEED_TOOLKIT
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
204 all:: $(EZ_SUBDIR) liblw.a
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
205 #else
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
206 all::
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
207 #endif
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
208
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
209 ALL_CFLAGS = -I. C_SWITCH_MACHINE C_SWITCH_SITE C_SWITCH_X_SITE \
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
210 C_SWITCH_X_MACHINE C_SWITCH_X_SYSTEM \
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
211 C_SWITCH_SYSTEM NEED_LUCID NEED_MOTIF NEED_ATHENA \
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
212 LWLIB_MENUBARS LWLIB_SCROLLBARS LWLIB_DIALOGS \
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
213 $(ENERGIZEP) ${CFLAGS} CONST_FLAG
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
214 .c.o:
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
215 $(CC) -c $(CPPFLAGS) $(ALL_CFLAGS) $<
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
216
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
217 liblw.a: $(OBJS)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
218 $(RM) $@
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
219 $(AR) $@ $(OBJS)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
220 -if [ -n $(RANLIB) ]; then \
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
221 $(RANLIB) $@; \
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
222 fi
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
223
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
224 #ifdef ENERGIZE
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
225 ez_dialog:
70
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 14
diff changeset
226 cd energize ; $(MAKE) $(MFLAGS)
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
227 #endif
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
228
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
229 FRC.mostlyclean:
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
230 mostlyclean: FRC.mostlyclean
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
231 rm -f liblw.a liblw_pure_*.a *.o
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
232 clean: mostlyclean
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
233 #ifdef ENERGIZE
70
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 14
diff changeset
234 cd energize ; $(MAKE) $(MFLAGS) clean
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
235 #endif
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
236 distclean: clean
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
237 rm -f Makefile Makefile.in .pure
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
238 realclean: distclean
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
239 extraclean: distclean
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
240 -rm -f *~ \#* m/?*~ s/?*~
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
241
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
242
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
243 lwlib-config.o: lwlib.h ../src/config.h
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
244 lwlib-Xaw.o: lwlib.h lwlib-internal.h lwlib-Xaw.h ../src/config.h
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
245 lwlib-Xlw.o: lwlib.h lwlib-internal.h lwlib-Xlw.h xlwmenu.h ../src/config.h
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
246 lwlib-Xm.o: lwlib.h lwlib-internal.h lwlib-utils.h lwlib-Xm.h
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
247 lwlib-Xm.o: ../src/config.h
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
248 lwlib-utils.o: lwlib-utils.h ../src/config.h
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
249 lwlib.o: lwlib.h lwlib-internal.h lwlib-utils.h ../src/config.h
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
250 lwlib.o: lwlib-Xlw.h lwlib-Xm.h lwlib-Xaw.h ../src/config.h
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
251 xlwmenu.o: lwlib.h xlwmenu.h xlwmenuP.h ../src/config.h
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
252 xlwscrollbar.o: lwlib.h xlwscrollbar.h xlwscrollbarP.h ../src/config.h