Fix spelling of author's name.
[bpt/emacs.git] / lwlib / Makefile.in
CommitLineData
ddd6d613
RM
1# This was taken from the output of Imake
2# and set up to be configured by ../configure.
3# Some parts Copyright (c) 1992, 1993 Lucid, Inc.
07bf635f 4
ec171d2e
RS
5srcdir=@srcdir@
6VPATH=@srcdir@
7C_SWITCH_X_SITE=@C_SWITCH_X_SITE@
07bf635f 8
ec171d2e
RS
9CC=@CC@
10CFLAGS=@CFLAGS@
11CPP=@CPP@
12LN_S=@LN_S@
60724eab 13# See below--@X_TOOLKIT_TYPE@ is used below.
ec171d2e 14USE_X_TOOLKIT=@X_TOOLKIT_TYPE@
07bf635f
RS
15
16 TOP = .
07bf635f
RS
17
18 AR = ar cq
07bf635f 19
07bf635f 20 LN = ln -s
07bf635f 21 RANLIB = ranlib
07bf635f 22 RM = rm -f
07bf635f 23
ce5a08a1 24 LUCID_OBJS = lwlib-Xlw.o xlwmenu.o lwlib-Xaw.o
07bf635f 25 MOTIF_OBJS = lwlib-Xm.o
ec171d2e 26 OLIT_OBJS = lwlib-Xol.o lwlib-Xolmb.o
07bf635f 27
60724eab 28TOOLKIT_DEFINES = -DUSE_$(USE_X_TOOLKIT)
60724eab 29 TOOLKIT_OBJS = $(@X_TOOLKIT_TYPE@_OBJS)
ec171d2e 30
ec171d2e 31 OBJS = lwlib.o $(TOOLKIT_OBJS) lwlib-utils.o
07bf635f 32
ec171d2e
RS
33ALL_CFLAGS= $(C_SWITCH_SITE) $(C_SWITCH_SYSTEM) $(C_SWITCH_X_SITE) \
34 $(C_SWITCH_X_SYSTEM) $(C_SWITCH_MACHINE) $(CPPFLAGS) $(CFLAGS) \
434b8757
RS
35 -DEMACS_BITMAP_FILES -DHAVE_CONFIG_H -Demacs \
36 -I. -I${srcdir} -I${srcdir}/../src
07bf635f
RS
37
38.c.o:
ec171d2e 39 $(CC) -c ${ALL_CFLAGS} $<
07bf635f
RS
40
41all:: liblw.a
42
43liblw.a: $(OBJS)
44 $(RM) $@
45 $(AR) $@ $(OBJS)
ec171d2e
RS
46 @echo Do not be alarmed if the following ranlib command
47 @echo fails due to the absence of a ranlib program on your system.
48 -$(RANLIB) $@ || true
49#If running ranlib fails, probably there is none.
50#That's ok. So don't stop the build.
07bf635f 51
b69328ca
RS
52# Depend on Makefile so that we recompile if TOOLKIT_DEFINES changes.
53lwlib.o: $(srcdir)/lwlib.c Makefile
364e6904 54 $(CC) -c $(TOOLKIT_DEFINES) $(ALL_CFLAGS) $(srcdir)/lwlib.c
07bf635f 55
39202030 56xrdb-cpp.o: $(srcdir)/xrdb-cpp.c
364e6904 57 $(CC) -c "-DCPP_PROGRAM=$(CPP)" $(ALL_CFLAGS) $(srcdir)/xrdb-cpp.c
07bf635f
RS
58
59lwlib-utils.o: lwlib-utils.h
ec171d2e
RS
60lwlib.o: lwlib.h lwlib-int.h
61lwlib-Xlw.o: lwlib.h lwlib-int.h
ce5a08a1 62lwlib-Xaw.o: lwlib.h lwlib-int.h
ec171d2e
RS
63lwlib-Xm.o: lwlib.h lwlib-int.h lwlib-utils.h
64lwlib-Xol.o: lwlib.h lwlib-int.h
65lwlib-Xolmb.o: lwlib-Xolmb.h lwlib-XolmbP.h
07bf635f 66
ec171d2e
RS
67mostlyclean:
68 $(RM) *.o core errs ,* *~ *.a .emacs_* make.log MakeOut \#*
07bf635f 69
ec171d2e
RS
70clean: mostlyclean
71distclean: clean
26873b72 72maintainer-clean: distclean
07bf635f
RS
73
74tags::
ec171d2e 75 $(TAGS) -t *.[ch]