]> code.delx.au - gnu-emacs/blob - lwlib/Makefile.in
(enriched-mode): Add autoload cookie.
[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 # See below--@X_TOOLKIT_TYPE@ is used below.
14 USE_X_TOOLKIT=@X_TOOLKIT_TYPE@
15
16 TOP = .
17
18 AR = ar cq
19
20 LN = ln -s
21 RANLIB = ranlib
22 RM = rm -f
23
24 LUCID_OBJS = lwlib-Xlw.o xlwmenu.o lwlib-Xaw.o
25 MOTIF_OBJS = lwlib-Xm.o
26 OLIT_OBJS = lwlib-Xol.o lwlib-Xolmb.o
27
28 TOOLKIT_DEFINES = -DUSE_$(USE_X_TOOLKIT)
29 TOOLKIT_OBJS = $(@X_TOOLKIT_TYPE@_OBJS)
30
31 OBJS = lwlib.o $(TOOLKIT_OBJS) lwlib-utils.o
32
33 ALL_CFLAGS= $(C_SWITCH_SITE) $(C_SWITCH_SYSTEM) $(C_SWITCH_X_SITE) \
34 $(C_SWITCH_X_SYSTEM) $(C_SWITCH_MACHINE) $(CPPFLAGS) $(CFLAGS) \
35 -DEMACS_BITMAP_FILES -Demacs
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 @echo Do not be alarmed if the following ranlib command
46 @echo fails due to the absence of a ranlib program on your system.
47 -$(RANLIB) $@ || true
48 #If running ranlib fails, probably there is none.
49 #That's ok. So don't stop the build.
50
51 lwlib.o: $(srcdir)/lwlib.c
52 $(CC) -c $(TOOLKIT_DEFINES) $(ALL_CFLAGS) $(srcdir)/lwlib.c
53
54 xrdb-cpp.o: $(srcdir)/xrdb-cpp.c
55 $(CC) -c "-DCPP_PROGRAM=$(CPP)" $(ALL_CFLAGS) $(srcdir)/xrdb-cpp.c
56
57 lwlib-utils.o: lwlib-utils.h
58 lwlib.o: lwlib.h lwlib-int.h
59 lwlib-Xlw.o: lwlib.h lwlib-int.h
60 lwlib-Xaw.o: lwlib.h lwlib-int.h
61 lwlib-Xm.o: lwlib.h lwlib-int.h lwlib-utils.h
62 lwlib-Xol.o: lwlib.h lwlib-int.h
63 lwlib-Xolmb.o: lwlib-Xolmb.h lwlib-XolmbP.h
64
65 mostlyclean:
66 $(RM) *.o core errs ,* *~ *.a .emacs_* make.log MakeOut \#*
67
68 clean: mostlyclean
69 distclean: clean
70 realclean: distclean
71
72 tags::
73 $(TAGS) -t *.[ch]