| 1 |
# Makefile for gperf/lib |
| 2 |
|
| 3 |
# Copyright (C) 1989, 1992-1993, 1998, 2002, 2006, 2009, 2012, 2016 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 |
|
| 32 |
# Programs used by "make": |
| 33 |
# C compiler |
| 34 |
CC = @CC@ |
| 35 |
CFLAGS = @CFLAGS@ |
| 36 |
CPP = @CPP@ |
| 37 |
# C++ compiler |
| 38 |
CXX = @CXX@ |
| 39 |
CXXFLAGS = @CXXFLAGS@ |
| 40 |
CXXCPP = @CXXCPP@ |
| 41 |
# Both C and C++ compiler |
| 42 |
OBJEXT = @OBJEXT@ |
| 43 |
# Other |
| 44 |
AR = @AR@ |
| 45 |
AR_FLAGS = rc |
| 46 |
RANLIB = @RANLIB@ |
| 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 |
|
| 57 |
#### End of system configuration section. #### |
| 58 |
|
| 59 |
SHELL = /bin/sh |
| 60 |
|
| 61 |
VPATH = $(srcdir) |
| 62 |
|
| 63 |
OBJECTS = getopt.$(OBJEXT) getopt1.$(OBJEXT) getline.$(OBJEXT) hash.$(OBJEXT) |
| 64 |
CPPFLAGS = @CPPFLAGS@ -I$(srcdir) |
| 65 |
|
| 66 |
TARGETLIB = libgp.a |
| 67 |
|
| 68 |
all : $(TARGETLIB) |
| 69 |
|
| 70 |
$(TARGETLIB): $(OBJECTS) |
| 71 |
$(RM) $@ |
| 72 |
$(AR) $(AR_FLAGS) $@ $(OBJECTS) |
| 73 |
$(RANLIB) $@ |
| 74 |
|
| 75 |
# Don't use implicit rules, since AIX "make" and OSF/1 "make" don't always |
| 76 |
# expand $< correctly in this context. |
| 77 |
# |
| 78 |
#%.o : %.c |
| 79 |
# $(CC) $(CFLAGS) $(CPPFLAGS) -c $< |
| 80 |
# |
| 81 |
#%.o : %.cc |
| 82 |
# $(CXX) $(CXXFLAGS) $(CPPFLAGS) -c $< |
| 83 |
|
| 84 |
getopt.$(OBJEXT) : getopt.c getopt.h |
| 85 |
$(CC) $(CFLAGS) $(CPPFLAGS) -c $(srcdir)/getopt.c |
| 86 |
|
| 87 |
getopt1.$(OBJEXT) : getopt1.c getopt.h |
| 88 |
$(CC) $(CFLAGS) $(CPPFLAGS) -c $(srcdir)/getopt1.c |
| 89 |
|
| 90 |
getline.$(OBJEXT) : getline.cc getline.h |
| 91 |
$(CXX) $(CXXFLAGS) $(CPPFLAGS) -c $(srcdir)/getline.cc |
| 92 |
|
| 93 |
hash.$(OBJEXT) : hash.cc hash.h |
| 94 |
$(CXX) $(CXXFLAGS) $(CPPFLAGS) -c $(srcdir)/hash.cc |
| 95 |
|
| 96 |
install : all |
| 97 |
|
| 98 |
installdirs : |
| 99 |
|
| 100 |
uninstall : |
| 101 |
|
| 102 |
check : all |
| 103 |
|
| 104 |
mostlyclean : clean |
| 105 |
|
| 106 |
clean : force |
| 107 |
$(RM) *~ *.s *.$(OBJEXT) *.a $(TARGETLIB) core |
| 108 |
|
| 109 |
distclean : clean |
| 110 |
$(RM) config.status config.log config.cache Makefile |
| 111 |
|
| 112 |
maintainer-clean : distclean |
| 113 |
|
| 114 |
# List of source files. |
| 115 |
SOURCE_FILES = \ |
| 116 |
configure.ac Makefile.in \ |
| 117 |
getline.h getline.cc \ |
| 118 |
hash.h hash.cc \ |
| 119 |
getopt.h getopt.c getopt1.c |
| 120 |
# List of distributed files imported from other packages. |
| 121 |
IMPORTED_FILES = |
| 122 |
# List of distributed files generated by autotools or Makefile.devel. |
| 123 |
GENERATED_FILES = \ |
| 124 |
configure |
| 125 |
# List of distributed files generated by "make". |
| 126 |
DISTRIBUTED_BUILT_FILES = |
| 127 |
# List of distributed files. |
| 128 |
DISTFILES = $(SOURCE_FILES) $(IMPORTED_FILES) $(GENERATED_FILES) $(DISTRIBUTED_BUILT_FILES) |
| 129 |
|
| 130 |
distdir : $(DISTFILES) |
| 131 |
for file in $(DISTFILES); do \ |
| 132 |
if test -f $$file; then dir='.'; else dir='$(srcdir)'; fi; \ |
| 133 |
cp -p $$dir/$$file '$(distdir)'/$$file || exit 1; \ |
| 134 |
done |
| 135 |
|
| 136 |
force : |