(Thumbnails): Minor cleanup.
[emacs.git] / lwlib / Makefile.in
blobdd2bb6537e9ab231cb969cc4b18de0d294b0dfbc
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 CPPFLAGS=@CPPFLAGS@
13 LN_S=@LN_S@
14 RANLIB=@RANLIB@
15 # See below--@X_TOOLKIT_TYPE@ is used below.
16 USE_X_TOOLKIT=@X_TOOLKIT_TYPE@
18 TOP = .
20 AR = ar cq
22 LN = ln -s
23 RM = rm -f
25 LUCID_OBJS = lwlib-Xlw.o xlwmenu.o lwlib-Xaw.o
26 MOTIF_OBJS = lwlib-Xm.o
28 TOOLKIT_DEFINES = -DUSE_$(USE_X_TOOLKIT)
29 TOOLKIT_OBJS = $(@X_TOOLKIT_TYPE@_OBJS)
31 OBJS = lwlib.o $(TOOLKIT_OBJS) lwlib-utils.o
33 # ../src is needed to find config.h.
34 ALL_CFLAGS= $(C_SWITCH_SITE) $(C_SWITCH_SYSTEM) $(C_SWITCH_X_SITE) \
35 $(C_SWITCH_X_SYSTEM) $(C_SWITCH_MACHINE) $(CFLAGS) \
36 -DHAVE_CONFIG_H -Demacs -I. -I../src -I${srcdir} -I${srcdir}/../src
38 .c.o:
39 $(CC) -c $(CPPFLAGS) ${ALL_CFLAGS} $<
41 all:: liblw.a
43 liblw.a: $(OBJS)
44 $(RM) $@
45 $(AR) $@ $(OBJS)
46 $(RANLIB) $@
48 # Depend on Makefile so that we recompile if TOOLKIT_DEFINES changes.
49 lwlib.o: $(srcdir)/lwlib.c Makefile
50 $(CC) -c $(TOOLKIT_DEFINES) $(ALL_CFLAGS) $(srcdir)/lwlib.c
52 lwlib-utils.o: lwlib-utils.c lwlib-utils.h
53 lwlib.o: lwlib.c lwlib.h lwlib-int.h lwlib-Xaw.h lwlib-Xlw.h
54 lwlib-Xlw.o: lwlib-Xlw.c lwlib.h lwlib-int.h lwlib-Xlw.h
55 lwlib-Xaw.o: lwlib-Xaw.c lwlib-Xaw.h lwlib.h lwlib-int.h
56 lwlib-Xm.o: lwlib-Xm.c lwlib-Xm.h lwlib.h lwlib-int.h lwlib-utils.h
57 xlwmenu.o: xlwmenu.c xlwmenu.h lwlib.h xlwmenuP.h
59 mostlyclean:
60 $(RM) *.o core errs ,* *.a .emacs_* make.log MakeOut \#*
62 clean: mostlyclean
63 distclean: clean
64 maintainer-clean: distclean
66 TAGS:
67 ../lib-src/etags $(srcdir)/*.[ch]
68 tags: TAGS
69 .PHONY: tags