0
|
1 /* Makefile for Lucid Widget Library
|
|
2 Copyright (C) 1994 Lucid, Inc.
|
|
3 Copyright (C) 1995 Tinker Systems and INS Engineering Corp.
|
|
4 Copyright (C) 1994, 1995 Board of Trustees, University of Illinois
|
|
5
|
|
6 This file is part of the Lucid Widget Library.
|
|
7
|
|
8 The Lucid Widget Library is free software; you can redistribute it and/or
|
|
9 modify it under the terms of the GNU General Public License as published by
|
|
10 the Free Software Foundation; either version 2, or (at your option)
|
|
11 any later version.
|
|
12
|
|
13 The Lucid Widget Library is distributed in the hope that it will be useful,
|
|
14 but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
15 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
16 GNU General Public License for more details.
|
|
17
|
|
18 You should have received a copy of the GNU General Public License
|
80
|
19 along with XEmacs; see the file COPYING. If not, write to
|
78
|
20 the Free Software Foundation, Inc., 59 Temple Place - Suite 330,
|
|
21 Boston, MA 02111-1307, USA. */
|
0
|
22
|
80
|
23 /* Some people use these in paths they define. We do not want their paths
|
0
|
24 getting changed on them. */
|
|
25 #undef sparc
|
|
26 #undef sun
|
|
27 #undef unix
|
|
28 #undef sgi
|
|
29 #undef NeXT
|
149
|
30 #undef mips
|
|
31 #undef i386
|
|
32 #undef linux
|
0
|
33
|
|
34 srcdir=@srcdir@
|
|
35
|
|
36 SHELL=/bin/sh
|
|
37
|
|
38 CC=@CC@
|
149
|
39 CPP=@CPP@
|
0
|
40 CFLAGS=@CFLAGS@
|
149
|
41 LDFLAGS=@LDFLAGS@
|
|
42 CPPFLAGS=@CPPFLAGS@
|
0
|
43 RANLIB=@RANLIB@
|
|
44
|
|
45 RM = rm -f
|
|
46 AR = ar cq
|
|
47 @SET_MAKE@
|
|
48
|
|
49 #define NOT_C_CODE
|
|
50 #include "../src/config.h"
|
|
51
|
|
52 #ifdef USE_GNU_MAKE
|
|
53 vpath %.c @srcdir@
|
|
54 vpath %.h @srcdir@
|
|
55 #else
|
|
56 VPATH=@srcdir@
|
|
57 #endif
|
|
58
|
157
|
59 #ifdef ENERGIZE
|
|
60 EZ_OBJS =\
|
|
61 energize/blpsheet.o energize/build.o energize/classbr_ps.o \
|
|
62 energize/ctreebr_ps.o energize/debuggerps.o energize/editmode.o \
|
|
63 energize/leb_psheet.o energize/projectdisp.o energize/projectps.o \
|
|
64 energize/search.o energize/target.o
|
|
65 ENERGIZEP = -DENERGIZE
|
|
66 EZ_SUBDIR = ez_dialog
|
0
|
67 #endif
|
|
68
|
157
|
69 lwlib_objs=@lwlib_objs@
|
0
|
70
|
157
|
71 OBJS = lwlib.o lwlib-utils.o lwlib-config.o $(EZ_OBJS) ${lwlib_objs}
|
0
|
72
|
|
73 all:: $(EZ_SUBDIR) liblw.a
|
|
74
|
149
|
75 c_switch_general=@c_switch_general@
|
|
76 c_switch_window_system=@c_switch_window_system@
|
|
77 c_switch_all=@c_switch_all@
|
|
78 ld_switch_general=@ld_switch_general@
|
|
79 ld_switch_window_system=@ld_switch_window_system@
|
|
80 ld_switch_all=@ld_switch_all@
|
|
81 ld_libs_general=@ld_libs_general@
|
|
82 ld_libs_window_system=@ld_libs_window_system@
|
|
83 ld_libs_all=@ld_libs_all@
|
|
84
|
157
|
85 ALL_CFLAGS= $(CFLAGS) $(CPPFLAGS) -I. $(c_switch_all) $(ENERGIZEP)
|
0
|
86 .c.o:
|
157
|
87 $(CC) -c $(ALL_CFLAGS) $<
|
0
|
88
|
|
89 liblw.a: $(OBJS)
|
|
90 $(RM) $@
|
|
91 $(AR) $@ $(OBJS)
|
157
|
92 -test -n "$(RANLIB)" && $(RANLIB) $@
|
0
|
93
|
|
94 #ifdef ENERGIZE
|
|
95 ez_dialog:
|
80
|
96 cd energize && $(MAKE) $(MFLAGS)
|
0
|
97 #endif
|
|
98
|
|
99 FRC.mostlyclean:
|
|
100 mostlyclean: FRC.mostlyclean
|
|
101 rm -f liblw.a liblw_pure_*.a *.o
|
|
102 clean: mostlyclean
|
|
103 #ifdef ENERGIZE
|
80
|
104 cd energize && $(MAKE) $(MFLAGS) clean
|
0
|
105 #endif
|
|
106 distclean: clean
|
151
|
107 rm -f Makefile Makefile.in config.h .pure
|
0
|
108 realclean: distclean
|
|
109 extraclean: distclean
|
|
110 -rm -f *~ \#* m/?*~ s/?*~
|
|
111
|
|
112
|
|
113 lwlib-config.o: lwlib.h ../src/config.h
|
|
114 lwlib-Xaw.o: lwlib.h lwlib-internal.h lwlib-Xaw.h ../src/config.h
|
|
115 lwlib-Xlw.o: lwlib.h lwlib-internal.h lwlib-Xlw.h xlwmenu.h ../src/config.h
|
|
116 lwlib-Xm.o: lwlib.h lwlib-internal.h lwlib-utils.h lwlib-Xm.h
|
|
117 lwlib-Xm.o: ../src/config.h
|
|
118 lwlib-utils.o: lwlib-utils.h ../src/config.h
|
|
119 lwlib.o: lwlib.h lwlib-internal.h lwlib-utils.h ../src/config.h
|
|
120 lwlib.o: lwlib-Xlw.h lwlib-Xm.h lwlib-Xaw.h ../src/config.h
|
|
121 xlwmenu.o: lwlib.h xlwmenu.h xlwmenuP.h ../src/config.h
|
|
122 xlwscrollbar.o: lwlib.h xlwscrollbar.h xlwscrollbarP.h ../src/config.h
|