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
|
---|
11 | USERCFLAGS =
|
---|
12 | USERLDFLAGS = -stack 11m
|
---|
13 | USERLDLIBS =
|
---|
14 |
|
---|
15 | MAKEINFO = makeinfo
|
---|
16 | TEXI2DVI = texi2dvi
|
---|
17 | TEXI2HTML = texi2html
|
---|
18 |
|
---|
19 |
|
---|
20 | # do not edit below this line
|
---|
21 | # =============================================================================
|
---|
22 |
|
---|
23 | SHELL = /bin/sh
|
---|
24 |
|
---|
25 | top_srcdir=.
|
---|
26 | srcdir=.
|
---|
27 |
|
---|
28 | prefix = /usr
|
---|
29 | exec_prefix = ${prefix}
|
---|
30 | bindir = ${exec_prefix}/bin
|
---|
31 | infodir = ${prefix}/info
|
---|
32 | mandir = ${prefix}/man
|
---|
33 | infodir = ${prefix}/info
|
---|
34 | sysconfdir = /etc
|
---|
35 |
|
---|
36 | CC = exec cc -D_MINIX
|
---|
37 | CXX = @CXX@
|
---|
38 | MYCFLAGS =
|
---|
39 | MYCXXFLAGS =
|
---|
40 | CPPFLAGS =
|
---|
41 | HOST_ID = -DCPU_i386 -DVENDOR_pc -DOS_Minix
|
---|
42 | DEFS = -DHAVE_CONFIG_H -DNO_CONFIG $(HOST_ID)
|
---|
43 |
|
---|
44 | LDFLAGS =
|
---|
45 | LIBS =
|
---|
46 | SHLIB =
|
---|
47 | MACHDEPLIBS =
|
---|
48 | LN_S = ln -s
|
---|
49 |
|
---|
50 | INSTALL = /usr/bin/install -cs
|
---|
51 | INSTALL_PROGRAM = ${INSTALL}
|
---|
52 | INSTALL_DATA = ${INSTALL} -m 644
|
---|
53 | INSTALL_INFO =
|
---|
54 |
|
---|
55 | .SUFFIXES:
|
---|
56 | .SUFFIXES: .o .c
|
---|
57 | .SUFFIXES: .o .c
|
---|
58 |
|
---|
59 | MAN1 = floppyd.1 mattrib.1 mbadblocks.1 mcat.1 mcd.1 mcopy.1 mdel.1 mdeltree.1 mdir.1 \
|
---|
60 | mdu.1 mformat.1 mkmanifest.1 mlabel.1 mmd.1 mmount.1 mmove.1 mpartition.1 \
|
---|
61 | mrd.1 mread.1 mren.1 mshowfat.1 mtoolstest.1 mtools.1 mtype.1 mzip.1
|
---|
62 | MAN1EXT = 1
|
---|
63 | MAN1DIR = $(mandir)/man${MAN1EXT}
|
---|
64 | MAN5 = mtools.5
|
---|
65 | MAN5EXT = 5
|
---|
66 | MAN5DIR = $(mandir)/man${MAN5EXT}
|
---|
67 |
|
---|
68 | # all files in this directory included in the distribution
|
---|
69 | DIST = \
|
---|
70 | COPYING Changelog INSTALL Makefile Makefile.in README Release.notes \
|
---|
71 | buffer.c buffer.h codepage.c codepage.h codepages.c config.c \
|
---|
72 | config.guess config.h.in config.log config.sub configure configure.in \
|
---|
73 | copyfile.c devices.c devices.h dirCache.c dirCache.h directory.c direntry.c \
|
---|
74 | expand.c fat.c \
|
---|
75 | fat_free.c file.c file.h file_name.c file_read.c files filter.c floppyd.1 \
|
---|
76 | floppyd.c floppyd_io.c floppyd_io.h force_io.c fs.h fsP.h \
|
---|
77 | getopt.h hash.c htable.h init.c llong.c mainloop.c match.c mattrib.1 \
|
---|
78 | mattrib.c mbadblocks.1 mbadblocks.c mcat.1 mcat.c mcd.1 mcd.c mcopy.1 \
|
---|
79 | mcopy.c mdel.1 mdel.c mdeltree.1 mdir.1 mdir.c mdu.c mdu.1 mformat.1 \
|
---|
80 | mformat.c minfo.c \
|
---|
81 | misc.c tty.c scsi.c missFuncs.c mk_direntry.c mkmanifest.1 mkmanifest.c \
|
---|
82 | mlabel.1 mlabel.c mmd.1 mmd.c mmount.1 mmount.c mmove.1 mmove.c \
|
---|
83 | mpartition.1 mpartition.c mrd.1 \
|
---|
84 | mread.1 mren.1 msdos.h mshowfat.1 mtoolstest.1 mtools.1 mtools.5 mtools.c \
|
---|
85 | mtools.conf mtools.h mtype.1 nameclash.h patchlevel.c \
|
---|
86 | plain_io.c plain_io.h precmd.c privileges.c scripts signal.c stream.c stream.h \
|
---|
87 | streamcache.c streamcache.h subdir.c sysincludes.h unixdir.c todo toupper.c \
|
---|
88 | vfat.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 |
|
---|
100 | OBJS1 = buffer.o config.o copyfile.o devices.o \
|
---|
101 | dirCache.o directory.o direntry.o expand.o fat.o fat_free.o file.o file_name.o \
|
---|
102 | file_read.o filter.o floppyd_io.o force_io.o hash.o init.o llong.o match.o \
|
---|
103 | mainloop.o mattrib.o mbadblocks.o mcat.o mcd.o mcopy.o mdel.o mdir.o \
|
---|
104 | mdoctorfat.o mdu.o \
|
---|
105 | mformat.o minfo.o misc.o missFuncs.o mk_direntry.o mlabel.o mmd.o mmount.o \
|
---|
106 | mmove.o mpartition.o mshowfat.o mtools.o patchlevel.o plain_io.o \
|
---|
107 | precmd.o privileges.o scsi.o signal.o stream.o streamcache.o subdir.o \
|
---|
108 | unixdir.o toupper.o tty.o vfat.o xdf_io.o
|
---|
109 |
|
---|
110 | OBJS2 = missFuncs.o mkmanifest.o misc.o patchlevel.o
|
---|
111 |
|
---|
112 | SRCS3 = floppyd.c
|
---|
113 |
|
---|
114 | OBJS4 = floppyd_installtest.o misc.o expand.o privileges.o
|
---|
115 |
|
---|
116 | SRCS = buffer.c codepage.c codepages.c config.c copyfile.c devices.c \
|
---|
117 | dirCache.c directory.c direntry.c expand.c fat.c fat_free.c file.c file_name.c \
|
---|
118 | file_read.c filter.c floppyd_io.c force_io.c hash.c init.c match.c mainloop.c \
|
---|
119 | mattrib.c mbadblocks.c mcat.c mcd.c mcopy.c mdel.c mdir.c mdu.c mdoctorfat.c \
|
---|
120 | mformat.c minfo.c misc.c \
|
---|
121 | missFuncs.c mk_direntry.c mlabel.c mmd.c mmount.c mmove.c mpartition.c \
|
---|
122 | mshowfat.c mzip.c mtools.c plain_io.c precmd.c privileges.c scsi.o \
|
---|
123 | signal.c stream.c streamcache.c subdir.c unixdir.c toupper.c tty.o vfat.c \
|
---|
124 | xdf_io.c mkmanifest.c
|
---|
125 |
|
---|
126 |
|
---|
127 | SCRIPTS = mcheck mxtar uz tgz mcomp
|
---|
128 |
|
---|
129 | LINKS=mattrib mcat mcd mcopy mdel mdeltree mdir mdu mformat minfo mlabel \
|
---|
130 | mmd mmount mmove mpartition mrd mread mren mtype mtoolstest mshowfat \
|
---|
131 | mbadblocks mzip
|
---|
132 |
|
---|
133 | X_CFLAGS =
|
---|
134 | X_LIBS =
|
---|
135 | X_EXTRA_LIBS =
|
---|
136 | X_PRE_LIBS =
|
---|
137 | CFLAGS = $(CPPFLAGS) $(DEFS) $(MYCFLAGS) -I. -I. $(USERCFLAGS)
|
---|
138 | CXXFLAGS = $(CPPFLAGS) $(DEFS) $(MYCXXFLAGS) -I. -I. $(USERCFLAGS)
|
---|
139 | LINK = $(CC) $(LDFLAGS) $(USERLDFLAGS)
|
---|
140 | ALLLIBS = $(USERLDLIBS) $(MACHDEPLIBS) $(SHLIB) $(LIBS)
|
---|
141 | X_LDFLAGS = $(X_EXTRA_LIBS) $(X_LIBS) $(X_PRE_LIBS) -lXau -lX11 $(LIBS)
|
---|
142 | X_CCFLAGS = $(X_CFLAGS) $(CFLAGS)
|
---|
143 |
|
---|
144 | all: mtools
|
---|
145 |
|
---|
146 | %.o: %.c
|
---|
147 | $(CC) $(CFLAGS) -c $<
|
---|
148 |
|
---|
149 | #%.o: %.cpp
|
---|
150 | # $(CXX) $(CXXFLAGS) -c $<
|
---|
151 |
|
---|
152 | mtools: $(OBJS1)
|
---|
153 | $(LINK) $(OBJS1) -o $@ $(ALLLIBS)
|
---|
154 |
|
---|
155 | mkmanifest: $(OBJS2)
|
---|
156 | $(LINK) $(OBJS2) -o $@ $(ALLLIBS)
|
---|
157 |
|
---|
158 | floppyd.o: floppyd.c
|
---|
159 | $(CC) $(X_CCFLAGS) -c $<
|
---|
160 |
|
---|
161 | floppyd: floppyd.o
|
---|
162 | $(LINK) $< -o $@ $(X_LDFLAGS)
|
---|
163 | floppyd_installtest: $(OBJS4)
|
---|
164 | $(LINK) $(OBJS4) -o $@ $(ALLLIBS)
|
---|
165 |
|
---|
166 |
|
---|
167 | $(LINKS): mtools
|
---|
168 | rm -f $@ && $(LN_S) mtools $@
|
---|
169 |
|
---|
170 | mostlyclean:
|
---|
171 | -rm -f *~ *.orig *.o a.out core 2>/dev/null
|
---|
172 |
|
---|
173 | clean: mostlyclean
|
---|
174 | -rm -f mtools $(LINKS) floppyd floppyd_installtest mkmanifest *.info* *.dvi *.html 2>/dev/null
|
---|
175 |
|
---|
176 |
|
---|
177 | texclean:
|
---|
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 |
|
---|
183 | info: mtools.info
|
---|
184 | %.info: %.texi
|
---|
185 | $(MAKEINFO) -I$(srcdir) $< --no-split --output=$@
|
---|
186 |
|
---|
187 | dvi: mtools.dvi
|
---|
188 | %.dvi: %.texi
|
---|
189 | $(TEXI2DVI) $<
|
---|
190 |
|
---|
191 | ps: mtools.ps
|
---|
192 | %.ps: %.dvi
|
---|
193 | dvips -f < $< > $@
|
---|
194 |
|
---|
195 | pdf: mtools.pdf
|
---|
196 | %.pdf: %.ps
|
---|
197 | ps2pdf $< $@
|
---|
198 |
|
---|
199 |
|
---|
200 | html: mtools.html mtools_toc.html
|
---|
201 | %.html %_toc.html: %.texi
|
---|
202 | $(TEXI2HTML) $<
|
---|
203 |
|
---|
204 | # Don't cd, to avoid breaking install-sh references.
|
---|
205 | install-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 |
|
---|
225 | uninstall-info:
|
---|
226 | cd $(infodir) && rm -f mtools.info*
|
---|
227 |
|
---|
228 | install: $(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
|
---|
233 | dontinstall:
|
---|
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 |
|
---|
309 | distclean: clean texclean
|
---|
310 | rm -f config.cache config.h config.status config.log Makefile
|
---|
311 | maintainer-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 |
|
---|
333 | install-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
|
---|
341 | install-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 |
|
---|
350 | install-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 |
|
---|
362 | uninstall-bin:
|
---|
363 | @for j in mtools mkmanifest; do \
|
---|
364 | rm -f $(bindir)/$$j ; \
|
---|
365 | echo $(bindir)/$$j ; \
|
---|
366 | done
|
---|
367 |
|
---|
368 | uninstall-scripts:
|
---|
369 | @for j in $(SCRIPTS); do \
|
---|
370 | rm -f $(bindir)/$$j ; \
|
---|
371 | echo $(bindir)/$$j ; \
|
---|
372 | done
|
---|
373 |
|
---|
374 | uninstall-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 |
|
---|
384 | uninstall-links:
|
---|
385 | @for j in $(LINKS); \
|
---|
386 | do rm -f $(bindir)/$$j ; \
|
---|
387 | echo $(bindir)/$$j ; \
|
---|
388 | done
|
---|
389 |
|
---|
390 | depend: $(SRCS)
|
---|
391 | makedepend -- $(CFLAGS) -- $^
|
---|
392 |
|
---|
393 | check:
|
---|
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.
|
---|