source: trunk/indexers/mg/src/images/Makefile.in@ 10813

Last change on this file since 10813 was 10813, checked in by kjdon, 18 years ago

changed bindir=../../../../bin to bindir=${exec_prefix}/bin

  • Property svn:executable set to *
  • Property svn:keywords set to Author Date Id Revision
File size: 5.6 KB
Line 
1###########################################################################
2#
3# Makefile.in -- Makefile for the MG system
4# Copyright (C) 1994 Neil Sharman
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.10 22 Mar 1994
21#
22###########################################################################
23
24PACKAGE = @PACKAGE@
25VERSION = @VERSION@
26
27SHELL = /bin/sh
28VPATH = @srcdir@
29exec_prefix = @exec_prefix@
30prefix = @prefix@
31srcdir = @srcdir@
32subdir = src/images
33top_srcdir = @top_srcdir@
34transform = @program_transform_name@
35
36CC = @CC@
37CFLAGS = @CFLAGS@
38CPPFLAGS = @CPPFLAGS@
39DEFS = @DEFS@
40INSTALL = @INSTALL@
41INSTALL_DATA = @INSTALL_DATA@
42INSTALL_PROGRAM = @INSTALL_PROGRAM@
43LDFLAGS = @LDFLAGS@
44LIBS = ../../lib/libmg.a @LIBS@
45GSDLOS = @gsdlos@
46TOUCH = echo timestamp >
47
48bindir = $(exec_prefix)/bin
49datadir = $(prefix)/share
50libexecdir = $(exec_prefix)/libexec
51localedir = $(datadir)/locale
52mandir = $(prefix)/man/man1
53
54COMPILE = $(CC) -c $(DEFS) $(INCLUDES) $(CPPFLAGS) $(CFLAGS)
55LINK = $(CC) $(LDFLAGS) -o $@
56
57.SUFFIXES:
58.SUFFIXES: .c .o
59.c.o:
60 $(COMPILE) $<
61
62
63ANSI2KNR = @ANSI2KNR@
64o = .@U@o
65
66.SUFFIXES: ._c ._o
67.c._c:
68 ./ansi2knr $< > $*.tmp && mv $*.tmp $@
69._c._o:
70 @echo $(COMPILE) $<
71 @rm -f _$*.c
72 @ln $< _$*.c && $(COMPILE) _$*.c && mv _$*.o $@ && rm _$*.c
73.c._o:
74 ./ansi2knr $< > $*.tmp && mv $*.tmp $*._c
75 @echo $(COMPILE) $*._c
76 @rm -f _$*.c
77 @ln $*._c _$*.c && $(COMPILE) _$*.c && mv _$*.o $@ && rm _$*.c
78
79INCLUDES = -I../../../.. -I../.. -I../../lib -I.
80
81
82SOURCES = \
83 arithcode.c extractor.c mgbilevel.c mgticdump.c utils.c \
84 bilevel.c felics.c mgfelics.c mgticprune.c mgticstat.c\
85 codeoffsets.c marklist.c mgtic.c pbmtools.c lstevent.c \
86 codesyms.c match.c mgticbuild.c sortmarks.c ppm.c
87
88
89
90HEADERS = \
91 arithcode.h codeoffsets.h marklist.h sortmarks.h \
92 basictypes.h codesyms.h match.h utils.h \
93 bilevel.h extractor.h pbmtools.h model.h
94
95MISC = Makefile.in
96
97ALLFILES = $(SOURCES) $(HEADERS) $(MISC) $(MAN)
98
99DISTFILES = $(ALLFILES)
100
101EXEC = mgfelics mgbilevel mgtic mgticbuild mgticprune mgticstat \
102 mgticdump
103
104MAN = mgfelics.1 mgbilevel.1 mgtic.1 mgticbuild.1 mgticprune.1 \
105 mgticstat.1 mgticdump.1
106
107# # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # #
108
109
110all: $(EXEC)
111
112
113# # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # #
114
115FELICS_OBJS = felics$o mgfelics$o utils$o
116
117mgfelics: $(FELICS_OBJS)
118 $(LINK) $(FELICS_OBJS) $(LIBS)
119
120# # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # #
121
122BILEVEL_OBJS = \
123 arithcode$o bilevel$o extractor$o marklist$o mgbilevel$o \
124 pbmtools$o utils$o
125
126mgbilevel: $(BILEVEL_OBJS)
127 $(LINK) $(BILEVEL_OBJS) $(LIBS)
128
129# # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # #
130
131TIC_OBJS = \
132 mgtic$o extractor$o marklist$o pbmtools$o utils$o match$o \
133 sortmarks$o codesyms$o ppm$o lstevent$o arithcode$o codeoffsets$o bilevel$o
134
135mgtic: $(TIC_OBJS)
136 $(LINK) $(TIC_OBJS) $(LIBS)
137
138TICBUILD_OBJS = mgticbuild$o extractor$o marklist$o pbmtools$o utils$o
139
140mgticbuild: $(TICBUILD_OBJS)
141 $(LINK) $(TICBUILD_OBJS) $(LIBS)
142
143TICPRUNE_OBJS = \
144 mgticprune$o extractor$o marklist$o pbmtools$o \
145 utils$o match$o
146
147mgticprune: $(TICPRUNE_OBJS)
148 $(LINK) $(TICPRUNE_OBJS) $(LIBS)
149
150TICSTAT_OBJS = mgticstat$o extractor$o marklist$o pbmtools$o utils$o
151
152mgticstat: $(TICSTAT_OBJS)
153 $(LINK) $(TICSTAT_OBJS) $(LIBS)
154
155TICDUMP = mgticdump$o extractor$o marklist$o pbmtools$o utils$o
156
157mgticdump: $(TICDUMP)
158 $(LINK) $(TICDUMP) $(LIBS)
159
160# # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # #
161
162ansi2knr: ansi2knr.o
163 $(LINK) ansi2knr.o $(LIBS)
164
165install: execinstall #maninstall
166uninstall: execuninstall manuninstall
167
168execinstall: $(EXEC)
169 for name in $(EXEC); do \
170 $(INSTALL_PROGRAM) $$name \
171 $(bindir)/`echo $$name | sed '$(transform)'`; \
172 done
173
174execuninstall:
175 for name in $(EXEC); do \
176 rm -f $(bindir)/`echo $$name | sed '$(transform)'`; \
177 done
178
179maninstall: $(MAN)
180 $(top_srcdir)/mkinstalldirs $(mandir); \
181 for f in $(MAN); do \
182 $(INSTALL_DATA) $$f $(mandir)/$$f ;\
183 done
184
185manuninstall: $(MAN)
186 for f in $(MAN); do \
187 rm -f $(mandir)/$$f ;\
188 done
189
190
191mostlyclean:
192 rm -f *$o _*.c _*.o *._c *._o core core.*
193
194clean: mostlyclean
195 rm -f $(EXEC)
196
197distclean: clean
198 rm -f ansi2knr
199 rm -f Makefile
200
201maintainer-clean: distclean
202 @echo "This command is intended only for maintainers to use;"
203 @echo "rebuilding the deleted files may require special tools."
204
205dist: $(DISTFILES)
206 for file in $(DISTFILES); do \
207 ln $(srcdir)/$$file $(distdir) 2> /dev/null \
208 || cp -p $(srcdir)/$$file $(distdir); \
209 done
210
211# screws up distclean (jrm21)
212#Makefile: Makefile.in ../../../../config.status
213# cd ../../../.. && CONFIG_FILES=$(subdir)/$@ CONFIG_HEADERS= ./config.status
214
215# Tell versions [3.59,3.63) of GNU make not to export all variables.
216# Otherwise a system limit (for SysV at least) may be exceeded.
217.NOEXPORT:
Note: See TracBrowser for help on using the repository browser.