source: trunk/indexers/mgpp/lib/Makefile.in@ 3365

Last change on this file since 3365 was 3365, checked in by kjdon, 22 years ago

Initial revision

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