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.
7 ## This file is part of the Lucid Widget Library.
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)
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.
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.
24 ## For performance and consistency, no built-in rules
26 .SUFFIXES: .c .h .o .i .s
42 #include "../src/config.h"
51 objs = lwlib.o lwlib-utils.o lwlib-config.o @lwlib_objs@
55 c_switch_all=@c_switch_all@
57 cppflags = $(CPPFLAGS) -I. $(c_switch_all)
58 cflags = $(CFLAGS) $(cppflags)
67 ## Create preprocessor output (debugging purposes only)
70 $(CC) -E $(cppflags) -o $@ $<
71 #else /* works on Solaris; what about other systems? */
72 $(CC) -P $(cppflags) $<
75 ## Create assembler output (debugging purposes only)
77 $(CC) -S -c $(cflags) $<
82 @-test -n "$(RANLIB)" && $(RANLIB) $@
84 .PHONY: mostlyclean clean distclean realclean extraclean
86 $(RM) liblw.a liblw_pure_*.a *.o *.i core
89 $(RM) GNUmakefile Makefile Makefile.in config.h TAGS
94 CONFIG_H = ../src/config.h config.h
96 ## Following correct as of 19980312
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 \
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