Makefile.in revision 67064
1# Makefile for gperf/src
2
3# Copyright (C) 1989, 1992, 1993, 1998, 2000 Free Software Foundation, Inc.
4# written by Douglas C. Schmidt (schmidt@ics.uci.edu)
5#
6# This file is part of GNU GPERF.
7#
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)
11# any later version.
12#
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.
17#
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.
21
22#### Start of system configuration section. ####
23
24# Directories used by "make":
25srcdir = @srcdir@
26
27# Directories used by "make install":
28prefix = @prefix@
29local_prefix = /usr/local
30exec_prefix = @exec_prefix@
31bindir = @bindir@
32
33# Programs used by "make":
34# C compiler
35CC = @CC@
36CFLAGS = @CFLAGS@
37CPP = @CPP@
38# C++ compiler
39CXX = @CXX@
40CXXFLAGS = @CXXFLAGS@
41CXXCPP = @CXXCPP@
42# Both C and C++ compiler
43LDFLAGS = @LDFLAGS@
44# Other
45MV = mv
46LN = ln
47RM = rm -f
48@SET_MAKE@
49
50# Programs used by "make install":
51INSTALL = @INSTALL@
52INSTALL_PROGRAM = @INSTALL_PROGRAM@
53INSTALL_DATA = @INSTALL_DATA@
54MKINSTALLDIRS = $(SHELL) $(srcdir)/../mkinstalldirs
55
56#### End of system configuration section. ####
57
58SHELL = /bin/sh
59
60VPATH = $(srcdir)
61
62OBJECTS  = 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
64LIBS     = ../lib/libgp.a -lm
65CPPFLAGS = -I. -I$(srcdir)/../lib
66
67TARGETPROG = gperf
68
69all : $(TARGETPROG)
70
71$(TARGETPROG): $(OBJECTS)
72	$(CXX) $(CXXFLAGS) $(LDFLAGS) -o $@ $(OBJECTS) $(LIBS)
73
74# Don't use implicit rules, since AIX "make" and OSF/1 "make" don't always
75# expand $< correctly in this context.
76#
77#%.o : %.c
78#	$(CC) $(CFLAGS) $(CPPFLAGS) -c $<
79#
80#%.o : %.cc
81#	$(CXX) $(CXXFLAGS) $(CPPFLAGS) -c $<
82
83# Dependencies.
84CONFIG_H = config.h
85VERSION_H = version.h
86VECTORS_H = vectors.h
87TRACE_H = trace.h
88READ_LINE_H = read-line.h read-line.icc $(TRACE_H)
89OPTIONS_H = options.h options.icc $(TRACE_H)
90LIST_NODE_H = list-node.h $(VECTORS_H)
91KEY_LIST_H = key-list.h $(LIST_NODE_H) $(VECTORS_H) $(READ_LINE_H)
92ITERATOR_H = iterator.h
93HASH_TABLE_H = hash-table.h $(LIST_NODE_H)
94BOOL_ARRAY_H = bool-array.h bool-array.icc $(TRACE_H) $(OPTIONS_H)
95GEN_PERF_H = gen-perf.h $(KEY_LIST_H) $(BOOL_ARRAY_H)
96
97bool-array.o : bool-array.cc $(BOOL_ARRAY_H) $(OPTIONS_H) $(TRACE_H)
98	$(CXX) $(CXXFLAGS) $(CPPFLAGS) -c $(srcdir)/bool-array.cc
99gen-perf.o : gen-perf.cc $(GEN_PERF_H) $(OPTIONS_H) $(TRACE_H)
100	$(CXX) $(CXXFLAGS) $(CPPFLAGS) -c $(srcdir)/gen-perf.cc
101hash-table.o : hash-table.cc $(HASH_TABLE_H) $(OPTIONS_H) $(TRACE_H)
102	$(CXX) $(CXXFLAGS) $(CPPFLAGS) -c $(srcdir)/hash-table.cc
103iterator.o : iterator.cc $(ITERATOR_H) $(TRACE_H)
104	$(CXX) $(CXXFLAGS) $(CPPFLAGS) -c $(srcdir)/iterator.cc
105key-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
107list-node.o : list-node.cc $(LIST_NODE_H) $(OPTIONS_H) $(TRACE_H)
108	$(CXX) $(CXXFLAGS) $(CPPFLAGS) -c $(srcdir)/list-node.cc
109main.o : main.cc $(OPTIONS_H) $(GEN_PERF_H) $(TRACE_H) $(CONFIG_H)
110	$(CXX) $(CXXFLAGS) $(CPPFLAGS) -c $(srcdir)/main.cc
111new.o : new.cc $(TRACE_H) $(CONFIG_H)
112	$(CXX) $(CXXFLAGS) $(CPPFLAGS) -c $(srcdir)/new.cc
113options.o : options.cc $(OPTIONS_H) $(ITERATOR_H) $(TRACE_H) $(VECTORS_H) $(VERSION_H)
114	$(CXX) $(CXXFLAGS) $(CPPFLAGS) -c $(srcdir)/options.cc
115read-line.o : read-line.cc $(READ_LINE_H) $(OPTIONS_H) $(TRACE_H)
116	$(CXX) $(CXXFLAGS) $(CPPFLAGS) -c $(srcdir)/read-line.cc
117trace.o : trace.cc $(TRACE_H)
118	$(CXX) $(CXXFLAGS) $(CPPFLAGS) -c $(srcdir)/trace.cc
119vectors.o : vectors.cc $(VECTORS_H)
120	$(CXX) $(CXXFLAGS) $(CPPFLAGS) -c $(srcdir)/vectors.cc
121version.o : version.cc $(VERSION_H)
122	$(CXX) $(CXXFLAGS) $(CPPFLAGS) -c $(srcdir)/version.cc
123
124install : all force
125	$(MKINSTALLDIRS) $(DESTDIR)$(bindir)
126	$(INSTALL_PROGRAM) $(TARGETPROG) $(DESTDIR)$(bindir)/$(TARGETPROG)
127
128installdirs : force
129	$(MKINSTALLDIRS) $(DESTDIR)$(bindir)
130
131uninstall : force
132	$(RM) $(DESTDIR)$(bindir)/$(TARGETPROG)
133
134check : all
135
136mostlyclean : clean
137
138clean : force
139	$(RM) *~ *.s *.o *.a $(TARGETPROG) core
140
141distclean : clean
142	$(RM) config.status config.log config.cache Makefile config.h
143
144maintainer-clean : distclean
145
146force :
147