1 # Makefile for gperf/src
3 # Copyright (C) 1989, 1992, 1993, 1998, 2000 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@
33 # Programs used by "make":
42 # Both C and C++ compiler
50 # Programs used by "make install":
52 INSTALL_PROGRAM = @INSTALL_PROGRAM@
53 INSTALL_DATA = @INSTALL_DATA@
54 MKINSTALLDIRS = $(SHELL) $(srcdir)/../mkinstalldirs
56 #### End of system configuration section. ####
62 OBJECTS = new.o options.o iterator.o main.o gen-perf.o key-list.o list-node.o \
63 hash-table.o bool-array.o read-line.o trace.o vectors.o version.o
64 LIBS = ../lib/libgp.a -lm
65 CPPFLAGS = -I. -I$(srcdir)/../lib
71 $(TARGETPROG): $(OBJECTS)
72 $(CXX) $(CXXFLAGS) $(LDFLAGS) -o $@ $(OBJECTS) $(LIBS)
74 # Don't use implicit rules, since AIX "make" and OSF/1 "make" don't always
75 # expand $< correctly in this context.
78 # $(CC) $(CFLAGS) $(CPPFLAGS) -c $<
81 # $(CXX) $(CXXFLAGS) $(CPPFLAGS) -c $<
88 READ_LINE_H = read-line.h read-line.icc $(TRACE_H)
89 OPTIONS_H = options.h options.icc $(TRACE_H)
90 LIST_NODE_H = list-node.h $(VECTORS_H)
91 KEY_LIST_H = key-list.h $(LIST_NODE_H) $(VECTORS_H) $(READ_LINE_H)
92 ITERATOR_H = iterator.h
93 HASH_TABLE_H = hash-table.h $(LIST_NODE_H)
94 BOOL_ARRAY_H = bool-array.h bool-array.icc $(TRACE_H) $(OPTIONS_H)
95 GEN_PERF_H = gen-perf.h $(KEY_LIST_H) $(BOOL_ARRAY_H)
97 bool-array.o : bool-array.cc $(BOOL_ARRAY_H) $(OPTIONS_H) $(TRACE_H)
98 $(CXX) $(CXXFLAGS) $(CPPFLAGS) -c $(srcdir)/bool-array.cc
99 gen-perf.o : gen-perf.cc $(GEN_PERF_H) $(OPTIONS_H) $(TRACE_H)
100 $(CXX) $(CXXFLAGS) $(CPPFLAGS) -c $(srcdir)/gen-perf.cc
101 hash-table.o : hash-table.cc $(HASH_TABLE_H) $(OPTIONS_H) $(TRACE_H)
102 $(CXX) $(CXXFLAGS) $(CPPFLAGS) -c $(srcdir)/hash-table.cc
103 iterator.o : iterator.cc $(ITERATOR_H) $(TRACE_H)
104 $(CXX) $(CXXFLAGS) $(CPPFLAGS) -c $(srcdir)/iterator.cc
105 key-list.o : key-list.cc $(KEY_LIST_H) $(OPTIONS_H) $(READ_LINE_H) $(HASH_TABLE_H) $(TRACE_H) $(VERSION_H)
106 $(CXX) $(CXXFLAGS) $(CPPFLAGS) -c $(srcdir)/key-list.cc
107 list-node.o : list-node.cc $(LIST_NODE_H) $(OPTIONS_H) $(TRACE_H)
108 $(CXX) $(CXXFLAGS) $(CPPFLAGS) -c $(srcdir)/list-node.cc
109 main.o : main.cc $(OPTIONS_H) $(GEN_PERF_H) $(TRACE_H) $(CONFIG_H)
110 $(CXX) $(CXXFLAGS) $(CPPFLAGS) -c $(srcdir)/main.cc
111 new.o : new.cc $(TRACE_H) $(CONFIG_H)
112 $(CXX) $(CXXFLAGS) $(CPPFLAGS) -c $(srcdir)/new.cc
113 options.o : options.cc $(OPTIONS_H) $(ITERATOR_H) $(TRACE_H) $(VECTORS_H) $(VERSION_H)
114 $(CXX) $(CXXFLAGS) $(CPPFLAGS) -c $(srcdir)/options.cc
115 read-line.o : read-line.cc $(READ_LINE_H) $(OPTIONS_H) $(TRACE_H)
116 $(CXX) $(CXXFLAGS) $(CPPFLAGS) -c $(srcdir)/read-line.cc
117 trace.o : trace.cc $(TRACE_H)
118 $(CXX) $(CXXFLAGS) $(CPPFLAGS) -c $(srcdir)/trace.cc
119 vectors.o : vectors.cc $(VECTORS_H)
120 $(CXX) $(CXXFLAGS) $(CPPFLAGS) -c $(srcdir)/vectors.cc
121 version.o : version.cc $(VERSION_H)
122 $(CXX) $(CXXFLAGS) $(CPPFLAGS) -c $(srcdir)/version.cc
125 $(MKINSTALLDIRS) $(DESTDIR)$(bindir)
126 $(INSTALL_PROGRAM) $(TARGETPROG) $(DESTDIR)$(bindir)/$(TARGETPROG)
129 $(MKINSTALLDIRS) $(DESTDIR)$(bindir)
132 $(RM) $(DESTDIR)$(bindir)/$(TARGETPROG)
139 $(RM) *~ *.s *.o *.a $(TARGETPROG) core
142 $(RM) config.status config.log config.cache Makefile config.h
144 maintainer-clean : distclean