source: tags/greenstone-3_01-distribution/indexers/mgpp/lib/Makefile.in@ 10896

Last change on this file since 10896 was 10896, checked in by (none), 18 years ago

This commit was manufactured by cvs2svn to create tag
'greenstone-3_01-distribution'.

  • Property svn:keywords set to Author Date Id Revision
File size: 4.1 KB
Line 
1###########################################################################
2#
3# Makefile.in -- Makefile for the general purpose library
4# Copyright (C) 1994 Neil Sharman; (C) 1995 Tim Shimmin
5#
6# This program is free software; you can redistribute it and/or modify
7# it under the terms of the GNU General Public License as published by
8# the Free Software Foundation; either version 2 of the License, or
9# (at your option) any later version.
10#
11# This program is distributed in the hope that it will be useful,
12# but WITHOUT ANY WARRANTY; without even the implied warranty of
13# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14# GNU General Public License for more details.
15#
16# You should have received a copy of the GNU General Public License
17# along with this program; if not, write to the Free Software
18# Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
19#
20# @(#)Makefile.in 1.3 16 Mar 1994
21#
22###########################################################################
23
24
25PACKAGE = @PACKAGE@
26VERSION = @VERSION@
27
28SHELL = /bin/sh
29srcdir = @srcdir@
30subdir = lib
31VPATH = @srcdir@
32
33AR = ar
34CC = @CC@
35CXX = @CXX@
36ifneq ($(NZDL), 1)
37CFLAGS = @CFLAGS@ -ansi
38else
39CFLAGS = @CFLAGS@ -ansi -DSILENT
40endif
41CXXFLAGS = @CXXFLAGS@
42DEFS = @DEFS@
43RANLIB = @RANLIB@
44
45exec_prefix = @exec_prefix@
46prefix = @prefix@
47libdir = @libdir@
48datadir = $(prefix)/share
49localedir = $(datadir)/locale
50
51COMPILE = $(CC) -c $(DEFS) $(INCLUDES) $(CFLAGS)
52CXXCOMPILE = $(CXX) -c $(DEFS) $(INCLUDES) $(CXXFLAGS)
53
54.SUFFIXES:
55.SUFFIXES: .c .o
56.c.o:
57 $(COMPILE) $<
58
59.SUFFIXES: .cpp .o
60.cpp.o:
61 $(COMPILE) -D__cplusplus $<
62
63ANSI2KNR = @ANSI2KNR@
64o = .@U@o
65
66.SUFFIXES: ._c ._o
67.c._c:
68 ./ansi2knr $< > $*.tmp && mv $*.tmp $@
69._c._o:
70 @echo $(COMPILE) $<
71 @rm -f _$*.c
72 @ln $< _$*.c && $(COMPILE) _$*.c && mv _$*.o $@ && rm _$*.c
73.c._o:
74 ./ansi2knr $< > $*.tmp && mv $*.tmp $*._c
75 @echo $(COMPILE) $*._c
76 @rm -f _$*.c
77 @ln $*._c _$*.c && $(COMPILE) _$*.c && mv _$*.o $@ && rm _$*.c
78
79INCLUDES = -I.. -I$(srcdir)
80
81HEADERS = \
82 bitio_m_random.h local_strings.h lovinstem.h \
83 bitio_m_stdio.h memlib.h netorder.h \
84 bitio_gen.h mgheap.h messages.h \
85 bitio_m.h huffman.h \
86 bitio_m_mem.h perf_hash.h \
87 bitio_m_mems.h \
88 pathmax.h getpagesize.h sysfuncs.h bitio_m_abstract.h \
89 random.h simplefrenchstem.h unitool.h longlong.h \
90 non_ansi.h
91
92
93SOURCES = \
94 mgheap.cpp \
95 huffman.cpp messages.cpp \
96 bitio_gen.cpp perf_hash.cpp \
97 local_strings.cpp lovinstem.cpp \
98 bitio_m_mem.cpp bitio_m_stdio.cpp bitio_m_mems.cpp \
99 alloca.c xmalloc.c strstr.cpp \
100 ftruncate.cpp strcasecmp.cpp random.cpp \
101 simplefrenchstem.cpp unitool.cpp bitio_m_random.cpp \
102 bitio_m_abstract.cpp
103# memlib.cpp removed
104
105OBJECTS = mgheap$o \
106 huffman$o messages$o \
107 bitio_gen$o perf_hash$o \
108 local_strings$o lovinstem$o \
109 bitio_m_mem$o bitio_m_stdio$o bitio_m_mems$o \
110 xmalloc$o bitio_m_random$o bitio_m_abstract$o \
111 random$o simplefrenchstem$o \
112 unitool$o
113
114DISTFILES = Makefile.in $(HEADERS) $(SOURCES)
115
116all : libmgpplib.a
117
118libmgpplib.a : $(OBJECTS)
119 rm -f libmgpplib.a
120 $(AR) cru libmgpplib.a $(OBJECTS)
121 $(RANLIB) libmgpplib.a
122
123install:
124installdirs:
125uninstall:
126execinstall:
127execuninstall:
128maninstall:
129manuninstall:
130
131dist: $(DISTFILES)
132 for file in $(DISTFILES); do \
133 ln $$file $(distdir) 2> /dev/null \
134 || cp -p $$file $(distdir); \
135 done
136
137mostlyclean:
138 rm -f *.o *_.o
139
140clean: mostlyclean
141 rm -f libmgpplib.a
142
143distclean: clean
144 rm -f Makefile
145
146maintainer-clean: distclean
147 @echo "This command is intended only for maintainers to use;"
148 @echo "rebuilding the deleted files may require special tools."
149
150# breaks make distclean (jrm21)
151#Makefile: Makefile.in ../../../config.status
152# cd ../../.. && CONFIG_FILES=$(subdir)/$@ CONFIG_HEADERS= ./config.status
153
154# Tell versions [3.59,3.63) of GNU make not to export all variables.
155# Otherwise a system limit (for SysV at least) may be exceeded.
156.NOEXPORT:
Note: See TracBrowser for help on using the repository browser.