Mercurial > hg > xemacs-beta
comparison lwlib/Makefile.in.in @ 428:3ecd8885ac67 r21-2-22
Import from CVS: tag r21-2-22
author | cvs |
---|---|
date | Mon, 13 Aug 2007 11:28:15 +0200 |
parents | |
children | e9a3f8b4de53 |
comparison
equal
deleted
inserted
replaced
427:0a0253eac470 | 428:3ecd8885ac67 |
---|---|
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. | |
6 | |
7 ## This file is part of the Lucid Widget Library. | |
8 | |
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. | |
13 | |
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. | |
18 | |
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 | |
25 .SUFFIXES: | |
26 .SUFFIXES: .c .h .o .i .s | |
27 | |
28 srcdir=@srcdir@ | |
29 | |
30 @SET_MAKE@ | |
31 SHELL=/bin/sh | |
32 RM = rm -f | |
33 AR = ar cq | |
34 | |
35 CC=@XEMACS_CC@ | |
36 CPP=@CPP@ | |
37 CFLAGS=@CFLAGS@ | |
38 CPPFLAGS=@CPPFLAGS@ | |
39 RANLIB=@RANLIB@ | |
40 | |
41 #define NOT_C_CODE | |
42 #include "../src/config.h" | |
43 | |
44 #ifdef USE_GNU_MAKE | |
45 vpath %.c @srcdir@ | |
46 vpath %.h @srcdir@ | |
47 #else | |
48 VPATH=@srcdir@ | |
49 #endif | |
50 | |
51 objs = lwlib.o lwlib-utils.o lwlib-config.o @lwlib_objs@ | |
52 | |
53 all: liblw.a | |
54 | |
55 c_switch_all=@c_switch_all@ | |
56 | |
57 cppflags = $(CPPFLAGS) -I. $(c_switch_all) | |
58 cflags = $(CFLAGS) $(cppflags) | |
59 | |
60 #ifdef SOLARIS2 | |
61 %.o : %.c | |
62 #else | |
63 .c.o: | |
64 #endif | |
65 $(CC) -c $(cflags) $< | |
66 | |
67 ## Create preprocessor output (debugging purposes only) | |
68 .c.i: | |
69 #ifdef __GNUC__ | |
70 $(CC) -E $(cppflags) -o $@ $< | |
71 #else /* works on Solaris; what about other systems? */ | |
72 $(CC) -P $(cppflags) $< | |
73 #endif /* compiler */ | |
74 | |
75 ## Create assembler output (debugging purposes only) | |
76 .c.s: | |
77 $(CC) -S -c $(cflags) $< | |
78 | |
79 liblw.a: $(objs) | |
80 $(RM) $@ | |
81 $(AR) $@ $(objs) | |
82 @-test -n "$(RANLIB)" && $(RANLIB) $@ | |
83 | |
84 .PHONY: mostlyclean clean distclean realclean extraclean | |
85 mostlyclean: | |
86 $(RM) liblw.a liblw_pure_*.a *.o *.i core | |
87 clean: mostlyclean | |
88 distclean: clean | |
89 $(RM) GNUmakefile Makefile Makefile.in config.h TAGS | |
90 realclean: distclean | |
91 extraclean: distclean | |
92 $(RM) *~ \#* | |
93 | |
94 CONFIG_H = ../src/config.h config.h | |
95 | |
96 ## Following correct as of 19980312 | |
97 | |
98 lwlib-Xaw.o: $(CONFIG_H) lwlib-Xaw.h lwlib-internal.h lwlib.h xlwmenu.h xlwradio.h \ | |
99 xlwgauge.h xlwcheckbox.h | |
100 lwlib-Xlw.o: $(CONFIG_H) lwlib-Xlw.h lwlib-internal.h lwlib.h xlwmenu.h xlwscrollbar.h \ | |
101 xlwtabs.h xlwgcs.h | |
102 lwlib-Xm.o: $(CONFIG_H) lwlib-Xm.h lwlib-internal.h lwlib-utils.h lwlib.h xlwmenu.h | |
103 lwlib-config.o: $(CONFIG_H) lwlib.h xlwmenu.h | |
104 lwlib-utils.o: $(CONFIG_H) lwlib-utils.h | |
105 lwlib.o: $(CONFIG_H) lwlib-Xaw.h lwlib-Xlw.h lwlib-Xm.h lwlib-internal.h lwlib-utils.h lwlib.h xlwmenu.h | |
106 xlwmenu.o: $(CONFIG_H) lwlib.h xlwmenu.h xlwmenuP.h | |
107 xlwscrollbar.o: $(CONFIG_H) xlwscrollbar.h xlwscrollbarP.h | |
108 xlwtabs.o: $(CONFIG_H) xlwtabs.h xlwtabsP.h | |
109 xlwradio.o: $(CONFIG_H) xlwradio.h xlwradioP.h | |
110 xlwcheckbox.o: $(CONFIG_H) xlwcheckbox.h xlwcheckboxP.h | |
111 xlwgauge.o: $(CONFIG_H) xlwgauge.h xlwgaugeP.h | |
112 xlwgcs.o: $(CONFIG_H) xlwgcs.h |