Merge from vendor branch BINUTILS:
[dragonfly.git] / contrib / gperf / lib / Makefile.in
1 # Makefile for gperf/lib
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
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 # Other
42 AR = ar
43 AR_FLAGS = rc
44 RANLIB = @RANLIB@
45 MV = mv
46 LN = ln
47 RM = rm -f
48 @SET_MAKE@
49
50 # Programs used by "make install":
51 INSTALL = @INSTALL@
52 INSTALL_PROGRAM = @INSTALL_PROGRAM@
53 INSTALL_DATA = @INSTALL_DATA@
54
55 #### End of system configuration section. ####
56
57 SHELL = /bin/sh
58
59 VPATH = $(srcdir)
60
61 OBJECTS  = getopt.o getopt1.o hash.o
62 CPPFLAGS = -I$(srcdir)
63
64 TARGETLIB = libgp.a
65
66 all : $(TARGETLIB)
67
68 $(TARGETLIB): $(OBJECTS)
69         $(RM) $@
70         $(AR) $(AR_FLAGS) $@ $(OBJECTS)
71         $(RANLIB) $@
72
73 # Don't use implicit rules, since AIX "make" and OSF/1 "make" don't always
74 # expand $< correctly in this context.
75 #
76 #%.o : %.c
77 #       $(CC) $(CFLAGS) $(CPPFLAGS) -c $<
78 #
79 #%.o : %.cc
80 #       $(CXX) $(CXXFLAGS) $(CPPFLAGS) -c $<
81
82 getopt.o : getopt.c getopt.h
83         $(CC) $(CFLAGS) $(CPPFLAGS) -c $(srcdir)/getopt.c
84
85 getopt1.o : getopt1.c getopt.h
86         $(CC) $(CFLAGS) $(CPPFLAGS) -c $(srcdir)/getopt1.c
87
88 hash.o : hash.cc hash.h
89         $(CXX) $(CXXFLAGS) $(CPPFLAGS) -c $(srcdir)/hash.cc
90
91 install : all
92
93 installdirs :
94
95 uninstall :
96
97 check : all
98
99 mostlyclean : clean
100
101 clean : force
102         $(RM) *~ *.s *.o *.a $(TARGETLIB) core
103
104 distclean : clean
105         $(RM) config.status config.log config.cache Makefile
106
107 maintainer-clean : distclean
108
109 force :