| 
									
										
										
										
											1996-12-23 17:02:34 +00:00
										 |  |  | ## -*- text -*- ####################################################
 | 
					
						
							|  |  |  | #								   #
 | 
					
						
							|  |  |  | # Makefile for termcap replacement libbrary.			   #
 | 
					
						
							|  |  |  | #								   #
 | 
					
						
							|  |  |  | ####################################################################
 | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2005-12-07 14:08:12 +00:00
										 |  |  | # Copyright (C) 1996-2005 Free Software Foundation, Inc.     
 | 
					
						
							| 
									
										
										
										
											2000-03-17 21:46:59 +00:00
										 |  |  | 
 | 
					
						
							|  |  |  | # This program is free software; you can redistribute it and/or modify
 | 
					
						
							|  |  |  | # it under the terms of the GNU General Public License as published by
 | 
					
						
							|  |  |  | # the Free Software Foundation; either version 2, or (at your option)
 | 
					
						
							|  |  |  | # any later version.
 | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | # This program is distributed in the hope that it will be useful,
 | 
					
						
							|  |  |  | # but WITHOUT ANY WARRANTY; without even the implied warranty of
 | 
					
						
							|  |  |  | # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 | 
					
						
							|  |  |  | # GNU General Public License for more details.
 | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | # You should have received a copy of the GNU General Public License
 | 
					
						
							|  |  |  | # along with this program; if not, write to the Free Software
 | 
					
						
							|  |  |  | # Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111 USA.
 | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											1996-12-23 17:02:34 +00:00
										 |  |  | srcdir = @srcdir@ | 
					
						
							|  |  |  | VPATH = .:@srcdir@ | 
					
						
							|  |  |  | topdir = @top_srcdir@ | 
					
						
							|  |  |  | BUILD_DIR = @BUILD_DIR@ | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2001-11-13 17:56:06 +00:00
										 |  |  | libdir = @libdir@ | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											1996-12-23 17:02:34 +00:00
										 |  |  | INSTALL = @INSTALL@ | 
					
						
							|  |  |  | INSTALL_PROGRAM = @INSTALL_PROGRAM@ | 
					
						
							|  |  |  | INSTALL_DATA = @INSTALL_DATA@ | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | CC = @CC@ | 
					
						
							|  |  |  | RANLIB = @RANLIB@ | 
					
						
							|  |  |  | AR = @AR@ | 
					
						
							| 
									
										
										
										
											1999-02-19 17:11:39 +00:00
										 |  |  | ARFLAGS = @ARFLAGS@ | 
					
						
							| 
									
										
										
										
											1996-12-23 17:02:34 +00:00
										 |  |  | RM = rm -f | 
					
						
							|  |  |  | CP = cp | 
					
						
							|  |  |  | MV = mv | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											1999-02-19 17:11:39 +00:00
										 |  |  | SHELL = @MAKE_SHELL@ | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											1996-12-23 17:02:34 +00:00
										 |  |  | CFLAGS = @CFLAGS@ | 
					
						
							|  |  |  | CPPFLAGS = @CPPFLAGS@ | 
					
						
							|  |  |  | LDFLAGS = @LDFLAGS@ | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | DEFS = @DEFS@ | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2000-03-17 21:46:59 +00:00
										 |  |  | INCLUDES = -I. -I../.. -I$(topdir) -I$(topdir)/lib -I$(srcdir) | 
					
						
							| 
									
										
										
										
											1996-12-23 17:02:34 +00:00
										 |  |  | 
 | 
					
						
							|  |  |  | CCFLAGS = $(CFLAGS) $(DEFS) $(CPPFLAGS) ${INCLUDES} | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | # Here is a rule for making .o files from .c files that doesn't force
 | 
					
						
							|  |  |  | # the type of the machine (like -sun3) into the flags.
 | 
					
						
							|  |  |  | .c.o: | 
					
						
							|  |  |  | 	$(CC) -c $(CCFLAGS) $< | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | SOURCES = termcap.c tparam.c | 
					
						
							|  |  |  | OBJECTS = termcap.o tparam.o | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | DOCUMENTATION = termcap.texinfo | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | THINGS_TO_TAR = $(SOURCES) $(DOCUMENTATION) | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | ##########################################################################
 | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | all: libtermcap.a | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | libtermcap.a:	$(OBJECTS) | 
					
						
							|  |  |  | 	$(RM) -f $@ | 
					
						
							| 
									
										
										
										
											1999-02-19 17:11:39 +00:00
										 |  |  | 	$(AR) $(ARFLAGS) $@ $(OBJECTS) | 
					
						
							| 
									
										
										
										
											1996-12-23 17:02:34 +00:00
										 |  |  | 	-test -n "$(RANLIB)" && $(RANLIB) $@ | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | install:	 | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | clean: | 
					
						
							|  |  |  | 	$(RM) *.o *.a *.log *.cp *.tp *.vr *.fn *.aux *.pg *.toc | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2000-03-17 21:46:59 +00:00
										 |  |  | mostlyclean: clean | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | distclean maintainer-clean: clean | 
					
						
							|  |  |  | 	$(RM) Makefile | 
					
						
							| 
									
										
										
										
											1996-12-23 17:02:34 +00:00
										 |  |  | 
 | 
					
						
							| 
									
										
										
										
											2001-11-13 17:56:06 +00:00
										 |  |  | $(DESTDIR)$(libdir)/libtermcap.a: libtermcap.a | 
					
						
							| 
									
										
										
										
											1996-12-23 17:02:34 +00:00
										 |  |  | 	${INSTALL_DATA} -c -m 644 libtermcap.a $@ | 
					
						
							|  |  |  | 	-test -n "$(RANLIB)" && $(RANLIB) -t $@ | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | termcap.o: $(BUILD_DIR)/config.h | 
					
						
							|  |  |  | tparam.o: $(BUILD_DIR)/config.h | 
					
						
							|  |  |  | version.o: $(BUILD_DIR)/config.h |