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
|
159
|
34 /* For performance and consistency, no built-in rules */
|
|
35 .SUFFIXES:
|
|
36 .SUFFIXES: .c .o .i .h
|
|
37
|
0
|
38 srcdir=@srcdir@
|
|
39
|
|
40 SHELL=/bin/sh
|
|
41
|
|
42 CC=@CC@
|
149
|
43 CPP=@CPP@
|
0
|
44 CFLAGS=@CFLAGS@
|
149
|
45 LDFLAGS=@LDFLAGS@
|
|
46 CPPFLAGS=@CPPFLAGS@
|
0
|
47 RANLIB=@RANLIB@
|
|
48
|
|
49 RM = rm -f
|
|
50 AR = ar cq
|
|
51 @SET_MAKE@
|
|
52
|
|
53 #define NOT_C_CODE
|
|
54 #include "../src/config.h"
|
|
55
|
|
56 #ifdef USE_GNU_MAKE
|
|
57 vpath %.c @srcdir@
|
|
58 vpath %.h @srcdir@
|
|
59 #else
|
|
60 VPATH=@srcdir@
|
|
61 #endif
|
|
62
|
157
|
63 #ifdef ENERGIZE
|
|
64 EZ_OBJS =\
|
|
65 energize/blpsheet.o energize/build.o energize/classbr_ps.o \
|
|
66 energize/ctreebr_ps.o energize/debuggerps.o energize/editmode.o \
|
|
67 energize/leb_psheet.o energize/projectdisp.o energize/projectps.o \
|
|
68 energize/search.o energize/target.o
|
|
69 ENERGIZEP = -DENERGIZE
|
|
70 EZ_SUBDIR = ez_dialog
|
0
|
71 #endif
|
|
72
|
159
|
73 objs = lwlib.o lwlib-utils.o lwlib-config.o $(EZ_OBJS) @lwlib_objs@
|
0
|
74
|
159
|
75 all: $(EZ_SUBDIR) liblw.a
|
0
|
76
|
149
|
77 c_switch_general=@c_switch_general@
|
|
78 c_switch_window_system=@c_switch_window_system@
|
|
79 c_switch_all=@c_switch_all@
|
|
80 ld_switch_general=@ld_switch_general@
|
|
81 ld_switch_window_system=@ld_switch_window_system@
|
|
82 ld_switch_all=@ld_switch_all@
|
|
83 ld_libs_general=@ld_libs_general@
|
|
84 ld_libs_window_system=@ld_libs_window_system@
|
|
85 ld_libs_all=@ld_libs_all@
|
|
86
|
159
|
87 cppflags = $(CPPFLAGS) -I. $(c_switch_all) $(ENERGIZEP)
|
|
88 cflags = $(CFLAGS) $(cppflags)
|
|
89
|
157
|
90 ALL_CFLAGS= $(CFLAGS) $(CPPFLAGS) -I. $(c_switch_all) $(ENERGIZEP)
|
0
|
91 .c.o:
|
159
|
92 $(CC) -c $(cflags) $<
|
0
|
93
|
159
|
94 /* Create preprocessor output (debugging purposes only) */
|
|
95 .c.i:
|
|
96 $(CC) -P $(cppflags) $<
|
|
97
|
|
98 liblw.a: $(objs)
|
0
|
99 $(RM) $@
|
159
|
100 $(AR) $@ $(objs)
|
157
|
101 -test -n "$(RANLIB)" && $(RANLIB) $@
|
0
|
102
|
|
103 #ifdef ENERGIZE
|
|
104 ez_dialog:
|
80
|
105 cd energize && $(MAKE) $(MFLAGS)
|
0
|
106 #endif
|
|
107
|
159
|
108 .PHONY : mostlyclean clean distclean realclean extraclean
|
0
|
109 FRC.mostlyclean:
|
|
110 mostlyclean: FRC.mostlyclean
|
|
111 rm -f liblw.a liblw_pure_*.a *.o
|
|
112 clean: mostlyclean
|
|
113 #ifdef ENERGIZE
|
80
|
114 cd energize && $(MAKE) $(MFLAGS) clean
|
0
|
115 #endif
|
|
116 distclean: clean
|
151
|
117 rm -f Makefile Makefile.in config.h .pure
|
0
|
118 realclean: distclean
|
|
119 extraclean: distclean
|
|
120 -rm -f *~ \#* m/?*~ s/?*~
|
|
121
|
|
122
|
|
123 lwlib-config.o: lwlib.h ../src/config.h
|
|
124 lwlib-Xaw.o: lwlib.h lwlib-internal.h lwlib-Xaw.h ../src/config.h
|
|
125 lwlib-Xlw.o: lwlib.h lwlib-internal.h lwlib-Xlw.h xlwmenu.h ../src/config.h
|
|
126 lwlib-Xm.o: lwlib.h lwlib-internal.h lwlib-utils.h lwlib-Xm.h
|
|
127 lwlib-Xm.o: ../src/config.h
|
|
128 lwlib-utils.o: lwlib-utils.h ../src/config.h
|
|
129 lwlib.o: lwlib.h lwlib-internal.h lwlib-utils.h ../src/config.h
|
|
130 lwlib.o: lwlib-Xlw.h lwlib-Xm.h lwlib-Xaw.h ../src/config.h
|
|
131 xlwmenu.o: lwlib.h xlwmenu.h xlwmenuP.h ../src/config.h
|
|
132 xlwscrollbar.o: lwlib.h xlwscrollbar.h xlwscrollbarP.h ../src/config.h
|