1# Makefile for gperf/lib 2 3# Copyright (C) 1989, 1992, 1993, 1998, 2002 Free Software Foundation, Inc. 4# Written by Douglas C. Schmidt <schmidt@ics.uci.edu> 5# and Bruno Haible <bruno@clisp.org>. 6# 7# This file is part of GNU GPERF. 8# 9# GNU GPERF is free software; you can redistribute it and/or modify 10# it under the terms of the GNU General Public License as published by 11# the Free Software Foundation; either version 2, or (at your option) 12# any later version. 13# 14# GNU GPERF is distributed in the hope that it will be useful, 15# but WITHOUT ANY WARRANTY; without even the implied warranty of 16# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 17# GNU General Public License for more details. 18# 19# You should have received a copy of the GNU General Public License 20# along with this program; see the file COPYING. 21# If not, write to the Free Software Foundation, Inc., 22# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. */ 23 24#### Start of system configuration section. #### 25 26# Directories used by "make": 27srcdir = @srcdir@ 28 29# Directories used by "make install": 30prefix = @prefix@ 31local_prefix = /usr/local 32exec_prefix = @exec_prefix@ 33 34# Programs used by "make": 35# C compiler 36CC = @CC@ 37CFLAGS = @CFLAGS@ 38CPP = @CPP@ 39# C++ compiler 40CXX = @CXX@ 41CXXFLAGS = @CXXFLAGS@ 42CXXCPP = @CXXCPP@ 43# Both C and C++ compiler 44OBJEXT = @OBJEXT@ 45# Other 46AR = @AR@ 47ARFLAGS = @ARFLAGS@ 48RANLIB = @RANLIB@ 49MV = mv 50LN = ln 51RM = rm -f 52@SET_MAKE@ 53 54# Programs used by "make install": 55INSTALL = @INSTALL@ 56INSTALL_PROGRAM = @INSTALL_PROGRAM@ 57INSTALL_DATA = @INSTALL_DATA@ 58 59#### End of system configuration section. #### 60 61SHELL = /bin/sh 62 63VPATH = $(srcdir) 64 65OBJECTS = getopt.$(OBJEXT) getopt1.$(OBJEXT) getline.$(OBJEXT) hash.$(OBJEXT) 66CPPFLAGS = -I$(srcdir) 67 68TARGETLIB = libgp.a 69 70all : $(TARGETLIB) 71 72$(TARGETLIB): $(OBJECTS) 73 $(RM) $@ 74 $(AR) $(ARFLAGS) $@ $(OBJECTS) 75 $(RANLIB) $@ 76 77# Don't use implicit rules, since AIX "make" and OSF/1 "make" don't always 78# expand $< correctly in this context. 79# 80#%.o : %.c 81# $(CC) $(CFLAGS) $(CPPFLAGS) -c $< 82# 83#%.o : %.cc 84# $(CXX) $(CXXFLAGS) $(CPPFLAGS) -c $< 85 86getopt.o : getopt.c getopt.h 87 $(CC) $(CFLAGS) $(CPPFLAGS) -c $(srcdir)/getopt.c 88 89getopt1.o : getopt1.c getopt.h 90 $(CC) $(CFLAGS) $(CPPFLAGS) -c $(srcdir)/getopt1.c 91 92getline.o : getline.cc getline.h 93 $(CXX) $(CXXFLAGS) $(CPPFLAGS) -c $(srcdir)/getline.cc 94 95hash.o : hash.cc hash.h 96 $(CXX) $(CXXFLAGS) $(CPPFLAGS) -c $(srcdir)/hash.cc 97 98install : all 99 100installdirs : 101 102uninstall : 103 104check : all 105 106mostlyclean : clean 107 108clean : force 109 $(RM) *~ *.s *.o *.a $(TARGETLIB) core 110 111distclean : clean 112 $(RM) config.status config.log config.cache Makefile 113 114maintainer-clean : distclean 115 116force : 117