(logb): Test HPUX, not hpux.
[bpt/emacs.git] / lwlib / Makefile.in
CommitLineData
ddd6d613
RM
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.
07bf635f 4
ec171d2e
RS
5srcdir=@srcdir@
6VPATH=@srcdir@
7C_SWITCH_X_SITE=@C_SWITCH_X_SITE@
07bf635f 8
ec171d2e
RS
9CC=@CC@
10CFLAGS=@CFLAGS@
11CPP=@CPP@
12LN_S=@LN_S@
60724eab 13# See below--@X_TOOLKIT_TYPE@ is used below.
ec171d2e 14USE_X_TOOLKIT=@X_TOOLKIT_TYPE@
07bf635f
RS
15
16 TOP = .
07bf635f
RS
17
18 AR = ar cq
07bf635f 19
07bf635f 20 LN = ln -s
07bf635f 21 RANLIB = ranlib
07bf635f 22 RM = rm -f
07bf635f 23
ce5a08a1
FP
24 LUCID_SRCS = lwlib-Xlw.c xlwmenu.c lwlib-Xaw.c
25 LUCID_OBJS = lwlib-Xlw.o xlwmenu.o lwlib-Xaw.o
07bf635f
RS
26 MOTIF_SRCS = lwlib-Xm.c
27 MOTIF_OBJS = lwlib-Xm.o
ec171d2e
RS
28 OLIT_SRCS = lwlib-Xol.c lwlib-Xolmb.c
29 OLIT_OBJS = lwlib-Xol.o lwlib-Xolmb.o
07bf635f 30
60724eab
RS
31TOOLKIT_DEFINES = -DUSE_$(USE_X_TOOLKIT)
32 TOOLKIT_SRCS = $(@X_TOOLKIT_TYPE@_SRCS)
33 TOOLKIT_OBJS = $(@X_TOOLKIT_TYPE@_OBJS)
ec171d2e
RS
34
35 SRCS = lwlib.c $(TOOLKIT_SRCS) lwlib-utils.c
36 OBJS = lwlib.o $(TOOLKIT_OBJS) lwlib-utils.o
07bf635f 37
ec171d2e
RS
38ALL_CFLAGS= $(C_SWITCH_SITE) $(C_SWITCH_SYSTEM) $(C_SWITCH_X_SITE) \
39 $(C_SWITCH_X_SYSTEM) $(C_SWITCH_MACHINE) $(CPPFLAGS) $(CFLAGS) \
72f163ea 40 -DEMACS_BITMAP_FILES -Demacs
07bf635f
RS
41
42.c.o:
ec171d2e 43 $(CC) -c ${ALL_CFLAGS} $<
07bf635f
RS
44
45all:: liblw.a
46
47liblw.a: $(OBJS)
48 $(RM) $@
49 $(AR) $@ $(OBJS)
ec171d2e
RS
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.
07bf635f
RS
55
56lwlib.o: lwlib.c
364e6904 57 $(CC) -c $(TOOLKIT_DEFINES) $(ALL_CFLAGS) $(srcdir)/lwlib.c
07bf635f
RS
58
59xrdb-cpp.o: xrdb-cpp.c
364e6904 60 $(CC) -c "-DCPP_PROGRAM=$(CPP)" $(ALL_CFLAGS) $(srcdir)/xrdb-cpp.c
07bf635f
RS
61
62lwlib-utils.o: lwlib-utils.h
ec171d2e
RS
63lwlib.o: lwlib.h lwlib-int.h
64lwlib-Xlw.o: lwlib.h lwlib-int.h
ce5a08a1 65lwlib-Xaw.o: lwlib.h lwlib-int.h
ec171d2e
RS
66lwlib-Xm.o: lwlib.h lwlib-int.h lwlib-utils.h
67lwlib-Xol.o: lwlib.h lwlib-int.h
68lwlib-Xolmb.o: lwlib-Xolmb.h lwlib-XolmbP.h
07bf635f 69
ec171d2e
RS
70mostlyclean:
71 $(RM) *.o core errs ,* *~ *.a .emacs_* make.log MakeOut \#*
07bf635f 72
ec171d2e
RS
73clean: mostlyclean
74distclean: clean
75realclean: distclean
07bf635f
RS
76
77tags::
ec171d2e 78 $(TAGS) -t *.[ch]