5652
|
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.
|
5626
|
4
|
5636
|
5 srcdir=@srcdir@
|
|
6 VPATH=@srcdir@
|
|
7 C_SWITCH_X_SITE=@C_SWITCH_X_SITE@
|
5626
|
8
|
5636
|
9 CC=@CC@
|
|
10 CFLAGS=@CFLAGS@
|
|
11 CPP=@CPP@
|
|
12 LN_S=@LN_S@
|
12865
|
13 RANLIB=@RANLIB@
|
5639
|
14 # See below--@X_TOOLKIT_TYPE@ is used below.
|
5636
|
15 USE_X_TOOLKIT=@X_TOOLKIT_TYPE@
|
5626
|
16
|
|
17 TOP = .
|
|
18
|
|
19 AR = ar cq
|
|
20
|
|
21 LN = ln -s
|
|
22 RM = rm -f
|
|
23
|
6306
|
24 LUCID_OBJS = lwlib-Xlw.o xlwmenu.o lwlib-Xaw.o
|
5626
|
25 MOTIF_OBJS = lwlib-Xm.o
|
5636
|
26 OLIT_OBJS = lwlib-Xol.o lwlib-Xolmb.o
|
5626
|
27
|
5639
|
28 TOOLKIT_DEFINES = -DUSE_$(USE_X_TOOLKIT)
|
|
29 TOOLKIT_OBJS = $(@X_TOOLKIT_TYPE@_OBJS)
|
5626
|
30
|
5636
|
31 OBJS = lwlib.o $(TOOLKIT_OBJS) lwlib-utils.o
|
|
32
|
11686
|
33 # ../src is needed to find config.h.
|
5636
|
34 ALL_CFLAGS= $(C_SWITCH_SITE) $(C_SWITCH_SYSTEM) $(C_SWITCH_X_SITE) \
|
|
35 $(C_SWITCH_X_SYSTEM) $(C_SWITCH_MACHINE) $(CPPFLAGS) $(CFLAGS) \
|
11322
|
36 -DEMACS_BITMAP_FILES -DHAVE_CONFIG_H -Demacs \
|
11686
|
37 -I. -I../src -I${srcdir} -I${srcdir}/../src
|
5626
|
38
|
|
39 .c.o:
|
5636
|
40 $(CC) -c ${ALL_CFLAGS} $<
|
5626
|
41
|
|
42 all:: liblw.a
|
|
43
|
|
44 liblw.a: $(OBJS)
|
|
45 $(RM) $@
|
|
46 $(AR) $@ $(OBJS)
|
5636
|
47 @echo Do not be alarmed if the following ranlib command
|
|
48 @echo fails due to the absence of a ranlib program on your system.
|
|
49 -$(RANLIB) $@ || true
|
|
50 #If running ranlib fails, probably there is none.
|
|
51 #That's ok. So don't stop the build.
|
5626
|
52
|
11246
|
53 # Depend on Makefile so that we recompile if TOOLKIT_DEFINES changes.
|
|
54 lwlib.o: $(srcdir)/lwlib.c Makefile
|
6009
|
55 $(CC) -c $(TOOLKIT_DEFINES) $(ALL_CFLAGS) $(srcdir)/lwlib.c
|
5626
|
56
|
7178
|
57 xrdb-cpp.o: $(srcdir)/xrdb-cpp.c
|
6009
|
58 $(CC) -c "-DCPP_PROGRAM=$(CPP)" $(ALL_CFLAGS) $(srcdir)/xrdb-cpp.c
|
5626
|
59
|
|
60 lwlib-utils.o: lwlib-utils.h
|
5636
|
61 lwlib.o: lwlib.h lwlib-int.h
|
|
62 lwlib-Xlw.o: lwlib.h lwlib-int.h
|
6306
|
63 lwlib-Xaw.o: lwlib.h lwlib-int.h
|
5636
|
64 lwlib-Xm.o: lwlib.h lwlib-int.h lwlib-utils.h
|
|
65 lwlib-Xol.o: lwlib.h lwlib-int.h
|
|
66 lwlib-Xolmb.o: lwlib-Xolmb.h lwlib-XolmbP.h
|
14882
|
67 xlwmenu.o: xlwmenu.c xlwmenu.h lwlib.h xlwmenuP.h
|
5626
|
68
|
5636
|
69 mostlyclean:
|
|
70 $(RM) *.o core errs ,* *~ *.a .emacs_* make.log MakeOut \#*
|
5626
|
71
|
5636
|
72 clean: mostlyclean
|
|
73 distclean: clean
|
10685
|
74 maintainer-clean: distclean
|
5626
|
75
|
14905
|
76 TAGS:
|
|
77 ../lib-src/etags -t *.[ch]
|
14913
|
78 tags: TAGS
|
|
79 .PHONY: tags
|