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

Last change on this file since 13757 was 13757, checked in by kjdon, 17 years ago

changed teh lib names to match mgpp. changed the windows install directory. other small changes

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