*** empty log message ***
[bpt/emacs.git] / 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_SRCS = lwlib-Xlw.c xlwmenu.c
25 LUCID_OBJS = lwlib-Xlw.o xlwmenu.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
30
31 TOOLKIT_DEFINES = -DUSE_$(USE_X_TOOLKIT)
32 TOOLKIT_SRCS = $(@X_TOOLKIT_TYPE@_SRCS)
33 TOOLKIT_OBJS = $(@X_TOOLKIT_TYPE@_OBJS)
34
35 SRCS = lwlib.c $(TOOLKIT_SRCS) lwlib-utils.c
36 OBJS = lwlib.o $(TOOLKIT_OBJS) lwlib-utils.o
37
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 -DTHIS_IS_X11R4
41
42 .c.o:
43 $(CC) -c ${ALL_CFLAGS} $<
44
45 all:: liblw.a
46
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.
55
56 lwlib.o: lwlib.c
57 $(CC) -c $(ALL_CFLAGS) $(TOOLKIT_DEFINES) $*.c
58
59 dispatch.o: dispatch.c
60 $(CC) -c $(ALL_CFLAGS) $*.c
61
62 xrdb-cpp.o: xrdb-cpp.c
63 $(CC) -c $(ALL_CFLAGS) "-DCPP_PROGRAM=$(CPP)" $*.c
64
65 xrdb.o: xrdb.c
66 $(CC) -c $(ALL_CFLAGS) $*.c
67
68 lwlib-Xm.o: lwlib-Xm.c
69 $(CC) -c $(ALL_CFLAGS) $*.c
70
71 lwlib-utils.o: lwlib-utils.h
72 lwlib.o: lwlib.h lwlib-int.h
73 lwlib-Xlw.o: lwlib.h lwlib-int.h
74 lwlib-Xm.o: lwlib.h lwlib-int.h lwlib-utils.h
75 lwlib-Xol.o: lwlib.h lwlib-int.h
76 lwlib-Xolmb.o: lwlib-Xolmb.h lwlib-XolmbP.h
77
78 mostlyclean:
79 $(RM) *.o core errs ,* *~ *.a .emacs_* make.log MakeOut \#*
80
81 clean: mostlyclean
82 distclean: clean
83 realclean: distclean
84
85 tags::
86 $(TAGS) -t *.[ch]