source: main/trunk/greenstone2/common-src/indexers/mg/lib/Makefile.in@ 25147

Last change on this file since 25147 was 25147, checked in by kjdon, 12 years ago

merged 64_bit_Greenstone branch into trunk, rev 25139

  • Property svn:executable set to *
  • Property svn:keywords set to Author Date Id Revision
File size: 4.9 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@
36CFLAGS = @CFLAGS@ -fpic
37DEFS = @DEFS@
38RANLIB = @RANLIB@
39
40##########################################
41# Uncomment for compiling for the nzdl project
42#
43CFLAGS = @CFLAGS@ -DQUIET -fpic
44##########################################
45
46
47prefix = @prefix@
48datadir = $(prefix)/share
49localedir = $(datadir)/locale
50
51COMPILE = $(CC) -c $(DEFS) $(INCLUDES) $(CFLAGS)
52
53.SUFFIXES:
54.SUFFIXES: .c .o
55.c.o:
56 $(COMPILE) $<
57
58ANSI2KNR = @ANSI2KNR@
59o = .@U@o
60
61.SUFFIXES: ._c ._o
62.c._c:
63 ./ansi2knr $< > $*.tmp && mv $*.tmp $@
64._c._o:
65 @echo $(COMPILE) $<
66 @rm -f _$*.c
67 @ln $< _$*.c && $(COMPILE) _$*.c && mv _$*.o $@ && rm _$*.c
68.c._o:
69 ./ansi2knr $< > $*.tmp && mv $*.tmp $*._c
70 @echo $(COMPILE) $*._c
71 @rm -f _$*.c
72 @ln $*._c _$*.c && $(COMPILE) _$*.c && mv _$*.o $@ && rm _$*.c
73
74
75INCLUDES = -I../../.. -I.. -I$(srcdir)
76
77HEADERS = \
78 bitio_m_random.h filestats.h local_strings.h lovinstem.h \
79 bitio_m_stdio.h getopt.h memlib.h \
80 bitio_gen.h bitio_mem.h mgheap.h messages.h \
81 bitio_m.h bitio_mems.h huffman.h timing.h \
82 bitio_m_mem.h bitio_random.h huffman_mem.h perf_hash.h \
83 bitio_m_mems.h bitio_stdio.h huffman_stdio.h sptree.h \
84 pathmax.h getpagesize.h \
85 random.h simplefrenchstem.h unitool.h longlong.h
86# regex.h rx.h
87
88
89SOURCES = \
90 bitio_random.c mgheap.c memlib.c \
91 bitio_stdio.c huffman.c messages.c \
92 bitio_gen.c filestats.c huffman_mem.c perf_hash.c \
93 bitio_mem.c getopt.c huffman_stdio.c sptree.c \
94 bitio_mems.c getopt1.c local_strings.c lovinstem.c \
95 timing.c \
96 alloca.c error.c xmalloc.c strstr.c \
97 gmalloc.c ftruncate.c strcasecmp.c random.c \
98 simplefrenchstem.c unitool.c
99# regex.c rx.c
100
101OBJECTS = @ALLOCA@ @LIBOBJS@ \
102 bitio_random$o mgheap$o memlib$o \
103 bitio_stdio$o huffman$o messages$o \
104 bitio_gen$o filestats$o huffman_mem$o perf_hash$o \
105 bitio_mem$o getopt$o huffman_stdio$o sptree$o \
106 bitio_mems$o getopt1$o local_strings$o lovinstem$o \
107 timing$o \
108 error$o xmalloc$o \
109 random$o simplefrenchstem$o \
110 unitool$o
111# gmalloc$o regex$o rx$o
112
113LIB_OBJECTS = \
114 bitio_random$o mgheap$o memlib$o \
115 bitio_stdio$o huffman$o \
116 bitio_gen$o filestats$o huffman_mem$o perf_hash$o \
117 bitio_mem$o getopt$o huffman_stdio$o sptree$o \
118 bitio_mems$o getopt1$o local_strings$o lovinstem$o \
119 timing$o \
120 error$o xmalloc$o \
121 random$o simplefrenchstem$o \
122 unitool$o
123
124
125DISTFILES = Makefile.in $(HEADERS) $(SOURCES)
126
127all : libmglib.a gsdllibmg.a
128
129libmglib.a : $(OBJECTS)
130 rm -f libmglib.a
131 $(AR) cru libmglib.a $(OBJECTS)
132 $(RANLIB) libmglib.a
133
134$(OBJECTS): ../config.h
135
136gsdllibmg.a: $(LIB_OBJECTS)
137 rm -f gsdllibmg.a
138 $(AR) cru gsdllibmg.a $(LIB_OBJECTS)
139 $(RANLIB) gsdllibmg.a
140
141
142install:
143installdirs:
144uninstall:
145execinstall:
146execuninstall:
147maninstall:
148manuninstall:
149
150dist: $(DISTFILES)
151 for file in $(DISTFILES); do \
152 ln $$file $(distdir) 2> /dev/null \
153 || cp -p $$file $(distdir); \
154 done
155
156mostlyclean:
157 rm -f *.o *_.o
158
159clean: mostlyclean
160 rm -f libmglib.a gsdllibmg.a
161
162distclean: clean
163 rm -f Makefile
164
165maintainer-clean: distclean
166 @echo "This command is intended only for maintainers to use;"
167 @echo "rebuilding the deleted files may require special tools."
168
169#Makefile: Makefile.in ../../../config.status
170# cd ../../.. && CONFIG_FILES=$(subdir)/$@ CONFIG_HEADERS= ./config.status
171
172# Tell versions [3.59,3.63) of GNU make not to export all variables.
173# Otherwise a system limit (for SysV at least) may be exceeded.
174.NOEXPORT:
Note: See TracBrowser for help on using the repository browser.