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
|
217
|
52 objs = lwlib.o lwlib-utils.o lwlib-config.o @lwlib_objs@
|
0
|
53
|
217
|
54 all: liblw.a
|
0
|
55
|
149
|
56 c_switch_general=@c_switch_general@
|
|
57 c_switch_window_system=@c_switch_window_system@
|
|
58 c_switch_all=@c_switch_all@
|
|
59 ld_switch_general=@ld_switch_general@
|
|
60 ld_switch_window_system=@ld_switch_window_system@
|
|
61 ld_switch_all=@ld_switch_all@
|
|
62 ld_libs_general=@ld_libs_general@
|
|
63 ld_libs_window_system=@ld_libs_window_system@
|
|
64 ld_libs_all=@ld_libs_all@
|
|
65
|
217
|
66 cppflags = $(CPPFLAGS) -I. $(c_switch_all)
|
159
|
67 cflags = $(CFLAGS) $(cppflags)
|
|
68
|
217
|
69 ALL_CFLAGS= $(CFLAGS) $(CPPFLAGS) -I. $(c_switch_all)
|
193
|
70 #ifdef SOLARIS2
|
|
71 %.o : %.c
|
|
72 #else
|
0
|
73 .c.o:
|
193
|
74 #endif
|
159
|
75 $(CC) -c $(cflags) $<
|
0
|
76
|
163
|
77 ## Create preprocessor output (debugging purposes only)
|
159
|
78 .c.i:
|
|
79 $(CC) -P $(cppflags) $<
|
|
80
|
|
81 liblw.a: $(objs)
|
0
|
82 $(RM) $@
|
159
|
83 $(AR) $@ $(objs)
|
163
|
84 @-test -n "$(RANLIB)" && $(RANLIB) $@
|
0
|
85
|
171
|
86 .PHONY: mostlyclean clean distclean realclean extraclean
|
|
87 mostlyclean:
|
|
88 $(RM) liblw.a liblw_pure_*.a *.o *.i core
|
0
|
89 clean: mostlyclean
|
|
90 distclean: clean
|
171
|
91 $(RM) Makefile Makefile.in config.h TAGS
|
0
|
92 realclean: distclean
|
|
93 extraclean: distclean
|
171
|
94 $(RM) *~ \#*
|
0
|
95
|
163
|
96 CONFIG_H = ../src/config.h config.h
|
0
|
97
|
163
|
98 lwlib-config.o: lwlib.h $(CONFIG_H)
|
|
99 lwlib-Xaw.o: lwlib.h lwlib-internal.h lwlib-Xaw.h $(CONFIG_H)
|
|
100 lwlib-Xlw.o: lwlib.h lwlib-internal.h lwlib-Xlw.h xlwmenu.h $(CONFIG_H)
|
|
101 lwlib-Xm.o: lwlib.h lwlib-internal.h lwlib-utils.h lwlib-Xm.h $(CONFIG_H)
|
|
102 lwlib-Xm.o: $(CONFIG_H)
|
|
103 lwlib-utils.o: lwlib-utils.h $(CONFIG_H)
|
|
104 lwlib.o: lwlib.h lwlib-internal.h lwlib-utils.h $(CONFIG_H)
|
|
105 lwlib.o: lwlib-Xlw.h lwlib-Xm.h lwlib-Xaw.h $(CONFIG_H)
|
|
106 xlwmenu.o: lwlib.h xlwmenu.h xlwmenuP.h $(CONFIG_H)
|
|
107 xlwscrollbar.o: lwlib.h xlwscrollbar.h xlwscrollbarP.h $(CONFIG_H)
|