Remove OpenLook file dependencies.
[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
07bf635f 26
60724eab 27TOOLKIT_DEFINES = -DUSE_$(USE_X_TOOLKIT)
60724eab 28 TOOLKIT_OBJS = $(@X_TOOLKIT_TYPE@_OBJS)
ec171d2e 29
ec171d2e 30 OBJS = lwlib.o $(TOOLKIT_OBJS) lwlib-utils.o
07bf635f 31
b7cffe17 32# ../src is needed to find config.h.
ec171d2e
RS
33ALL_CFLAGS= $(C_SWITCH_SITE) $(C_SWITCH_SYSTEM) $(C_SWITCH_X_SITE) \
34 $(C_SWITCH_X_SYSTEM) $(C_SWITCH_MACHINE) $(CPPFLAGS) $(CFLAGS) \
9d5ebed1 35 -DHAVE_CONFIG_H -Demacs -I. -I../src -I${srcdir} -I${srcdir}/../src
07bf635f
RS
36
37.c.o:
ec171d2e 38 $(CC) -c ${ALL_CFLAGS} $<
07bf635f
RS
39
40all:: liblw.a
41
42liblw.a: $(OBJS)
43 $(RM) $@
44 $(AR) $@ $(OBJS)
7397acc4 45 $(RANLIB) $@
07bf635f 46
b69328ca
RS
47# Depend on Makefile so that we recompile if TOOLKIT_DEFINES changes.
48lwlib.o: $(srcdir)/lwlib.c Makefile
364e6904 49 $(CC) -c $(TOOLKIT_DEFINES) $(ALL_CFLAGS) $(srcdir)/lwlib.c
07bf635f 50
8a23f4d8 51lwlib-utils.o: lwlib-utils.c lwlib-utils.h
371b6f31
DL
52lwlib.o: lwlib.c lwlib.h lwlib-int.h lwlib-Xaw.h lwlib-Xlw.h
53lwlib-Xlw.o: lwlib-Xlw.c lwlib.h lwlib-int.h lwlib-Xlw.h
54lwlib-Xaw.o: lwlib-Xaw.c lwlib-Xaw.h lwlib.h lwlib-int.h
55lwlib-Xm.o: lwlib-Xm.c lwlib-Xm.h lwlib.h lwlib-int.h lwlib-utils.h
4475c222 56xlwmenu.o: xlwmenu.c xlwmenu.h lwlib.h xlwmenuP.h
07bf635f 57
ec171d2e
RS
58mostlyclean:
59 $(RM) *.o core errs ,* *~ *.a .emacs_* make.log MakeOut \#*
07bf635f 60
ec171d2e
RS
61clean: mostlyclean
62distclean: clean
26873b72 63maintainer-clean: distclean
07bf635f 64
9009ad55 65TAGS:
9040fe8b 66 ../lib-src/etags $(srcdir)/*.[ch]
6180d6be
RS
67tags: TAGS
68.PHONY: tags