1 # Makefile for gperf/lib
3 # Copyright (C) 1989, 1992, 1993, 1998 Free Software Foundation, Inc.
4 # written by Douglas C. Schmidt (schmidt@ics.uci.edu)
6 # This file is part of GNU GPERF.
8 # GNU GPERF is free software; you can redistribute it and/or modify
9 # it under the terms of the GNU General Public License as published by
10 # the Free Software Foundation; either version 1, or (at your option)
13 # GNU GPERF is distributed in the hope that it will be useful,
14 # but WITHOUT ANY WARRANTY; without even the implied warranty of
15 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
16 # GNU General Public License for more details.
18 # You should have received a copy of the GNU General Public License
19 # along with GNU GPERF; see the file COPYING. If not, write to the Free
20 # Software Foundation, 59 Temple Place - Suite 330, Boston, MA 02111, USA.
22 #### Start of system configuration section. ####
24 # Directories used by "make":
27 # Directories used by "make install":
29 local_prefix = /usr/local
30 exec_prefix = @exec_prefix@
32 # Programs used by "make":
50 # Programs used by "make install":
52 INSTALL_PROGRAM = @INSTALL_PROGRAM@
53 INSTALL_DATA = @INSTALL_DATA@
55 #### End of system configuration section. ####
61 OBJECTS = getopt.o getopt1.o hash.o
62 CPPFLAGS = -I$(srcdir)
68 $(TARGETLIB): $(OBJECTS)
70 $(AR) $(AR_FLAGS) $@ $(OBJECTS)
73 # Don't use implicit rules, since AIX "make" and OSF/1 "make" don't always
74 # expand $< correctly in this context.
77 # $(CC) $(CFLAGS) $(CPPFLAGS) -c $<
80 # $(CXX) $(CXXFLAGS) $(CPPFLAGS) -c $<
82 getopt.o : getopt.c getopt.h
83 $(CC) $(CFLAGS) $(CPPFLAGS) -c $(srcdir)/getopt.c
85 getopt1.o : getopt1.c getopt.h
86 $(CC) $(CFLAGS) $(CPPFLAGS) -c $(srcdir)/getopt1.c
88 hash.o : hash.cc hash.h
89 $(CXX) $(CXXFLAGS) $(CPPFLAGS) -c $(srcdir)/hash.cc
102 $(RM) *~ *.s *.o *.a $(TARGETLIB) core
105 $(RM) config.status config.log config.cache Makefile
107 maintainer-clean : distclean