1 # Makefile for gperf/lib
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>.
7 # This file is part of GNU GPERF.
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)
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.
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. */
24 #### Start of system configuration section. ####
26 # Directories used by "make":
29 # Directories used by "make install":
31 local_prefix = /usr/local
32 exec_prefix = @exec_prefix@
34 # Programs used by "make":
43 # Both C and C++ compiler
54 # Programs used by "make install":
56 INSTALL_PROGRAM = @INSTALL_PROGRAM@
57 INSTALL_DATA = @INSTALL_DATA@
59 #### End of system configuration section. ####
65 OBJECTS = getopt.$(OBJEXT) getopt1.$(OBJEXT) getline.$(OBJEXT) hash.$(OBJEXT)
66 CPPFLAGS = -I$(srcdir)
72 $(TARGETLIB): $(OBJECTS)
74 $(AR) $(ARFLAGS) $@ $(OBJECTS)
77 # Don't use implicit rules, since AIX "make" and OSF/1 "make" don't always
78 # expand $< correctly in this context.
81 # $(CC) $(CFLAGS) $(CPPFLAGS) -c $<
84 # $(CXX) $(CXXFLAGS) $(CPPFLAGS) -c $<
86 getopt.o : getopt.c getopt.h
87 $(CC) $(CFLAGS) $(CPPFLAGS) -c $(srcdir)/getopt.c
89 getopt1.o : getopt1.c getopt.h
90 $(CC) $(CFLAGS) $(CPPFLAGS) -c $(srcdir)/getopt1.c
92 getline.o : getline.cc getline.h
93 $(CXX) $(CXXFLAGS) $(CPPFLAGS) -c $(srcdir)/getline.cc
95 hash.o : hash.cc hash.h
96 $(CXX) $(CXXFLAGS) $(CPPFLAGS) -c $(srcdir)/hash.cc
109 $(RM) *~ *.s *.o *.a $(TARGETLIB) core
112 $(RM) config.status config.log config.cache Makefile
114 maintainer-clean : distclean