Mercurial > hg > xemacs-beta
annotate lwlib/Makefile.in.in @ 5440:24c67faf4be6
Added property notice and license to ChangeLogs.
author | Mats Lidell <matsl@xemacs.org> |
---|---|
date | Mon, 06 Dec 2010 23:03:25 +0100 |
parents | ade4c7e2c6cb |
children | 4aa8ee813265 |
rev | line source |
---|---|
428 | 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. | |
3062 | 6 ## Copyright (C) 2005 Ben Wing. |
428 | 7 |
5422
ade4c7e2c6cb
Migrate lwlib/ to GPLv3.
Mike Sperber <sperber@deinprogramm.de>
parents:
3094
diff
changeset
|
8 ## This file is part of Lucid Widget Library. |
428 | 9 |
5422
ade4c7e2c6cb
Migrate lwlib/ to GPLv3.
Mike Sperber <sperber@deinprogramm.de>
parents:
3094
diff
changeset
|
10 ## The Lucid Widget Library is free software: you can redistribute it |
ade4c7e2c6cb
Migrate lwlib/ to GPLv3.
Mike Sperber <sperber@deinprogramm.de>
parents:
3094
diff
changeset
|
11 ## and/or modify it under the terms of the GNU General Public License |
ade4c7e2c6cb
Migrate lwlib/ to GPLv3.
Mike Sperber <sperber@deinprogramm.de>
parents:
3094
diff
changeset
|
12 ## as published by the Free Software Foundation, either version 3 of |
ade4c7e2c6cb
Migrate lwlib/ to GPLv3.
Mike Sperber <sperber@deinprogramm.de>
parents:
3094
diff
changeset
|
13 ## the License, or (at your option) any later version. |
428 | 14 |
5422
ade4c7e2c6cb
Migrate lwlib/ to GPLv3.
Mike Sperber <sperber@deinprogramm.de>
parents:
3094
diff
changeset
|
15 ## The Lucid Widget Library is distributed in the hope that it will be |
ade4c7e2c6cb
Migrate lwlib/ to GPLv3.
Mike Sperber <sperber@deinprogramm.de>
parents:
3094
diff
changeset
|
16 ## useful, but WITHOUT ANY WARRANTY; without even the implied warranty |
ade4c7e2c6cb
Migrate lwlib/ to GPLv3.
Mike Sperber <sperber@deinprogramm.de>
parents:
3094
diff
changeset
|
17 ## of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
428 | 18 ## GNU General Public License for more details. |
19 | |
20 ## You should have received a copy of the GNU General Public License | |
5422
ade4c7e2c6cb
Migrate lwlib/ to GPLv3.
Mike Sperber <sperber@deinprogramm.de>
parents:
3094
diff
changeset
|
21 ## along with the Lucid Widget Library. If not, see |
ade4c7e2c6cb
Migrate lwlib/ to GPLv3.
Mike Sperber <sperber@deinprogramm.de>
parents:
3094
diff
changeset
|
22 ## <http://www.gnu.org/licenses/>. |
428 | 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@ | |
1889 | 37 CFLAGS=@XE_CFLAGS@ |
428 | 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 | |
3094 | 51 objs = lwlib.o lwlib-utils.o lwlib-colors.o lwlib-fonts.o @lwlib_objs@ |
428 | 52 |
53 all: liblw.a | |
54 | |
55 c_switch_all=@c_switch_all@ | |
56 | |
2286 | 57 cppflags = $(CPPFLAGS) -I. -I$(srcdir)/../src $(c_switch_all) |
428 | 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 | |
3062 | 85 .PHONY: distclean-noconfig realclean-noconfig extraclean-noconfig |
428 | 86 mostlyclean: |
3083 | 87 -$(RM) liblw.a liblw_pure_*.a *.o *.i core |
428 | 88 clean: mostlyclean |
3062 | 89 distclean-noconfig: clean |
3083 | 90 -$(RM) config.h TAGS |
3062 | 91 ## This is used in making a distribution. |
92 ## Do not use it on development directories! | |
93 distclean: distclean-noconfig | |
3083 | 94 -$(RM) GNUmakefile Makefile Makefile.in |
3062 | 95 realclean-noconfig: distclean-noconfig |
428 | 96 realclean: distclean |
3062 | 97 extraclean-noconfig: realclean-noconfig |
3083 | 98 -$(RM) *~ \#* |
3062 | 99 extraclean: realclean |
3083 | 100 -$(RM) *~ \#* |
428 | 101 |
102 CONFIG_H = ../src/config.h config.h | |
103 | |
104 ## Following correct as of 19980312 | |
105 | |
106 lwlib-Xaw.o: $(CONFIG_H) lwlib-Xaw.h lwlib-internal.h lwlib.h xlwmenu.h xlwradio.h \ | |
107 xlwgauge.h xlwcheckbox.h | |
108 lwlib-Xlw.o: $(CONFIG_H) lwlib-Xlw.h lwlib-internal.h lwlib.h xlwmenu.h xlwscrollbar.h \ | |
109 xlwtabs.h xlwgcs.h | |
110 lwlib-Xm.o: $(CONFIG_H) lwlib-Xm.h lwlib-internal.h lwlib-utils.h lwlib.h xlwmenu.h | |
111 lwlib-utils.o: $(CONFIG_H) lwlib-utils.h | |
3094 | 112 lwlib-colors.o: $(CONFIG_H) lwlib-colors.h |
113 lwlib-fonts.o: $(CONFIG_H) lwlib-fonts.h | |
428 | 114 lwlib.o: $(CONFIG_H) lwlib-Xaw.h lwlib-Xlw.h lwlib-Xm.h lwlib-internal.h lwlib-utils.h lwlib.h xlwmenu.h |
115 xlwmenu.o: $(CONFIG_H) lwlib.h xlwmenu.h xlwmenuP.h | |
116 xlwscrollbar.o: $(CONFIG_H) xlwscrollbar.h xlwscrollbarP.h | |
117 xlwtabs.o: $(CONFIG_H) xlwtabs.h xlwtabsP.h | |
118 xlwradio.o: $(CONFIG_H) xlwradio.h xlwradioP.h | |
119 xlwcheckbox.o: $(CONFIG_H) xlwcheckbox.h xlwcheckboxP.h | |
120 xlwgauge.o: $(CONFIG_H) xlwgauge.h xlwgaugeP.h | |
121 xlwgcs.o: $(CONFIG_H) xlwgcs.h |