Mercurial > hg > xemacs-beta
comparison lwlib/Makefile.in.in @ 272:c5d627a313b1 r21-0b34
Import from CVS: tag r21-0b34
author | cvs |
---|---|
date | Mon, 13 Aug 2007 10:28:48 +0200 |
parents | d44af0c54775 |
children | 8626e4521993 |
comparison
equal
deleted
inserted
replaced
271:c7b7086b0a39 | 272:c5d627a313b1 |
---|---|
21 ## the Free Software Foundation, Inc., 59 Temple Place - Suite 330, | 21 ## the Free Software Foundation, Inc., 59 Temple Place - Suite 330, |
22 ## Boston, MA 02111-1307, USA. | 22 ## Boston, MA 02111-1307, USA. |
23 | 23 |
24 ## For performance and consistency, no built-in rules | 24 ## For performance and consistency, no built-in rules |
25 .SUFFIXES: | 25 .SUFFIXES: |
26 .SUFFIXES: .c .o .i .h | 26 .SUFFIXES: .c .h .o .i .s |
27 | 27 |
28 srcdir=@srcdir@ | 28 srcdir=@srcdir@ |
29 | 29 |
30 @SET_MAKE@ | 30 @SET_MAKE@ |
31 SHELL=/bin/sh | 31 SHELL=/bin/sh |
33 AR = ar cq | 33 AR = ar cq |
34 | 34 |
35 CC=@CC@ | 35 CC=@CC@ |
36 CPP=@CPP@ | 36 CPP=@CPP@ |
37 CFLAGS=@CFLAGS@ | 37 CFLAGS=@CFLAGS@ |
38 LDFLAGS=@LDFLAGS@ | |
39 CPPFLAGS=@CPPFLAGS@ | 38 CPPFLAGS=@CPPFLAGS@ |
40 RANLIB=@RANLIB@ | 39 RANLIB=@RANLIB@ |
41 | 40 |
42 #define NOT_C_CODE | 41 #define NOT_C_CODE |
43 #include "../src/config.h" | 42 #include "../src/config.h" |
51 | 50 |
52 objs = lwlib.o lwlib-utils.o lwlib-config.o @lwlib_objs@ | 51 objs = lwlib.o lwlib-utils.o lwlib-config.o @lwlib_objs@ |
53 | 52 |
54 all: liblw.a | 53 all: liblw.a |
55 | 54 |
56 c_switch_general=@c_switch_general@ | |
57 c_switch_window_system=@c_switch_window_system@ | |
58 c_switch_all=@c_switch_all@ | 55 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 | 56 |
66 cppflags = $(CPPFLAGS) -I. $(c_switch_all) | 57 cppflags = $(CPPFLAGS) -I. $(c_switch_all) |
67 cflags = $(CFLAGS) $(cppflags) | 58 cflags = $(CFLAGS) $(cppflags) |
68 | 59 |
69 ALL_CFLAGS= $(CFLAGS) $(CPPFLAGS) -I. $(c_switch_all) | |
70 #ifdef SOLARIS2 | 60 #ifdef SOLARIS2 |
71 %.o : %.c | 61 %.o : %.c |
72 #else | 62 #else |
73 .c.o: | 63 .c.o: |
74 #endif | 64 #endif |
75 $(CC) -c $(cflags) $< | 65 $(CC) -c $(cflags) $< |
76 | 66 |
77 ## Create preprocessor output (debugging purposes only) | 67 ## Create preprocessor output (debugging purposes only) |
78 .c.i: | 68 .c.i: |
69 #ifdef __GNUC__ | |
70 $(CC) -E $(cppflags) -o $@ $< | |
71 #else /* works on Solaris; what about other systems? */ | |
79 $(CC) -P $(cppflags) $< | 72 $(CC) -P $(cppflags) $< |
73 #endif /* compiler */ | |
74 | |
75 ## Create assembler output (debugging purposes only) | |
76 .c.s: | |
77 $(CC) -S -c $(cflags) $< | |
80 | 78 |
81 liblw.a: $(objs) | 79 liblw.a: $(objs) |
82 $(RM) $@ | 80 $(RM) $@ |
83 $(AR) $@ $(objs) | 81 $(AR) $@ $(objs) |
84 @-test -n "$(RANLIB)" && $(RANLIB) $@ | 82 @-test -n "$(RANLIB)" && $(RANLIB) $@ |
93 extraclean: distclean | 91 extraclean: distclean |
94 $(RM) *~ \#* | 92 $(RM) *~ \#* |
95 | 93 |
96 CONFIG_H = ../src/config.h config.h | 94 CONFIG_H = ../src/config.h config.h |
97 | 95 |
98 lwlib-config.o: lwlib.h $(CONFIG_H) | 96 ## Following correct as of 19980312 |
99 lwlib-Xaw.o: lwlib.h lwlib-internal.h lwlib-Xaw.h $(CONFIG_H) | 97 |
100 lwlib-Xlw.o: lwlib.h lwlib-internal.h lwlib-Xlw.h xlwmenu.h $(CONFIG_H) | 98 lwlib-Xaw.o: $(CONFIG_H) lwlib-Xaw.h lwlib-internal.h lwlib.h xlwmenu.h |
101 lwlib-Xm.o: lwlib.h lwlib-internal.h lwlib-utils.h lwlib-Xm.h $(CONFIG_H) | 99 lwlib-Xlw.o: $(CONFIG_H) lwlib-Xlw.h lwlib-internal.h lwlib.h xlwmenu.h xlwscrollbar.h |
102 lwlib-Xm.o: $(CONFIG_H) | 100 lwlib-Xm.o: $(CONFIG_H) lwlib-Xm.h lwlib-internal.h lwlib-utils.h lwlib.h xlwmenu.h |
103 lwlib-utils.o: lwlib-utils.h $(CONFIG_H) | 101 lwlib-config.o: $(CONFIG_H) lwlib.h xlwmenu.h |
104 lwlib.o: lwlib.h lwlib-internal.h lwlib-utils.h $(CONFIG_H) | 102 lwlib-utils.o: $(CONFIG_H) lwlib-utils.h |
105 lwlib.o: lwlib-Xlw.h lwlib-Xm.h lwlib-Xaw.h $(CONFIG_H) | 103 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: lwlib.h xlwmenu.h xlwmenuP.h $(CONFIG_H) | 104 xlwmenu.o: $(CONFIG_H) lwlib.h xlwmenu.h xlwmenuP.h |
107 xlwscrollbar.o: lwlib.h xlwscrollbar.h xlwscrollbarP.h $(CONFIG_H) | 105 xlwscrollbar.o: $(CONFIG_H) xlwscrollbar.h xlwscrollbarP.h |