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