Debian Codegraph @

src/Makefile.in

raw
1 # Makefile for gperf/src
2
3 # Copyright (C) 1989, 1992-1993, 1998, 2000, 2002-2003, 2006, 2009, 2012, 2020, 2025 Free Software Foundation, Inc.
4 # Written by Douglas C. Schmidt <[email protected]>
5 # and Bruno Haible <[email protected]>.
6 #
7 # This file is part of GNU GPERF.
8 #
9 # This program 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 3 of the License, or
12 # (at your option) any later version.
13 #
14 # This program 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.
18 #
19 # You should have received a copy of the GNU General Public License
20 # along with this program. If not, see <https://www.gnu.org/licenses/>.
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 # Both C and C++ compiler
43 LDFLAGS = @LDFLAGS@
44 OBJEXT = @OBJEXT@
45 EXEEXT = @EXEEXT@
46 # Other
47 MV = mv
48 LN = ln
49 RM = rm -f
50 @SET_MAKE@
51
52 # Programs used by "make install":
53 INSTALL = @INSTALL@
54 INSTALL_PROGRAM = @INSTALL_PROGRAM@
55 INSTALL_DATA = @INSTALL_DATA@
56 MKINSTALLDIRS = $(SHELL) $(srcdir)/../build-aux/mkinstalldirs
57
58 #### End of system configuration section. ####
59
60 SHELL = /bin/sh
61
62 VPATH = $(srcdir)
63
64 OBJECTS = \
65 version.$(OBJEXT) \
66 positions.$(OBJEXT) \
67 options.$(OBJEXT) \
68 keyword.$(OBJEXT) \
69 keyword-list.$(OBJEXT) \
70 input.$(OBJEXT) \
71 arraylist.$(OBJEXT) \
72 bool-array.$(OBJEXT) \
73 hash-table.$(OBJEXT) \
74 search.$(OBJEXT) \
75 output.$(OBJEXT) \
76 main.$(OBJEXT)
77 LIBS = ../lib/libgp.a @GPERF_LIBM@
78 CPPFLAGS = @CPPFLAGS@ \
79 -I. -I$(srcdir) \
80 -I../lib -I$(srcdir)/../lib
81
82 TARGETPROG = gperf$(EXEEXT)
83
84 all : $(TARGETPROG)
85
86 $(TARGETPROG): $(OBJECTS)
87 $(CXX) $(CXXFLAGS) $(LDFLAGS) -o $@ $(OBJECTS) $(LIBS)
88
89 # Don't use implicit rules, since AIX "make" and OSF/1 "make" don't always
90 # expand $< correctly in this context.
91 #
92 #%.o : %.c
93 # $(CC) $(CFLAGS) $(CPPFLAGS) -c $<
94 #
95 #%.o : %.cc
96 # $(CXX) $(CXXFLAGS) $(CPPFLAGS) -c $<
97
98 # Dependencies.
99 CONFIG_H = config.h
100 VERSION_H = version.h
101 POSITIONS_H = positions.h positions.icc
102 OPTIONS_H = options.h options.icc $(POSITIONS_H)
103 KEYWORD_H = keyword.h keyword.icc
104 KEYWORD_LIST_H = keyword-list.h keyword-list.icc $(KEYWORD_H)
105 INPUT_H = input.h $(KEYWORD_LIST_H)
106 ARRAYLIST_H = arraylist.h
107 BOOL_ARRAY_H = bool-array.h bool-array.icc $(OPTIONS_H)
108 HASH_TABLE_H = hash-table.h $(KEYWORD_H)
109 SEARCH_H = search.h $(KEYWORD_LIST_H) $(POSITIONS_H) $(BOOL_ARRAY_H)
110 OUTPUT_H = output.h $(KEYWORD_LIST_H) $(POSITIONS_H)
111
112 version.$(OBJEXT): version.cc $(CONFIG_H) $(VERSION_H)
113 $(CXX) $(CXXFLAGS) $(CPPFLAGS) -c $(srcdir)/version.cc
114 positions.$(OBJEXT): positions.cc $(CONFIG_H) $(POSITIONS_H)
115 $(CXX) $(CXXFLAGS) $(CPPFLAGS) -c $(srcdir)/positions.cc
116 options.$(OBJEXT): options.cc $(CONFIG_H) $(OPTIONS_H) $(VERSION_H)
117 $(CXX) $(CXXFLAGS) $(CPPFLAGS) -c $(srcdir)/options.cc
118 keyword.$(OBJEXT): keyword.cc $(CONFIG_H) $(KEYWORD_H) $(POSITIONS_H)
119 $(CXX) $(CXXFLAGS) $(CPPFLAGS) -c $(srcdir)/keyword.cc
120 keyword-list.$(OBJEXT): keyword-list.cc $(CONFIG_H) $(KEYWORD_LIST_H)
121 $(CXX) $(CXXFLAGS) $(CPPFLAGS) -c $(srcdir)/keyword-list.cc
122 input.$(OBJEXT): input.cc $(CONFIG_H) $(INPUT_H) $(OPTIONS_H)
123 $(CXX) $(CXXFLAGS) $(CPPFLAGS) -c $(srcdir)/input.cc
124 arraylist.$(OBJEXT): arraylist.cc $(CONFIG_H) $(ARRAYLIST_H)
125 $(CXX) $(CXXFLAGS) $(CPPFLAGS) -c $(srcdir)/arraylist.cc
126 bool-array.$(OBJEXT): bool-array.cc $(CONFIG_H) $(BOOL_ARRAY_H) $(OPTIONS_H)
127 $(CXX) $(CXXFLAGS) $(CPPFLAGS) -c $(srcdir)/bool-array.cc
128 hash-table.$(OBJEXT): hash-table.cc $(CONFIG_H) $(HASH_TABLE_H) $(OPTIONS_H)
129 $(CXX) $(CXXFLAGS) $(CPPFLAGS) -c $(srcdir)/hash-table.cc
130 search.$(OBJEXT): search.cc $(CONFIG_H) $(SEARCH_H) $(OPTIONS_H) $(HASH_TABLE_H) $(ARRAYLIST_H)
131 $(CXX) $(CXXFLAGS) $(CPPFLAGS) -c $(srcdir)/search.cc
132 output.$(OBJEXT): output.cc $(CONFIG_H) $(OUTPUT_H) $(OPTIONS_H) $(VERSION_H)
133 $(CXX) $(CXXFLAGS) $(CPPFLAGS) -c $(srcdir)/output.cc
134 main.$(OBJEXT): main.cc $(CONFIG_H) $(OPTIONS_H) $(INPUT_H) $(SEARCH_H) $(OUTPUT_H)
135 $(CXX) $(CXXFLAGS) $(CPPFLAGS) -c $(srcdir)/main.cc
136
137 install : all force
138 $(MKINSTALLDIRS) $(DESTDIR)$(bindir)
139 $(INSTALL_PROGRAM) $(TARGETPROG) $(DESTDIR)$(bindir)/$(TARGETPROG)
140
141 installdirs : force
142 $(MKINSTALLDIRS) $(DESTDIR)$(bindir)
143
144 uninstall : force
145 $(RM) $(DESTDIR)$(bindir)/$(TARGETPROG)
146
147 check : all
148
149 mostlyclean : clean
150
151 clean : force
152 $(RM) *~ *.s *.$(OBJEXT) *.a $(TARGETPROG) $(TARGETPROG).manifest core
153
154 distclean : clean
155 $(RM) config.status config.log config.cache Makefile config.h
156
157 maintainer-clean : distclean
158
159 # List of source files.
160 SOURCE_FILES = \
161 configure.ac Makefile.in \
162 version.cc $(VERSION_H) \
163 positions.cc $(POSITIONS_H) \
164 options.cc $(OPTIONS_H) \
165 keyword.cc $(KEYWORD_H) \
166 keyword-list.cc $(KEYWORD_LIST_H) \
167 input.cc $(INPUT_H) \
168 arraylist.cc $(ARRAYLIST_H) \
169 bool-array.cc $(BOOL_ARRAY_H) \
170 hash-table.cc $(HASH_TABLE_H) \
171 search.cc $(SEARCH_H) \
172 output.cc $(OUTPUT_H) \
173 main.cc
174 # List of distributed files imported from other packages.
175 IMPORTED_FILES =
176 # List of distributed files generated by autotools or Makefile.devel.
177 GENERATED_FILES = \
178 configure config.h.in
179 # List of distributed files generated by "make".
180 DISTRIBUTED_BUILT_FILES =
181 # List of distributed files.
182 DISTFILES = $(SOURCE_FILES) $(IMPORTED_FILES) $(GENERATED_FILES) $(DISTRIBUTED_BUILT_FILES)
183
184 distdir : $(DISTFILES)
185 for file in $(DISTFILES); do \
186 if test -f $$file; then dir='.'; else dir='$(srcdir)'; fi; \
187 cp -p $$dir/$$file '$(distdir)'/$$file || exit 1; \
188 done
189
190 force :