source: trunk/gsdl/src/mgpp/lib/Makefile.in@ 860

Last change on this file since 860 was 860, checked in by rjmcnab, 22 years ago

Fixed a couple of bugs and made building silent if needed.

  • 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@
35CPP = @CXX@
36ifneq ($(NZDL), 1)
37CFLAGS = @CFLAGS@ -ansi
38else
39CFLAGS = @CFLAGS@ -ansi -DSILENT
40endif
41CPPFLAGS = @CPPFLAGS@
42DEFS = @DEFS@
43RANLIB = @RANLIB@
44
45prefix = @prefix@
46datadir = $(prefix)/share
47localedir = $(datadir)/locale
48
49COMPILE = $(CC) -c $(DEFS) $(INCLUDES) $(CPPFLAGS) $(CFLAGS)
50CPPCOMPILE = $(CPP) -c $(DEFS) $(INCLUDES) $(CPPFLAGS) $(CFLAGS)
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
77
78INCLUDES = -I.. -I$(srcdir)
79
80HEADERS = \
81 bitio_m_random.h local_strings.h lovinstem.h \
82 bitio_m_stdio.h getopt.h memlib.h netorder.h \
83 bitio_gen.h mgheap.h messages.h \
84 bitio_m.h huffman.h \
85 bitio_m_mem.h perf_hash.h \
86 bitio_m_mems.h \
87 pathmax.h getpagesize.h sysfuncs.h bitio_m_abstract.h \
88 random.h simplefrenchstem.h unitool.h longlong.h \
89 non_ansi.h
90
91
92SOURCES = \
93 mgheap.cpp memlib.cpp \
94 huffman.cpp messages.cpp \
95 bitio_gen.cpp perf_hash.cpp \
96 getopt.cpp \
97 getopt1.cpp 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 gmalloc.c ftruncate.cpp strcasecmp.cpp random.cpp \
101 simplefrenchstem.cpp unitool.cpp bitio_m_random.cpp \
102 bitio_m_abstract.cpp
103
104OBJECTS = mgheap$o memlib$o \
105 huffman$o messages$o \
106 bitio_gen$o perf_hash$o \
107 getopt$o \
108 getopt1$o 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 gmalloc$o random$o simplefrenchstem$o \
112 unitool$o
113
114DISTFILES = Makefile.in $(HEADERS) $(SOURCES)
115
116all : libmg.a
117
118libmg.a : $(OBJECTS)
119 rm -f libmg.a
120 $(AR) cru libmg.a $(OBJECTS)
121 $(RANLIB) libmg.a
122
123$(OBJECTS): ../config.h
124
125install:
126installdirs:
127uninstall:
128execinstall:
129execuninstall:
130maninstall:
131manuninstall:
132
133dist: $(DISTFILES)
134 for file in $(DISTFILES); do \
135 ln $$file $(distdir) 2> /dev/null \
136 || cp -p $$file $(distdir); \
137 done
138
139mostlyclean:
140 rm -f *.o *_.o
141
142clean: mostlyclean
143 rm -f libmg.a
144
145distclean: clean
146 rm -f Makefile
147
148maintainer-clean: distclean
149 @echo "This command is intended only for maintainers to use;"
150 @echo "rebuilding the deleted files may require special tools."
151
152Makefile: 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.