(defun-prompt-regexp): Make this variable buffer-local.
[emacs.git] / lwlib / Makefile.in
blob31d8ea7d3c97fe48663c26de542b2f3db5d20333
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.
5 srcdir=@srcdir@
6 VPATH=@srcdir@
7 C_SWITCH_X_SITE=@C_SWITCH_X_SITE@
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@
16 TOP = .
18 AR = ar cq
20 LN = ln -s
21 RANLIB = ranlib
22 RM = rm -f
24 LUCID_SRCS = lwlib-Xlw.c xlwmenu.c lwlib-Xaw.c
25 LUCID_OBJS = lwlib-Xlw.o xlwmenu.o lwlib-Xaw.o
26 MOTIF_SRCS = lwlib-Xm.c
27 MOTIF_OBJS = lwlib-Xm.o
28 OLIT_SRCS = lwlib-Xol.c lwlib-Xolmb.c
29 OLIT_OBJS = lwlib-Xol.o lwlib-Xolmb.o
31 TOOLKIT_DEFINES = -DUSE_$(USE_X_TOOLKIT)
32 TOOLKIT_SRCS = $(@X_TOOLKIT_TYPE@_SRCS)
33 TOOLKIT_OBJS = $(@X_TOOLKIT_TYPE@_OBJS)
35 SRCS = lwlib.c $(TOOLKIT_SRCS) lwlib-utils.c
36 OBJS = lwlib.o $(TOOLKIT_OBJS) lwlib-utils.o
38 ALL_CFLAGS= $(C_SWITCH_SITE) $(C_SWITCH_SYSTEM) $(C_SWITCH_X_SITE) \
39 $(C_SWITCH_X_SYSTEM) $(C_SWITCH_MACHINE) $(CPPFLAGS) $(CFLAGS) \
40 -DEMACS_BITMAP_FILES -Demacs
42 .c.o:
43 $(CC) -c ${ALL_CFLAGS} $<
45 all:: liblw.a
47 liblw.a: $(OBJS)
48 $(RM) $@
49 $(AR) $@ $(OBJS)
50 @echo Do not be alarmed if the following ranlib command
51 @echo fails due to the absence of a ranlib program on your system.
52 -$(RANLIB) $@ || true
53 #If running ranlib fails, probably there is none.
54 #That's ok. So don't stop the build.
56 lwlib.o: lwlib.c
57 $(CC) -c $(TOOLKIT_DEFINES) $(ALL_CFLAGS) $(srcdir)/lwlib.c
59 xrdb-cpp.o: xrdb-cpp.c
60 $(CC) -c "-DCPP_PROGRAM=$(CPP)" $(ALL_CFLAGS) $(srcdir)/xrdb-cpp.c
62 lwlib-utils.o: lwlib-utils.h
63 lwlib.o: lwlib.h lwlib-int.h
64 lwlib-Xlw.o: lwlib.h lwlib-int.h
65 lwlib-Xaw.o: lwlib.h lwlib-int.h
66 lwlib-Xm.o: lwlib.h lwlib-int.h lwlib-utils.h
67 lwlib-Xol.o: lwlib.h lwlib-int.h
68 lwlib-Xolmb.o: lwlib-Xolmb.h lwlib-XolmbP.h
70 mostlyclean:
71 $(RM) *.o core errs ,* *~ *.a .emacs_* make.log MakeOut \#*
73 clean: mostlyclean
74 distclean: clean
75 realclean: distclean
77 tags::
78 $(TAGS) -t *.[ch]