Makefile.in 1.74 KB
Newer Older
Roland McGrath's avatar
Roland McGrath committed
1 2 3
# This was taken from the output of Imake
# and set up to be configured by ../configure.
# Some parts Copyright (c) 1992, 1993 Lucid, Inc.
Richard M. Stallman's avatar
Richard M. Stallman committed
4

5 6 7
srcdir=@srcdir@
VPATH=@srcdir@
C_SWITCH_X_SITE=@C_SWITCH_X_SITE@
Richard M. Stallman's avatar
Richard M. Stallman committed
8

9 10 11
CC=@CC@
CFLAGS=@CFLAGS@
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@
Richard M. Stallman's avatar
Richard M. Stallman committed
17 18 19 20 21 22 23 24

              TOP = .

               AR = ar cq

               LN = ln -s
               RM = rm -f

Fred Pierresteguy's avatar
Fred Pierresteguy committed
25
     LUCID_OBJS = lwlib-Xlw.o xlwmenu.o lwlib-Xaw.o
Richard M. Stallman's avatar
Richard M. Stallman committed
26 27
     MOTIF_OBJS = lwlib-Xm.o

28 29
TOOLKIT_DEFINES = -DUSE_$(USE_X_TOOLKIT)
   TOOLKIT_OBJS = $(@X_TOOLKIT_TYPE@_OBJS)
30 31

           OBJS = lwlib.o $(TOOLKIT_OBJS) lwlib-utils.o
Richard M. Stallman's avatar
Richard M. Stallman committed
32

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
Richard M. Stallman's avatar
Richard M. Stallman committed
37 38

.c.o:
39
	$(CC) -c $(CPPFLAGS) ${ALL_CFLAGS} $<
Richard M. Stallman's avatar
Richard M. Stallman committed
40 41 42 43 44 45

all:: liblw.a

liblw.a: $(OBJS)
	$(RM) $@
	$(AR) $@ $(OBJS)
46
	$(RANLIB) $@
Richard M. Stallman's avatar
Richard M. Stallman committed
47

48 49
# Depend on Makefile so that we recompile if TOOLKIT_DEFINES changes.
lwlib.o:  $(srcdir)/lwlib.c  Makefile
50
	$(CC) -c $(CPPFLAGS) $(TOOLKIT_DEFINES) $(ALL_CFLAGS) $(srcdir)/lwlib.c
Richard M. Stallman's avatar
Richard M. Stallman committed
51

52
lwlib-utils.o: lwlib-utils.c lwlib-utils.h
Dave Love's avatar
Dave Love committed
53 54 55 56
lwlib.o:       lwlib.c lwlib.h lwlib-int.h lwlib-Xaw.h lwlib-Xlw.h
lwlib-Xlw.o:   lwlib-Xlw.c lwlib.h lwlib-int.h lwlib-Xlw.h
lwlib-Xaw.o:   lwlib-Xaw.c lwlib-Xaw.h lwlib.h lwlib-int.h
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
Richard M. Stallman's avatar
Richard M. Stallman committed
58

59
mostlyclean:
60
	$(RM) *.o core errs ,* *.a .emacs_* make.log MakeOut \#*
Richard M. Stallman's avatar
Richard M. Stallman committed
61

62 63
clean: mostlyclean
distclean: clean
64
maintainer-clean: distclean
Richard M. Stallman's avatar
Richard M. Stallman committed
65

66
TAGS:
67
	../lib-src/etags $(srcdir)/*.[ch]
Richard M. Stallman's avatar
Richard M. Stallman committed
68 69
tags: TAGS
.PHONY: tags