(append_glyph): Revert change of 2000-06-06.
[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@
a6578b63 13RANLIB=@RANLIB@
60724eab 14# See below--@X_TOOLKIT_TYPE@ is used below.
ec171d2e 15USE_X_TOOLKIT=@X_TOOLKIT_TYPE@
07bf635f
RS
16
17 TOP = .
07bf635f
RS
18
19 AR = ar cq
07bf635f 20
07bf635f 21 LN = ln -s
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
b7cffe17 33# ../src is needed to find config.h.
ec171d2e
RS
34ALL_CFLAGS= $(C_SWITCH_SITE) $(C_SWITCH_SYSTEM) $(C_SWITCH_X_SITE) \
35 $(C_SWITCH_X_SYSTEM) $(C_SWITCH_MACHINE) $(CPPFLAGS) $(CFLAGS) \
434b8757 36 -DEMACS_BITMAP_FILES -DHAVE_CONFIG_H -Demacs \
b7cffe17 37 -I. -I../src -I${srcdir} -I${srcdir}/../src
07bf635f
RS
38
39.c.o:
ec171d2e 40 $(CC) -c ${ALL_CFLAGS} $<
07bf635f
RS
41
42all:: liblw.a
43
44liblw.a: $(OBJS)
45 $(RM) $@
46 $(AR) $@ $(OBJS)
7397acc4 47 $(RANLIB) $@
07bf635f 48
b69328ca
RS
49# Depend on Makefile so that we recompile if TOOLKIT_DEFINES changes.
50lwlib.o: $(srcdir)/lwlib.c Makefile
364e6904 51 $(CC) -c $(TOOLKIT_DEFINES) $(ALL_CFLAGS) $(srcdir)/lwlib.c
07bf635f 52
39202030 53xrdb-cpp.o: $(srcdir)/xrdb-cpp.c
364e6904 54 $(CC) -c "-DCPP_PROGRAM=$(CPP)" $(ALL_CFLAGS) $(srcdir)/xrdb-cpp.c
07bf635f 55
8a23f4d8
RS
56lwlib-utils.o: lwlib-utils.c lwlib-utils.h
57lwlib.o: lwlib.c lwlib.h lwlib-int.h
58lwlib-Xlw.o: lwlib-Xlw.c lwlib.h lwlib-int.h
59lwlib-Xaw.o: lwlib-Xaw.c lwlib.h lwlib-int.h
60lwlib-Xm.o: lwlib-Xm.c lwlib.h lwlib-int.h lwlib-utils.h
61lwlib-Xol.o: lwlib-Xol.c lwlib.h lwlib-int.h
62lwlib-Xolmb.o: lwlib-Xolmb.c lwlib-Xolmb.h lwlib-XolmbP.h
4475c222 63xlwmenu.o: xlwmenu.c xlwmenu.h lwlib.h xlwmenuP.h
07bf635f 64
ec171d2e
RS
65mostlyclean:
66 $(RM) *.o core errs ,* *~ *.a .emacs_* make.log MakeOut \#*
07bf635f 67
ec171d2e
RS
68clean: mostlyclean
69distclean: clean
26873b72 70maintainer-clean: distclean
07bf635f 71
9009ad55
RS
72TAGS:
73 ../lib-src/etags -t *.[ch]
6180d6be
RS
74tags: TAGS
75.PHONY: tags