source: main/branches/64_bit_Greenstone/greenstone2/common-src/indexers/mgpp/lib/Makefile.in@ 23508

Last change on this file since 23508 was 23508, checked in by sjm84, 13 years ago

Committing 64 bit changes into the branch

  • 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
33
34AR = ar
35CC = @CC@
36CXX = @CXX@
37ifneq ($(NZDL), 1)
38CFLAGS = @CFLAGS@ -ansi -fPIC
39else
40CFLAGS = @CFLAGS@ -ansi -fPIC -DSILENT
41endif
42CXXFLAGS = @CXXFLAGS@ -fPIC
43DEFS = @DEFS@
44RANLIB = @RANLIB@
45
46exec_prefix = @exec_prefix@
47prefix = @prefix@
48libdir = @libdir@
49datadir = $(prefix)/share
50localedir = $(datadir)/locale
51
52COMPILE = $(CC) -c $(DEFS) $(INCLUDES) $(CFLAGS)
53CXXCOMPILE = $(CXX) -c $(DEFS) $(INCLUDES) $(CXXFLAGS)
54
55.SUFFIXES:
56.SUFFIXES: .c .o
57.c.o:
58 $(COMPILE) $<
59
60.SUFFIXES: .cpp .o
61.cpp.o:
62 $(COMPILE) -D__cplusplus $<
63
64ANSI2KNR = @ANSI2KNR@
65o = .@U@o
66
67.SUFFIXES: ._c ._o
68.c._c:
69 ./ansi2knr $< > $*.tmp && mv $*.tmp $@
70._c._o:
71 @echo $(COMPILE) $<
72 @rm -f _$*.c
73 @ln $< _$*.c && $(COMPILE) _$*.c && mv _$*.o $@ && rm _$*.c
74.c._o:
75 ./ansi2knr $< > $*.tmp && mv $*.tmp $*._c
76 @echo $(COMPILE) $*._c
77 @rm -f _$*.c
78 @ln $*._c _$*.c && $(COMPILE) _$*.c && mv _$*.o $@ && rm _$*.c
79
80INCLUDES = -I.. -I$(srcdir)
81
82HEADERS = \
83 bitio_m_random.h local_strings.h lovinstem.h \
84 bitio_m_stdio.h memlib.h netorder.h \
85 bitio_gen.h mgheap.h messages.h \
86 bitio_m.h huffman.h \
87 bitio_m_mem.h perf_hash.h \
88 bitio_m_mems.h \
89 pathmax.h getpagesize.h sysfuncs.h bitio_m_abstract.h \
90 random.h simplefrenchstem.h unitool.h longlong.h \
91 non_ansi.h
92
93
94SOURCES = \
95 mgheap.cpp \
96 huffman.cpp messages.cpp \
97 bitio_gen.cpp perf_hash.cpp \
98 local_strings.cpp lovinstem.cpp \
99 bitio_m_mem.cpp bitio_m_stdio.cpp bitio_m_mems.cpp \
100 alloca.c xmalloc.c strstr.cpp \
101 ftruncate.cpp strcasecmp.cpp random.cpp \
102 simplefrenchstem.cpp unitool.cpp bitio_m_random.cpp \
103 bitio_m_abstract.cpp
104# memlib.cpp removed
105
106OBJECTS = mgheap$o \
107 huffman$o messages$o \
108 bitio_gen$o perf_hash$o \
109 local_strings$o lovinstem$o \
110 bitio_m_mem$o bitio_m_stdio$o bitio_m_mems$o \
111 xmalloc$o bitio_m_random$o bitio_m_abstract$o \
112 random$o simplefrenchstem$o \
113 unitool$o
114
115DISTFILES = Makefile.in $(HEADERS) $(SOURCES)
116
117all : libmgpplib.a
118
119libmgpplib.a : $(OBJECTS)
120 rm -f libmgpplib.a
121 $(AR) cru libmgpplib.a $(OBJECTS)
122 $(RANLIB) libmgpplib.a
123
124install:
125installdirs:
126uninstall:
127execinstall:
128execuninstall:
129maninstall:
130manuninstall:
131
132dist: $(DISTFILES)
133 for file in $(DISTFILES); do \
134 ln $$file $(distdir) 2> /dev/null \
135 || cp -p $$file $(distdir); \
136 done
137
138mostlyclean:
139 rm -f *.o *_.o
140
141clean: mostlyclean
142 rm -f libmgpplib.a
143
144distclean: clean
145 rm -f Makefile
146
147maintainer-clean: distclean
148 @echo "This command is intended only for maintainers to use;"
149 @echo "rebuilding the deleted files may require special tools."
150
151# breaks make distclean (jrm21)
152#Makefile: Makefile.in ../../../config.status
153# cd ../../.. && CONFIG_FILES=$(subdir)/$@ CONFIG_HEADERS= ./config.status
154
155# Tell versions [3.59,3.63) of GNU make not to export all variables.
156# Otherwise a system limit (for SysV at least) may be exceeded.
157.NOEXPORT:
Note: See TracBrowser for help on using the repository browser.