1 ## -*- text -*- ####################################################
3 # Makefile for termcap replacement libbrary. #
5 ####################################################################
10 BUILD_DIR = @BUILD_DIR@
13 INSTALL_PROGRAM = @INSTALL_PROGRAM@
14 INSTALL_DATA = @INSTALL_DATA@
32 INCLUDES = -I. -I../.. -I$(topdir) -I$(topdir)/lib
34 CCFLAGS = $(CFLAGS) $(DEFS) $(CPPFLAGS) ${INCLUDES}
36 # Here is a rule for making .o files from .c files that doesn't force
37 # the type of the machine (like -sun3) into the flags.
39 $(CC) -c $(CCFLAGS) $<
41 SOURCES = termcap.c tparam.c
42 OBJECTS = termcap.o tparam.o
44 DOCUMENTATION = termcap.texinfo
46 THINGS_TO_TAR = $(SOURCES) $(DOCUMENTATION)
48 ##########################################################################
52 libtermcap.a: $(OBJECTS)
54 $(AR) $(ARFLAGS) $@ $(OBJECTS)
55 -test -n "$(RANLIB)" && $(RANLIB) $@
60 $(RM) *.o *.a *.log *.cp *.tp *.vr *.fn *.aux *.pg *.toc
62 mostlyclean distclean maintainer-clean: clean
64 $(DESTDIR)/libtermcap.a: libtermcap.a
65 ${INSTALL_DATA} -c -m 644 libtermcap.a $@
66 -test -n "$(RANLIB)" && $(RANLIB) -t $@
68 termcap.o: $(BUILD_DIR)/config.h
69 tparam.o: $(BUILD_DIR)/config.h
70 version.o: $(BUILD_DIR)/config.h