Makefile.in 1.71 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 12
CC=@CC@
CFLAGS=@CFLAGS@
CPP=@CPP@
LN_S=@LN_S@
13
RANLIB=@RANLIB@
14
# See below--@X_TOOLKIT_TYPE@ is used below.
15
USE_X_TOOLKIT=@X_TOOLKIT_TYPE@
Richard M. Stallman's avatar
Richard M. Stallman committed
16 17 18 19 20 21 22 23

              TOP = .

               AR = ar cq

               LN = ln -s
               RM = rm -f

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

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

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

32
# ../src is needed to find config.h.
33 34
ALL_CFLAGS= $(C_SWITCH_SITE) $(C_SWITCH_SYSTEM) $(C_SWITCH_X_SITE) \
  $(C_SWITCH_X_SYSTEM) $(C_SWITCH_MACHINE) $(CPPFLAGS) $(CFLAGS) \
35
  -DHAVE_CONFIG_H -Demacs -I. -I../src -I${srcdir} -I${srcdir}/../src
Richard M. Stallman's avatar
Richard M. Stallman committed
36 37

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

all:: liblw.a

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

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

51
lwlib-utils.o: lwlib-utils.c lwlib-utils.h
Dave Love's avatar
Dave Love committed
52 53 54 55
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
56
xlwmenu.o: xlwmenu.c xlwmenu.h lwlib.h xlwmenuP.h
Richard M. Stallman's avatar
Richard M. Stallman committed
57

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

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

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