128019Sjoerg# Makefile for gperf/lib
228021Sjoerg
328021Sjoerg# Copyright (C) 1989, 1992, 1993, 1998, 2002 Free Software Foundation, Inc.
428021Sjoerg# Written by Douglas C. Schmidt <schmidt@ics.uci.edu>
528021Sjoerg# and Bruno Haible <bruno@clisp.org>.
628021Sjoerg#
728021Sjoerg# This file is part of GNU GPERF.
828021Sjoerg#
928021Sjoerg# GNU GPERF is free software; you can redistribute it and/or modify
1028021Sjoerg# it under the terms of the GNU General Public License as published by
1128021Sjoerg# the Free Software Foundation; either version 2, or (at your option)
1228021Sjoerg# any later version.
1328021Sjoerg#
1428021Sjoerg# GNU GPERF is distributed in the hope that it will be useful,
1528021Sjoerg# but WITHOUT ANY WARRANTY; without even the implied warranty of
1628021Sjoerg# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
1728021Sjoerg# GNU General Public License for more details.
1828021Sjoerg#
1928021Sjoerg# You should have received a copy of the GNU General Public License
2028021Sjoerg# along with this program; see the file COPYING.
2128021Sjoerg# If not, write to the Free Software Foundation, Inc.,
2228021Sjoerg# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.  */
2328019Sjoerg
2428019Sjoerg#### Start of system configuration section. ####
2528021Sjoerg
2628019Sjoerg# Directories used by "make":
2728019Sjoergsrcdir = @srcdir@
2828019Sjoerg
2928019Sjoerg# Directories used by "make install":
3028019Sjoergprefix = @prefix@
3128019Sjoerglocal_prefix = /usr/local
3228019Sjoergexec_prefix = @exec_prefix@
3328019Sjoerg
3428019Sjoerg# Programs used by "make":
3528019Sjoerg# C compiler
3628019SjoergCC = @CC@
3728019SjoergCFLAGS = @CFLAGS@
3828019SjoergCPP = @CPP@
3928019Sjoerg# C++ compiler
4028019SjoergCXX = @CXX@
4128019SjoergCXXFLAGS = @CXXFLAGS@
4228019SjoergCXXCPP = @CXXCPP@
4328019Sjoerg# Both C and C++ compiler
4428019SjoergOBJEXT = @OBJEXT@
4528019Sjoerg# Other
4628019SjoergAR = @AR@
4728019SjoergARFLAGS = @ARFLAGS@
4828019SjoergRANLIB = @RANLIB@
4928019SjoergMV = mv
5028019SjoergLN = ln
5128019SjoergRM = rm -f
5228019Sjoerg@SET_MAKE@
5328019Sjoerg
54111010Snectar# Programs used by "make install":
5528019SjoergINSTALL = @INSTALL@
5628021SjoergINSTALL_PROGRAM = @INSTALL_PROGRAM@
57111010SnectarINSTALL_DATA = @INSTALL_DATA@
5828019Sjoerg
59111010Snectar#### End of system configuration section. ####
6028021Sjoerg
6128019SjoergSHELL = /bin/sh
6292986Sobrien
6328019SjoergVPATH = $(srcdir)
6471579Sdeischen
6528019SjoergOBJECTS  = getopt.$(OBJEXT) getopt1.$(OBJEXT) getline.$(OBJEXT) hash.$(OBJEXT)
6628019SjoergCPPFLAGS = -I$(srcdir)
6779664Sdd
6879664SddTARGETLIB = libgp.a
6928019Sjoerg
7048614Sobrienall : $(TARGETLIB)
7171579Sdeischen
7271579Sdeischen$(TARGETLIB): $(OBJECTS)
7328021Sjoerg	$(RM) $@
7428019Sjoerg	$(AR) $(ARFLAGS) $@ $(OBJECTS)
75112156Smtm	$(RANLIB) $@
7648614Sobrien
7728021Sjoerg# Don't use implicit rules, since AIX "make" and OSF/1 "make" don't always
7828019Sjoerg# expand $< correctly in this context.
7948614Sobrien#
80112156Smtm#%.o : %.c
8128019Sjoerg#	$(CC) $(CFLAGS) $(CPPFLAGS) -c $<
8228021Sjoerg#
8328021Sjoerg#%.o : %.cc
8428021Sjoerg#	$(CXX) $(CXXFLAGS) $(CPPFLAGS) -c $<
8528021Sjoerg
8653941Sachegetopt.o : getopt.c getopt.h
8772168Sphantom	$(CC) $(CFLAGS) $(CPPFLAGS) -c $(srcdir)/getopt.c
8828019Sjoerg
8928021Sjoerggetopt1.o : getopt1.c getopt.h
9028021Sjoerg	$(CC) $(CFLAGS) $(CPPFLAGS) -c $(srcdir)/getopt1.c
9128021Sjoerg
9228021Sjoerggetline.o : getline.cc getline.h
9328019Sjoerg	$(CXX) $(CXXFLAGS) $(CPPFLAGS) -c $(srcdir)/getline.cc
9428021Sjoerg
9528019Sjoerghash.o : hash.cc hash.h
9628021Sjoerg	$(CXX) $(CXXFLAGS) $(CPPFLAGS) -c $(srcdir)/hash.cc
9728164Sache
9828164Sacheinstall : all
9928021Sjoerg
10028021Sjoerginstalldirs :
10128021Sjoerg
10228021Sjoerguninstall :
10328021Sjoerg
10428019Sjoergcheck : all
10553941Sache
10653941Sachemostlyclean : clean
10753941Sache
10828021Sjoergclean : force
10928021Sjoerg	$(RM) *~ *.s *.o *.a $(TARGETLIB) core
11028021Sjoerg
11128021Sjoergdistclean : clean
11228021Sjoerg	$(RM) config.status config.log config.cache Makefile
11328021Sjoerg
11428021Sjoergmaintainer-clean : distclean
11528019Sjoerg
11653941Sacheforce :
117112156Smtm