source: trunk/minix/commands/i386/mtools-3.9.7/Makefile@ 20

Last change on this file since 20 was 9, checked in by Mattia Monga, 14 years ago

Minix 3.1.2a

File size: 10.8 KB
Line 
1# Generated automatically from Makefile.in by configure.
2#
3# Makefile for Mtools
4#
5# check the Configure file for some examples of device-specific setups
6# Berkeley flavors of Unix should include -DBSD in the CFLAGS. Pick
7# a lock method... either -DLOCKF, -DFLOCK, or -DFCNTL and put that
8# string in the CFLAGS line below.
9
10# User specified flags
11USERCFLAGS =
12USERLDFLAGS = -stack 11m
13USERLDLIBS =
14
15MAKEINFO = makeinfo
16TEXI2DVI = texi2dvi
17TEXI2HTML = texi2html
18
19
20# do not edit below this line
21# =============================================================================
22
23SHELL = /bin/sh
24
25top_srcdir=.
26srcdir=.
27
28prefix = /usr
29exec_prefix = ${prefix}
30bindir = ${exec_prefix}/bin
31infodir = ${prefix}/info
32mandir = ${prefix}/man
33infodir = ${prefix}/info
34sysconfdir = /etc
35
36CC = exec cc -D_MINIX
37CXX = @CXX@
38MYCFLAGS =
39MYCXXFLAGS =
40CPPFLAGS =
41HOST_ID = -DCPU_i386 -DVENDOR_pc -DOS_Minix
42DEFS = -DHAVE_CONFIG_H -DNO_CONFIG $(HOST_ID)
43
44LDFLAGS =
45LIBS =
46SHLIB =
47MACHDEPLIBS =
48LN_S = ln -s
49
50INSTALL = /usr/bin/install -cs
51INSTALL_PROGRAM = ${INSTALL}
52INSTALL_DATA = ${INSTALL} -m 644
53INSTALL_INFO =
54
55.SUFFIXES:
56.SUFFIXES: .o .c
57.SUFFIXES: .o .c
58
59MAN1 = floppyd.1 mattrib.1 mbadblocks.1 mcat.1 mcd.1 mcopy.1 mdel.1 mdeltree.1 mdir.1 \
60mdu.1 mformat.1 mkmanifest.1 mlabel.1 mmd.1 mmount.1 mmove.1 mpartition.1 \
61mrd.1 mread.1 mren.1 mshowfat.1 mtoolstest.1 mtools.1 mtype.1 mzip.1
62MAN1EXT = 1
63MAN1DIR = $(mandir)/man${MAN1EXT}
64MAN5 = mtools.5
65MAN5EXT = 5
66MAN5DIR = $(mandir)/man${MAN5EXT}
67
68# all files in this directory included in the distribution
69DIST = \
70COPYING Changelog INSTALL Makefile Makefile.in README Release.notes \
71buffer.c buffer.h codepage.c codepage.h codepages.c config.c \
72config.guess config.h.in config.log config.sub configure configure.in \
73copyfile.c devices.c devices.h dirCache.c dirCache.h directory.c direntry.c \
74expand.c fat.c \
75fat_free.c file.c file.h file_name.c file_read.c files filter.c floppyd.1 \
76floppyd.c floppyd_io.c floppyd_io.h force_io.c fs.h fsP.h \
77getopt.h hash.c htable.h init.c llong.c mainloop.c match.c mattrib.1 \
78mattrib.c mbadblocks.1 mbadblocks.c mcat.1 mcat.c mcd.1 mcd.c mcopy.1 \
79mcopy.c mdel.1 mdel.c mdeltree.1 mdir.1 mdir.c mdu.c mdu.1 mformat.1 \
80mformat.c minfo.c \
81misc.c tty.c scsi.c missFuncs.c mk_direntry.c mkmanifest.1 mkmanifest.c \
82mlabel.1 mlabel.c mmd.1 mmd.c mmount.1 mmount.c mmove.1 mmove.c \
83mpartition.1 mpartition.c mrd.1 \
84mread.1 mren.1 msdos.h mshowfat.1 mtoolstest.1 mtools.1 mtools.5 mtools.c \
85mtools.conf mtools.h mtype.1 nameclash.h patchlevel.c \
86plain_io.c plain_io.h precmd.c privileges.c scripts signal.c stream.c stream.h \
87streamcache.c streamcache.h subdir.c sysincludes.h unixdir.c todo toupper.c \
88vfat.c vfat.h xdf_io.c xdf_io.h
89
90#OBJS1 = buffer.o codepage.o codepages.o config.o copyfile.o devices.o \
91#dirCache.o directory.o direntry.o expand.o fat.o fat_free.o file.o file_name.o \
92#file_read.o filter.o floppyd_io.o force_io.o hash.o init.o llong.o match.o \
93#mainloop.o mattrib.o mbadblocks.o mcat.o mcd.o mcopy.o mdel.o mdir.o \
94#mdoctorfat.o mdu.o \
95#mformat.o minfo.o misc.o missFuncs.o mk_direntry.o mlabel.o mmd.o mmount.o \
96#mmove.o mpartition.o mshowfat.o mzip.o mtools.o patchlevel.o plain_io.o \
97#precmd.o privileges.o scsi.o signal.o stream.o streamcache.o subdir.o \
98#unixdir.o toupper.o tty.o vfat.o xdf_io.o
99
100OBJS1 = buffer.o config.o copyfile.o devices.o \
101dirCache.o directory.o direntry.o expand.o fat.o fat_free.o file.o file_name.o \
102file_read.o filter.o floppyd_io.o force_io.o hash.o init.o llong.o match.o \
103mainloop.o mattrib.o mbadblocks.o mcat.o mcd.o mcopy.o mdel.o mdir.o \
104mdoctorfat.o mdu.o \
105mformat.o minfo.o misc.o missFuncs.o mk_direntry.o mlabel.o mmd.o mmount.o \
106mmove.o mpartition.o mshowfat.o mtools.o patchlevel.o plain_io.o \
107precmd.o privileges.o scsi.o signal.o stream.o streamcache.o subdir.o \
108unixdir.o toupper.o tty.o vfat.o xdf_io.o
109
110OBJS2 = missFuncs.o mkmanifest.o misc.o patchlevel.o
111
112SRCS3 = floppyd.c
113
114OBJS4 = floppyd_installtest.o misc.o expand.o privileges.o
115
116SRCS = buffer.c codepage.c codepages.c config.c copyfile.c devices.c \
117dirCache.c directory.c direntry.c expand.c fat.c fat_free.c file.c file_name.c \
118file_read.c filter.c floppyd_io.c force_io.c hash.c init.c match.c mainloop.c \
119mattrib.c mbadblocks.c mcat.c mcd.c mcopy.c mdel.c mdir.c mdu.c mdoctorfat.c \
120mformat.c minfo.c misc.c \
121missFuncs.c mk_direntry.c mlabel.c mmd.c mmount.c mmove.c mpartition.c \
122mshowfat.c mzip.c mtools.c plain_io.c precmd.c privileges.c scsi.o \
123signal.c stream.c streamcache.c subdir.c unixdir.c toupper.c tty.o vfat.c \
124xdf_io.c mkmanifest.c
125
126
127SCRIPTS = mcheck mxtar uz tgz mcomp
128
129LINKS=mattrib mcat mcd mcopy mdel mdeltree mdir mdu mformat minfo mlabel \
130mmd mmount mmove mpartition mrd mread mren mtype mtoolstest mshowfat \
131mbadblocks mzip
132
133X_CFLAGS =
134X_LIBS =
135X_EXTRA_LIBS =
136X_PRE_LIBS =
137CFLAGS = $(CPPFLAGS) $(DEFS) $(MYCFLAGS) -I. -I. $(USERCFLAGS)
138CXXFLAGS = $(CPPFLAGS) $(DEFS) $(MYCXXFLAGS) -I. -I. $(USERCFLAGS)
139LINK = $(CC) $(LDFLAGS) $(USERLDFLAGS)
140ALLLIBS = $(USERLDLIBS) $(MACHDEPLIBS) $(SHLIB) $(LIBS)
141X_LDFLAGS = $(X_EXTRA_LIBS) $(X_LIBS) $(X_PRE_LIBS) -lXau -lX11 $(LIBS)
142X_CCFLAGS = $(X_CFLAGS) $(CFLAGS)
143
144all: mtools
145
146%.o: %.c
147 $(CC) $(CFLAGS) -c $<
148
149#%.o: %.cpp
150# $(CXX) $(CXXFLAGS) -c $<
151
152mtools: $(OBJS1)
153 $(LINK) $(OBJS1) -o $@ $(ALLLIBS)
154
155mkmanifest: $(OBJS2)
156 $(LINK) $(OBJS2) -o $@ $(ALLLIBS)
157
158floppyd.o: floppyd.c
159 $(CC) $(X_CCFLAGS) -c $<
160
161floppyd: floppyd.o
162 $(LINK) $< -o $@ $(X_LDFLAGS)
163floppyd_installtest: $(OBJS4)
164 $(LINK) $(OBJS4) -o $@ $(ALLLIBS)
165
166
167$(LINKS): mtools
168 rm -f $@ && $(LN_S) mtools $@
169
170mostlyclean:
171 -rm -f *~ *.orig *.o a.out core 2>/dev/null
172
173clean: mostlyclean
174 -rm -f mtools $(LINKS) floppyd floppyd_installtest mkmanifest *.info* *.dvi *.html 2>/dev/null
175
176
177texclean:
178 -rm mtools.aux mtools.toc mtools.log
179 -rm mtools.cps mtools.pgs mtools.vrs
180 -rm mtools.cp mtools.fn mtools.ky
181 -rm mtools.pg mtools.tp mtools.vr
182
183info: mtools.info
184%.info: %.texi
185 $(MAKEINFO) -I$(srcdir) $< --no-split --output=$@
186
187dvi: mtools.dvi
188%.dvi: %.texi
189 $(TEXI2DVI) $<
190
191ps: mtools.ps
192%.ps: %.dvi
193 dvips -f < $< > $@
194
195pdf: mtools.pdf
196%.pdf: %.ps
197 ps2pdf $< $@
198
199
200html: mtools.html mtools_toc.html
201%.html %_toc.html: %.texi
202 $(TEXI2HTML) $<
203
204# Don't cd, to avoid breaking install-sh references.
205install-info: info
206 $(top_srcdir)/mkinstalldirs $(infodir)
207 if test -f mtools.info; then \
208 for i in mtools.info*; do \
209 $(INSTALL_DATA) $$i $(infodir)/$$i; \
210 done; \
211 else \
212 for i in $(srcdir)/mtools.info*; do \
213 $(INSTALL_DATA) $$i $(infodir)/`echo $$i | sed 's|^$(srcdir)/||'`; \
214 done; \
215 fi; \
216 if [ -n "$(INSTALL_INFO)" ] ; then \
217 if [ -f $(infodir)/dir.info ] ; then \
218 $(INSTALL_INFO) $(infodir)/mtools.info $(infodir)/dir.info; \
219 fi; \
220 if [ -f $(infodir)/dir ] ; then \
221 $(INSTALL_INFO) $(infodir)/mtools.info $(infodir)/dir; \
222 fi; \
223 fi
224
225uninstall-info:
226 cd $(infodir) && rm -f mtools.info*
227
228install: $(bindir)/mtools
229
230# The manual pages are of such horrible quality that one is better off without
231# them. (Frankly this whole package is horrible.) Using -? hopefully gives
232# enough clues for use. -- kjb
233dontinstall:
234 $(MAN1DIR)/mattrib.1 $(MAN1DIR)/mbadblocks.1 \
235 $(MAN1DIR)/mcd.1 $(MAN1DIR)/mcopy.1 $(MAN1DIR)/mdel.1 \
236 $(MAN1DIR)/mdeltree.1 $(MAN1DIR)/mdir.1 $(MAN1DIR)/mdu.1 \
237 $(MAN1DIR)/mformat.1 $(MAN1DIR)/mlabel.1 \
238 $(MAN1DIR)/mmd.1 $(MAN1DIR)/mmove.1 $(MAN1DIR)/mrd.1 \
239 $(MAN1DIR)/mread.1 $(MAN1DIR)/mren.1 \
240 $(MAN1DIR)/mshowfat.1 $(MAN1DIR)/mtools.1 \
241 $(MAN1DIR)/mtype.1 $(MAN1DIR)/mzip.1
242
243$(bindir)/mtools: mtools
244 install -c $? $@
245
246$(MAN1DIR)/mattrib.1: mattrib.1
247 install -lc $? $@
248
249$(MAN1DIR)/mbadblocks.1: mbadblocks.1
250 install -lc $? $@
251
252$(MAN1DIR)/mcd.1: mcd.1
253 install -lc $? $@
254
255$(MAN1DIR)/mcopy.1: mcopy.1
256 install -lc $? $@
257
258$(MAN1DIR)/mdel.1: mdel.1
259 install -lc $? $@
260
261$(MAN1DIR)/mdeltree.1: mdeltree.1
262 install -lc $? $@
263
264$(MAN1DIR)/mdir.1: mdir.1
265 install -lc $? $@
266
267$(MAN1DIR)/mdu.1: mdu.1
268 install -lc $? $@
269
270$(MAN1DIR)/mformat.1: mformat.1
271 install -lc $? $@
272
273$(MAN1DIR)/mlabel.1: mlabel.1
274 install -lc $? $@
275
276$(MAN1DIR)/mmd.1: mmd.1
277 install -lc $? $@
278
279$(MAN1DIR)/mmove.1: mmove.1
280 install -lc $? $@
281
282$(MAN1DIR)/mrd.1: mrd.1
283 install -lc $? $@
284
285$(MAN1DIR)/mread.1: mread.1
286 install -lc $? $@
287
288$(MAN1DIR)/mren.1: mren.1
289 install -lc $? $@
290
291$(MAN1DIR)/mshowfat.1: mshowfat.1
292 install -lc $? $@
293
294$(MAN1DIR)/mtools.1: mtools.1
295 install -lc $? $@
296
297$(MAN1DIR)/mtype.1: mtype.1
298 install -lc $? $@
299
300$(MAN1DIR)/mzip.1: mzip.1
301 install -lc $? $@
302
303#install: $(bindir)/mtools install-man install-links \
304# $(bindir)/mkmanifest install-scripts install-info
305#
306#uninstall: uninstall-bin uninstall-man uninstall-links \
307# uninstall-scripts
308
309distclean: clean texclean
310 rm -f config.cache config.h config.status config.log Makefile
311maintainer-clean: distclean
312
313
314#$(bindir)/floppyd: floppyd
315# $(top_srcdir)/mkinstalldirs $(bindir)
316# $(INSTALL_PROGRAM) floppyd $(bindir)/floppyd
317#
318#$(bindir)/floppyd_installtest: floppyd_installtest
319# $(top_srcdir)/mkinstalldirs $(bindir)
320# $(INSTALL_PROGRAM) floppyd_installtest $(bindir)/floppyd_installtest
321#
322#$(bindir)/mtools: mtools
323# $(top_srcdir)/mkinstalldirs $(bindir)
324# $(INSTALL_PROGRAM) mtools $(bindir)/mtools
325#
326#$(bindir)/mkmanifest: mkmanifest
327# $(top_srcdir)/mkinstalldirs $(bindir)
328# $(INSTALL_PROGRAM) mkmanifest $(bindir)/mkmanifest
329
330#$(ETCDIR)/mtools: mtools.etc
331# cp mtools.etc $(ETCDIR)/mtools
332
333install-links: $(bindir)/mtools
334 @for j in $(LINKS); do \
335 rm -f $(bindir)/$$j ; \
336 $(LN_S) mtools $(bindir)/$$j ; \
337 echo $(bindir)/$$j ; \
338 done
339
340## "z" is the older version of "gz"; the name is just *too* short
341install-scripts: $(bindir)/mtools
342 @$(top_srcdir)/mkinstalldirs $(bindir)
343 @for j in $(SCRIPTS) ; do \
344 $(INSTALL_PROGRAM) $(srcdir)/scripts/$$j $(bindir)/$$j ; \
345 echo $(bindir)/$$j ; \
346 done
347 rm -f $(bindir)/lz
348 $(LN_S) uz $(bindir)/lz
349
350install-man:
351 @$(top_srcdir)/mkinstalldirs $(MAN1DIR)
352 @for j in $(MAN1); do \
353 $(INSTALL_DATA) $(srcdir)/$$j $(MAN1DIR)/$$j ; \
354 echo $(MAN1DIR)/$$j ; \
355 done
356 @$(top_srcdir)/mkinstalldirs $(MAN5DIR)
357 @for j in $(MAN5); do \
358 $(INSTALL_DATA) $(srcdir)/$$j $(MAN5DIR)/$$j ; \
359 echo $(MAN5DIR)/$$j ; \
360 done
361
362uninstall-bin:
363 @for j in mtools mkmanifest; do \
364 rm -f $(bindir)/$$j ; \
365 echo $(bindir)/$$j ; \
366 done
367
368uninstall-scripts:
369 @for j in $(SCRIPTS); do \
370 rm -f $(bindir)/$$j ; \
371 echo $(bindir)/$$j ; \
372 done
373
374uninstall-man:
375 @for j in $(MAN1); do \
376 rm -f $(MAN1DIR)/$$j ; \
377 echo $(MAN1DIR)/$$j ; \
378 done
379 @for j in $(MAN5); do \
380 rm -f $(MAN5DIR)/$$j ; \
381 echo $(MAN5DIR)/$$j ; \
382 done
383
384uninstall-links:
385 @for j in $(LINKS); \
386 do rm -f $(bindir)/$$j ; \
387 echo $(bindir)/$$j ; \
388 done
389
390depend: $(SRCS)
391 makedepend -- $(CFLAGS) -- $^
392
393check:
394 echo No self tests included
395# check target needed even if empty, in order to make life easyer for
396# automatic tools to install GNU soft
397
398
399# DO NOT DELETE THIS LINE -- make depend depends on it.
Note: See TracBrowser for help on using the repository browser.