1 ## -*- text -*- ####################################################
3 # Makefile for termcap replacement libbrary. #
5 ####################################################################
10 BUILD_DIR = @BUILD_DIR@
13 INSTALL_PROGRAM = @INSTALL_PROGRAM@
14 INSTALL_DATA = @INSTALL_DATA@
29 INCLUDES = -I. -I../.. -I$(topdir) -I$(topdir)/lib
31 CCFLAGS = $(CFLAGS) $(DEFS) $(CPPFLAGS) ${INCLUDES}
33 # Here is a rule for making .o files from .c files that doesn't force
34 # the type of the machine (like -sun3) into the flags.
36 $(CC) -c $(CCFLAGS) $<
40 SOURCES = termcap.c tparam.c
41 OBJECTS = termcap.o tparam.o
43 DOCUMENTATION = termcap.texinfo
45 THINGS_TO_TAR = $(SOURCES) $(DOCUMENTATION)
47 ##########################################################################
51 libtermcap.a: $(OBJECTS)
53 $(AR) cr $@ $(OBJECTS)
54 -test -n "$(RANLIB)" && $(RANLIB) $@
59 $(RM) *.o *.a *.log *.cp *.tp *.vr *.fn *.aux *.pg *.toc
61 mostlyclean distclean maintainer-clean: clean
63 $(DESTDIR)/libtermcap.a: libtermcap.a
64 ${INSTALL_DATA} -c -m 644 libtermcap.a $@
65 -test -n "$(RANLIB)" && $(RANLIB) -t $@
67 termcap.o: $(BUILD_DIR)/config.h
68 tparam.o: $(BUILD_DIR)/config.h
69 version.o: $(BUILD_DIR)/config.h