]> code.delx.au - gnu-emacs/blob - lwlib/Makefile.in
(pop_new_stack_if_no_contents): Do nothing if new_depth is 1.
[gnu-emacs] / lwlib / Makefile.in
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.
4
5 srcdir=@srcdir@
6 VPATH=@srcdir@
7 C_SWITCH_X_SITE=@C_SWITCH_X_SITE@
8
9 CC=@CC@
10 CFLAGS=@CFLAGS@
11 CPP=@CPP@
12 LN_S=@LN_S@
13 RANLIB=@RANLIB@
14 # See below--@X_TOOLKIT_TYPE@ is used below.
15 USE_X_TOOLKIT=@X_TOOLKIT_TYPE@
16
17 TOP = .
18
19 AR = ar cq
20
21 LN = ln -s
22 RM = rm -f
23
24 LUCID_OBJS = lwlib-Xlw.o xlwmenu.o lwlib-Xaw.o
25 MOTIF_OBJS = lwlib-Xm.o
26
27 TOOLKIT_DEFINES = -DUSE_$(USE_X_TOOLKIT)
28 TOOLKIT_OBJS = $(@X_TOOLKIT_TYPE@_OBJS)
29
30 OBJS = lwlib.o $(TOOLKIT_OBJS) lwlib-utils.o
31
32 # ../src is needed to find config.h.
33 ALL_CFLAGS= $(C_SWITCH_SITE) $(C_SWITCH_SYSTEM) $(C_SWITCH_X_SITE) \
34 $(C_SWITCH_X_SYSTEM) $(C_SWITCH_MACHINE) $(CPPFLAGS) $(CFLAGS) \
35 -DHAVE_CONFIG_H -Demacs -I. -I../src -I${srcdir} -I${srcdir}/../src
36
37 .c.o:
38 $(CC) -c ${ALL_CFLAGS} $<
39
40 all:: liblw.a
41
42 liblw.a: $(OBJS)
43 $(RM) $@
44 $(AR) $@ $(OBJS)
45 $(RANLIB) $@
46
47 # Depend on Makefile so that we recompile if TOOLKIT_DEFINES changes.
48 lwlib.o: $(srcdir)/lwlib.c Makefile
49 $(CC) -c $(TOOLKIT_DEFINES) $(ALL_CFLAGS) $(srcdir)/lwlib.c
50
51 lwlib-utils.o: lwlib-utils.c lwlib-utils.h
52 lwlib.o: lwlib.c lwlib.h lwlib-int.h lwlib-Xaw.h lwlib-Xlw.h
53 lwlib-Xlw.o: lwlib-Xlw.c lwlib.h lwlib-int.h lwlib-Xlw.h
54 lwlib-Xaw.o: lwlib-Xaw.c lwlib-Xaw.h lwlib.h lwlib-int.h
55 lwlib-Xm.o: lwlib-Xm.c lwlib-Xm.h lwlib.h lwlib-int.h lwlib-utils.h
56 xlwmenu.o: xlwmenu.c xlwmenu.h lwlib.h xlwmenuP.h
57
58 mostlyclean:
59 $(RM) *.o core errs ,* *~ *.a .emacs_* make.log MakeOut \#*
60
61 clean: mostlyclean
62 distclean: clean
63 maintainer-clean: distclean
64
65 TAGS:
66 ../lib-src/etags $(srcdir)/*.[ch]
67 tags: TAGS
68 .PHONY: tags