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