New directory
[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@
93a16fa8 12CPPFLAGS=@CPPFLAGS@
ec171d2e 13LN_S=@LN_S@
a6578b63 14RANLIB=@RANLIB@
60724eab 15# See below--@X_TOOLKIT_TYPE@ is used below.
ec171d2e 16USE_X_TOOLKIT=@X_TOOLKIT_TYPE@
07bf635f
RS
17
18 TOP = .
07bf635f
RS
19
20 AR = ar cq
07bf635f 21
07bf635f 22 LN = ln -s
07bf635f 23 RM = rm -f
07bf635f 24
ce5a08a1 25 LUCID_OBJS = lwlib-Xlw.o xlwmenu.o lwlib-Xaw.o
07bf635f 26 MOTIF_OBJS = lwlib-Xm.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 34ALL_CFLAGS= $(C_SWITCH_SITE) $(C_SWITCH_SYSTEM) $(C_SWITCH_X_SITE) \
93a16fa8 35 $(C_SWITCH_X_SYSTEM) $(C_SWITCH_MACHINE) $(CFLAGS) \
9d5ebed1 36 -DHAVE_CONFIG_H -Demacs -I. -I../src -I${srcdir} -I${srcdir}/../src
07bf635f
RS
37
38.c.o:
93a16fa8 39 $(CC) -c $(CPPFLAGS) ${ALL_CFLAGS} $<
07bf635f
RS
40
41all:: liblw.a
42
43liblw.a: $(OBJS)
44 $(RM) $@
45 $(AR) $@ $(OBJS)
7397acc4 46 $(RANLIB) $@
07bf635f 47
b69328ca
RS
48# Depend on Makefile so that we recompile if TOOLKIT_DEFINES changes.
49lwlib.o: $(srcdir)/lwlib.c Makefile
364e6904 50 $(CC) -c $(TOOLKIT_DEFINES) $(ALL_CFLAGS) $(srcdir)/lwlib.c
07bf635f 51
8a23f4d8 52lwlib-utils.o: lwlib-utils.c lwlib-utils.h
371b6f31
DL
53lwlib.o: lwlib.c lwlib.h lwlib-int.h lwlib-Xaw.h lwlib-Xlw.h
54lwlib-Xlw.o: lwlib-Xlw.c lwlib.h lwlib-int.h lwlib-Xlw.h
55lwlib-Xaw.o: lwlib-Xaw.c lwlib-Xaw.h lwlib.h lwlib-int.h
56lwlib-Xm.o: lwlib-Xm.c lwlib-Xm.h lwlib.h lwlib-int.h lwlib-utils.h
4475c222 57xlwmenu.o: xlwmenu.c xlwmenu.h lwlib.h xlwmenuP.h
07bf635f 58
ec171d2e
RS
59mostlyclean:
60 $(RM) *.o core errs ,* *~ *.a .emacs_* make.log MakeOut \#*
07bf635f 61
ec171d2e
RS
62clean: mostlyclean
63distclean: clean
26873b72 64maintainer-clean: distclean
07bf635f 65
9009ad55 66TAGS:
9040fe8b 67 ../lib-src/etags $(srcdir)/*.[ch]
6180d6be
RS
68tags: TAGS
69.PHONY: tags