source: trunk/gsdl/packages/mg/lib/Makefile.in@ 439

Last change on this file since 439 was 439, checked in by sjboddie, 25 years ago

renamed mg-1.3d directory mg

  • Property svn:executable set to *
  • Property svn:keywords set to Author Date Id Revision
File size: 4.4 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@
36CPPFLAGS = @CPPFLAGS@
37DEFS = @DEFS@
38RANLIB = @RANLIB@
39
40##########################################
41# Uncomment for compiling for the nzdl project
42#
43CFLAGS = @CFLAGS@ -DQUIET
44##########################################
45
46
47prefix = @prefix@
48datadir = $(prefix)/share
49localedir = $(datadir)/locale
50
51COMPILE = $(CC) -c $(DEFS) $(INCLUDES) $(CPPFLAGS) $(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$(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
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 gmalloc$o random$o simplefrenchstem$o \
110 unitool$o
111# regex$o rx$o
112
113DISTFILES = Makefile.in $(HEADERS) $(SOURCES)
114
115all : libmg.a
116
117libmg.a : $(OBJECTS)
118 rm -f libmg.a
119 $(AR) cru libmg.a $(OBJECTS)
120 $(RANLIB) libmg.a
121
122$(OBJECTS): ../config.h
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 libmg.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
151Makefile: Makefile.in ../config.status
152 cd .. && CONFIG_FILES=$(subdir)/$@ CONFIG_HEADERS= ./config.status
153
154# Tell versions [3.59,3.63) of GNU make not to export all variables.
155# Otherwise a system limit (for SysV at least) may be exceeded.
156.NOEXPORT:
Note: See TracBrowser for help on using the repository browser.