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