annotate lwlib/Makefile.in.in @ 149:538048ae2ab8 r20-3b1

Import from CVS: tag r20-3b1
author cvs
date Mon, 13 Aug 2007 09:36:16 +0200
parents 1ce6082ce73f
children 59463afc5666
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
80
1ce6082ce73f Import from CVS: tag r20-0b90
cvs
parents: 78
diff changeset
19 along with XEmacs; see the file COPYING. If not, write to
78
c7528f8e288d Import from CVS: tag r20-0b34
cvs
parents: 70
diff changeset
20 the Free Software Foundation, Inc., 59 Temple Place - Suite 330,
c7528f8e288d Import from CVS: tag r20-0b34
cvs
parents: 70
diff changeset
21 Boston, MA 02111-1307, USA. */
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
22
80
1ce6082ce73f Import from CVS: tag r20-0b90
cvs
parents: 78
diff changeset
23 /* Some people use these in paths they define. We do not want their paths
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
24 getting changed on them. */
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
25 #undef sparc
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
26 #undef sun
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
27 #undef unix
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
28 #undef sgi
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
29 #undef NeXT
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 80
diff changeset
30 #undef mips
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 80
diff changeset
31 #undef i386
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 80
diff changeset
32 #undef linux
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
33
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
34 srcdir=@srcdir@
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 80
diff changeset
35 /* C_SWITCH_X_SITE=@C_SWITCH_X_SITE@ */
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 80
diff changeset
36 /* C_SWITCH_SITE=@C_SWITCH_SITE@ */
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 80
diff changeset
37
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
38
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
39 SHELL=/bin/sh
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
40
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
41 CC=@CC@
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 80
diff changeset
42 CPP=@CPP@
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
43 CFLAGS=@CFLAGS@
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 80
diff changeset
44 LDFLAGS=@LDFLAGS@
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 80
diff changeset
45 CPPFLAGS=@CPPFLAGS@
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
46 RANLIB=@RANLIB@
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
47
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
48 RM = rm -f
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
49 AR = ar cq
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
50 @SET_MAKE@
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
51
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
52 #define THIS_IS_YMAKEFILE
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
53 #define NOT_C_CODE
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
54 #include "../src/config.h"
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
55
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
56 /* With the traditional VPATH setting, it is not possible to
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
57 simultaneously compile in-place and in another directory. The
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
58 mistaken definition is that *all* dependencies are searched for in
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
59 the VPATH directory, rather than just the dependencies that are not
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
60 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
61 in-place location, it will not get recompiled in the not-in-place
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
62 location.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
63
80
1ce6082ce73f Import from CVS: tag r20-0b90
cvs
parents: 78
diff changeset
64 The GNU Make "vpath" directive continues this tradition, but at
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
65 least lets you restrict the classes of files that it applies to.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
66 This allows us to kludge around the problem. */
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
67 #ifdef USE_GNU_MAKE
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
68 vpath %.c @srcdir@
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
69 vpath %.h @srcdir@
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
70 /* now list files that should NOT be searched in the srcdir.
80
1ce6082ce73f Import from CVS: tag r20-0b90
cvs
parents: 78
diff changeset
71 This includes any .c or .h built from something else
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
72 (e.g. a .in file). */
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
73 /* none here */
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
74 #else
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
75 VPATH=@srcdir@
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
76 #endif
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
77
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
78 #ifndef C_SWITCH_MACHINE
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
79 #define C_SWITCH_MACHINE
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
80 #endif
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
81
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
82 #ifndef C_SWITCH_SYSTEM
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
83 #define C_SWITCH_SYSTEM
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
84 #endif
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
85
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
86 #ifndef C_SWITCH_X_SYSTEM
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
87 #define C_SWITCH_X_SYSTEM
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
88 #endif
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
89
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
90 #ifndef C_SWITCH_X_MACHINE
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
91 #define C_SWITCH_X_MACHINE
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
92 #endif
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
93
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
94 #if defined (CONST_IS_LOSING)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
95 # define CONST_FLAG -DCONST_IS_LOSING
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
96 #else
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
97 # define CONST_FLAG
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
98 #endif
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
99
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
100 #if defined (LWLIB_MENUBARS_LUCID)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
101 # define LWLIB_MENUBARS -DMENUBARS_LUCID
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
102 #else
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
103 # if defined (LWLIB_MENUBARS_MOTIF)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
104 # define LWLIB_MENUBARS -DMENUBARS_MOTIF
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 # define LWLIB_MENUBARS
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
107 # endif
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
108 #endif
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
109
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
110 #if defined (LWLIB_SCROLLBARS_LUCID)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
111 # define LWLIB_SCROLLBARS -DSCROLLBARS_LUCID
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
112 #else
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
113 # if defined (LWLIB_SCROLLBARS_MOTIF)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
114 # define LWLIB_SCROLLBARS -DSCROLLBARS_MOTIF
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
115 # else
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
116 # if defined (LWLIB_SCROLLBARS_ATHENA)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
117 # define LWLIB_SCROLLBARS -DSCROLLBARS_ATHENA
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
118 # else
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
119 # define LWLIB_SCROLLBARS
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
120 # endif
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
121 # endif
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
122 #endif
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
123
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
124 #if defined (LWLIB_DIALOGS_MOTIF)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
125 # define LWLIB_DIALOGS -DDIALOGS_MOTIF
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
126 #else
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
127 # if defined (LWLIB_DIALOGS_ATHENA)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
128 # define LWLIB_DIALOGS -DDIALOGS_ATHENA
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
129 # else
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
130 # define LWLIB_DIALOGS
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
131 # endif
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
132 #endif
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
133
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
134 #undef NEED_TOOLKIT
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
135
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
136 /* If Motif was chosen as the tookit for anything, then
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
137 LWLIB_USES_MOTIF should have gotten defined. */
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
138 #if defined (LWLIB_USES_MOTIF)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
139 # ifndef NEED_TOOLKIT
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
140 # define NEED_TOOLKIT
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
141 # endif
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
142 # define NEED_MOTIF -DNEED_MOTIF
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
143 # define MOTIF_SRCS lwlib-Xm.c
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
144 # define MOTIF_OBJS lwlib-Xm.o
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
145 #else
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
146 # define NEED_MOTIF
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
147 # define MOTIF_SRCS
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
148 # define MOTIF_OBJS
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
149 #endif
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
150
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
151 #if defined (LWLIB_MENUBARS_LUCID) || defined (LWLIB_SCROLLBARS_LUCID)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
152 # ifndef NEED_TOOLKIT
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
153 # define NEED_TOOLKIT
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
154 # endif
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
155 # define NEED_LUCID -DNEED_LUCID
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
156 # ifdef LWLIB_MENUBARS_LUCID
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
157 # define LUCID_MENUBAR_SRCS xlwmenu.c
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
158 # define LUCID_MENUBAR_OBJS xlwmenu.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_MENUBAR_SRCS
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
161 # define LUCID_MENUBAR_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 # ifdef LWLIB_SCROLLBARS_LUCID
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
164 # define LUCID_SCROLLBAR_SRCS xlwscrollbar.c
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
165 # define LUCID_SCROLLBAR_OBJS xlwscrollbar.o
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
166 # else
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
167 # define LUCID_SCROLLBAR_SRCS
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
168 # define LUCID_SCROLLBAR_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 # define LUCID_SRCS lwlib-Xlw.c LUCID_MENUBAR_SRCS LUCID_SCROLLBAR_SRCS
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
171 # define LUCID_OBJS lwlib-Xlw.o LUCID_MENUBAR_OBJS LUCID_SCROLLBAR_OBJS
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
172 #else
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
173 # define NEED_LUCID
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
174 # define LUCID_SRCS
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
175 # define LUCID_OBJS
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
176 #endif
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
177
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
178 #if defined (LWLIB_SCROLLBARS_ATHENA) || defined (LWLIB_DIALOGS_ATHENA)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
179 # ifndef NEED_TOOLKIT
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
180 # define NEED_TOOLKIT
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
181 # endif
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
182 # define NEED_ATHENA -DNEED_ATHENA
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
183 # define ATHENA_SRCS lwlib-Xaw.c
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
184 # define ATHENA_OBJS lwlib-Xaw.o
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
185 #else
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
186 # define NEED_ATHENA
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
187 # define ATHENA_SRCS
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
188 # define ATHENA_OBJS
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
189 #endif
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
190
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
191 #ifdef ENERGIZE
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
192 EZ_OBJS = energize/blpsheet.o energize/build.o energize/classbr_ps.o \
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
193 energize/ctreebr_ps.o energize/debuggerps.o \
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
194 energize/editmode.o energize/leb_psheet.o \
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
195 energize/projectdisp.o energize/projectps.o \
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
196 energize/search.o energize/target.o
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
197 ENERGIZEP = -DENERGIZE
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
198 EZ_SUBDIR = ez_dialog
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
199 #else
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
200 EZ_OBJS =
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
201 ENERGIZEP =
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
202 EZ_SUBDIR =
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
203 #endif
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
204
78
c7528f8e288d Import from CVS: tag r20-0b34
cvs
parents: 70
diff changeset
205 #if defined (HAVE_X_WINDOWS)
c7528f8e288d Import from CVS: tag r20-0b34
cvs
parents: 70
diff changeset
206 # ifndef NEED_TOOLKIT
c7528f8e288d Import from CVS: tag r20-0b34
cvs
parents: 70
diff changeset
207 # define NEED_TOOLKIT
c7528f8e288d Import from CVS: tag r20-0b34
cvs
parents: 70
diff changeset
208 # endif
c7528f8e288d Import from CVS: tag r20-0b34
cvs
parents: 70
diff changeset
209 #endif
c7528f8e288d Import from CVS: tag r20-0b34
cvs
parents: 70
diff changeset
210
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
211 SRCS = lwlib.c MOTIF_SRCS LUCID_SRCS ATHENA_SRCS lwlib-utils.c \
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
212 lwlib-config.c
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
213 OBJS = lwlib.o MOTIF_OBJS LUCID_OBJS ATHENA_OBJS lwlib-utils.o \
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
214 lwlib-config.o $(EZ_OBJS)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
215
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
216 #ifdef NEED_TOOLKIT
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
217 all:: $(EZ_SUBDIR) liblw.a
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
218 #else
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
219 all::
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
220 #endif
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
221
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 80
diff changeset
222 c_switch_general=@c_switch_general@
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 80
diff changeset
223 c_switch_window_system=@c_switch_window_system@
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 80
diff changeset
224 c_switch_all=@c_switch_all@
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 80
diff changeset
225 ld_switch_general=@ld_switch_general@
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 80
diff changeset
226 ld_switch_window_system=@ld_switch_window_system@
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 80
diff changeset
227 ld_switch_all=@ld_switch_all@
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 80
diff changeset
228 ld_libs_general=@ld_libs_general@
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 80
diff changeset
229 ld_libs_window_system=@ld_libs_window_system@
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 80
diff changeset
230 ld_libs_all=@ld_libs_all@
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 80
diff changeset
231
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 80
diff changeset
232 ALL_CFLAGS = -I. $(c_switch_all) NEED_LUCID NEED_MOTIF NEED_ATHENA \
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
233 LWLIB_MENUBARS LWLIB_SCROLLBARS LWLIB_DIALOGS \
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
234 $(ENERGIZEP) ${CFLAGS} CONST_FLAG
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
235 .c.o:
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
236 $(CC) -c $(CPPFLAGS) $(ALL_CFLAGS) $<
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
237
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
238 liblw.a: $(OBJS)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
239 $(RM) $@
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
240 $(AR) $@ $(OBJS)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
241 -if [ -n $(RANLIB) ]; then \
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
242 $(RANLIB) $@; \
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
243 fi
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
244
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
245 #ifdef ENERGIZE
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
246 ez_dialog:
80
1ce6082ce73f Import from CVS: tag r20-0b90
cvs
parents: 78
diff changeset
247 cd energize && $(MAKE) $(MFLAGS)
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
248 #endif
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
249
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
250 FRC.mostlyclean:
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
251 mostlyclean: FRC.mostlyclean
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
252 rm -f liblw.a liblw_pure_*.a *.o
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
253 clean: mostlyclean
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
254 #ifdef ENERGIZE
80
1ce6082ce73f Import from CVS: tag r20-0b90
cvs
parents: 78
diff changeset
255 cd energize && $(MAKE) $(MFLAGS) clean
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
256 #endif
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
257 distclean: clean
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
258 rm -f Makefile Makefile.in .pure
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
259 realclean: distclean
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
260 extraclean: distclean
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
261 -rm -f *~ \#* m/?*~ s/?*~
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
262
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
263
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
264 lwlib-config.o: lwlib.h ../src/config.h
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
265 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
266 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
267 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
268 lwlib-Xm.o: ../src/config.h
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
269 lwlib-utils.o: lwlib-utils.h ../src/config.h
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
270 lwlib.o: lwlib.h lwlib-internal.h lwlib-utils.h ../src/config.h
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
271 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
272 xlwmenu.o: lwlib.h xlwmenu.h xlwmenuP.h ../src/config.h
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
273 xlwscrollbar.o: lwlib.h xlwscrollbar.h xlwscrollbarP.h ../src/config.h