annotate lwlib/Makefile.in.in @ 89:03e0eebe5bb8

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