source: indexers/trunk/mg/lib/Makefile.in@ 15559

Last change on this file since 15559 was 15559, checked in by davidb, 16 years ago

Addition of COMPAT32BITFLAGS so mg and mgpp can compile on a 64-bit machine

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