home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
rtsi.com
/
2014.01.www.rtsi.com.tar
/
www.rtsi.com
/
OS9
/
OSK
/
CMDS
/
mtools_3.6.src.lzh
/
MTOOLS_3.6
/
Makefile
< prev
next >
Wrap
Makefile
|
1997-11-14
|
8KB
|
195 lines
#
# Makefile for Mtools - for gcc2 with native GNU library
#
USERCFLAGS =
USERLDFLAGS =
SHELL = ksh
RDIR = ./RELS
ODIR = ./cmds
CC = gcc2
CPPFLAGS =
RFLAGS =
DEFS = -DHAVE_CONFIG_H -DHAVE_ATEXIT
HOST_ID =
CFLAGS = -I/h0/mwos/src/defs/GCC2 -m68000 -ucc -T/r0 -optasm
LDFLAGS =
LIBS = -L/dd/lib -lmtools.l -los9lib.l -L/h0/mwos/os9/68000/lib -nocol
OBJS = buffer.r codepage.r codepages.r config.r copyfile.r devices.r \
directory.r expand.r fat.r fat_free.r file.r file_name.r file_read.r \
filter.r force_io.r hash.r init.r match.r mattrib.r mbadblocks.r mcd.r \
mcopy.r mdel.r mdir.r mformat.r misc.r missing_functions.r \
mk_direntry.r mlabel.r mmd.r mmove.r mainloop.r minfo.r precmd.r privileges.r \
parse.r plain_io.r signal.r stream.r streamcache.r subdir.r \
toupper.r tty.r vfat.r xdf_io.r
SRCS = buffer.c codepage.c codepages.c config.c copyfile.c devices.c \
directory.c expand.c fat.c fat_free.c file.c file_name.c file_read.c \
filter.c force_io.c hash.c init.c match.c mattrib.c mbadblocks.c mcd.c \
mcopy.c mdel.c mdir.c mformat.c misc.c missing_functions.c \
mk_direntry.c mlabel.c mmd.c mmount.c mmove.c mtools.c \
parse.c plain_io.c signal.c stream.c streamcache.c subdir.c \
toupper.c vfat.c xdf_io.c mkmanest.c
SCRIPTS = mcheck mxtar uz gz xcopy mcomp
LINKS=msattrib mscd mscopy msdel msdir msformat mslabel msmd msmove mstype\
msbadblocks msdeltree msrd msread msren mswrite msinfo mstoolstest
ALLCFLAGS = $(CPPFLAGS) $(DEFS) $(HOST_ID) $(CFLAGS) $(USERCFLAGS)
all.done: mtools.l $(LINKS) mtools
echo all done
.c.r:
$(CC) $(ALLCFLAGS) -c -o $(RDIR)/$*.r $*.c
mtools: $(OBJS) mtools.r
$(CC) $(CFLAGS) -o $(ODIR)/mtools $(LIBS) -s 100 $(RDIR)/$@.r
mtools.l : $(OBJS)
chd rels; libgen -co=../mtools.l $(OBJS)
$(LINKS): mtools.l
$(CC) $(CFLAGS) -o $(ODIR)/$@ $(LIBS) -s 100 $(RDIR)/$@.r
buffer.r: buffer.c sysincludes.h config.h msdos.h mtools.h \
stream.h buffer.h
codepage.r: codepage.c sysincludes.h config.h mtools.h msdos.h \
stream.h codepage.h
codepages.r: codepages.c codepage.h
config.r: config.c sysincludes.h config.h mtools.h msdos.h \
stream.h codepage.h paths.h
copyfile.r: copyfile.c sysincludes.h config.h msdos.h mtools.h \
stream.h file.h
devices.r: devices.c sysincludes.h config.h msdos.h mtools.h \
stream.h devices.h
directory.r: directory.c sysincludes.h config.h msdos.h stream.h \
mtools.h file.h vfat.h fs.h
expand.r: expand.c sysincludes.h config.h mtools.h msdos.h \
stream.h
fat.r: fat.c sysincludes.h config.h msdos.h stream.h mtools.h \
fsP.h fs.h
fat_free.r: fat_free.c sysincludes.h config.h msdos.h fsP.h \
stream.h mtools.h fs.h
file.r: file.c sysincludes.h config.h msdos.h stream.h mtools.h \
fsP.h fs.h file.h htable.h
file_name.r: file_name.c sysincludes.h config.h msdos.h mtools.h \
stream.h vfat.h codepage.h
file_read.r: file_read.c sysincludes.h config.h msdos.h mtools.h \
stream.h file.h
filter.r: filter.c sysincludes.h config.h msdos.h mtools.h \
stream.h
force_io.r: force_io.c sysincludes.h config.h msdos.h stream.h \
mtools.h
hash.r: hash.c sysincludes.h config.h htable.h mtools.h msdos.h \
stream.h
init.r: init.c sysincludes.h config.h msdos.h stream.h mtools.h \
fsP.h fs.h plain_io.h xdf_io.h buffer.h
mainloop.r: mainloop.c sysincludes.h config.h msdos.h mtools.h \
stream.h vfat.h fs.h mainloop.h plain_io.h file.h
match.r: match.c sysincludes.h config.h mtools.h msdos.h stream.h
mattrib.r: mattrib.c sysincludes.h config.h msdos.h mtools.h \
stream.h mainloop.h vfat.h
mbadblocks.r: mbadblocks.c sysincludes.h config.h msdos.h \
mtools.h stream.h mainloop.h vfat.h fsP.h fs.h
mcd.r: mcd.c sysincludes.h config.h msdos.h mainloop.h vfat.h \
stream.h mtools.h
mcopy.r: mcopy.c sysincludes.h config.h msdos.h mtools.h stream.h \
vfat.h mainloop.h plain_io.h nameclash.h file.h fs.h
mdel.r: mdel.c sysincludes.h config.h msdos.h mtools.h stream.h \
mainloop.h vfat.h fs.h file.h
mdir.r: mdir.c sysincludes.h config.h msdos.h vfat.h stream.h \
mtools.h file.h mainloop.h fs.h codepage.h
mformat.r: mformat.c sysincludes.h config.h msdos.h mtools.h \
stream.h mainloop.h vfat.h fsP.h fs.h file.h plain_io.h nameclash.h \
buffer.h
minfo.r: minfo.c sysincludes.h config.h msdos.h mainloop.h vfat.h \
stream.h mtools.h nameclash.h
misc.r: misc.c sysincludes.h config.h msdos.h stream.h mtools.h \
vfat.h
missing_functions.r: missing_functions.c sysincludes.h config.h \
mtools.h msdos.h stream.h
mk_direntry.r: mk_direntry.c sysincludes.h config.h msdos.h \
mtools.h stream.h vfat.h nameclash.h fs.h
mkmanifest.r: mkmanifest.c sysincludes.h config.h msdos.h \
patchlevel.h
mlabel.r: mlabel.c sysincludes.h config.h msdos.h mainloop.h \
vfat.h stream.h mtools.h nameclash.h
mmd.r: mmd.c sysincludes.h config.h msdos.h mtools.h stream.h \
vfat.h mainloop.h plain_io.h nameclash.h file.h fs.h
mmove.r: mmove.c sysincludes.h config.h msdos.h mtools.h stream.h \
vfat.h mainloop.h plain_io.h nameclash.h file.h fs.h
msattrib.r: msattrib.c sysincludes.h config.h msdos.h mtools.h \
stream.h patchlevel.h
msbadblocks.r: msbadblocks.c sysincludes.h config.h msdos.h \
mtools.h stream.h patchlevel.h
mscd.r: mscd.c sysincludes.h config.h msdos.h mtools.h stream.h \
patchlevel.h
mscopy.r: mscopy.c sysincludes.h config.h msdos.h mtools.h \
stream.h patchlevel.h
msdel.r: msdel.c sysincludes.h config.h msdos.h mtools.h stream.h \
patchlevel.h
msdeltree.r: msdeltree.c sysincludes.h config.h msdos.h mtools.h \
stream.h patchlevel.h
msdir.r: msdir.c sysincludes.h config.h msdos.h mtools.h stream.h \
patchlevel.h
msformat.r: msformat.c sysincludes.h config.h msdos.h mtools.h \
stream.h patchlevel.h
msinfo.r: msinfo.c sysincludes.h config.h msdos.h mtools.h \
stream.h patchlevel.h
mslabel.r: mslabel.c sysincludes.h config.h msdos.h mtools.h \
stream.h patchlevel.h
msmd.r: msmd.c sysincludes.h config.h msdos.h mtools.h stream.h \
patchlevel.h
msmove.r: msmove.c sysincludes.h config.h msdos.h mtools.h \
stream.h patchlevel.h
mspartition.r: mspartition.c sysincludes.h config.h msdos.h \
mtools.h stream.h patchlevel.h
msrd.r: msrd.c sysincludes.h config.h msdos.h mtools.h stream.h \
patchlevel.h
msread.r: msread.c sysincludes.h config.h msdos.h mtools.h \
stream.h patchlevel.h
msren.r: msren.c sysincludes.h config.h msdos.h mtools.h stream.h \
patchlevel.h
mstest.r: mstest.c sysincludes.h config.h msdos.h mtools.h \
stream.h patchlevel.h
mstoolstest.r: mstoolstest.c sysincludes.h config.h msdos.h \
mtools.h stream.h patchlevel.h
mstype.r: mstype.c sysincludes.h config.h msdos.h mtools.h \
stream.h patchlevel.h
mswrite.r: mswrite.c sysincludes.h config.h msdos.h mtools.h \
stream.h patchlevel.h
mtools.r: mtools.c sysincludes.h config.h msdos.h mtools.h \
stream.h patchlevel.h partition.h vfat.h
parse.r: parse.c sysincludes.h config.h msdos.h vfat.h stream.h \
mtools.h
plain_io.r: plain_io.c sysincludes.h config.h stream.h mtools.h \
msdos.h plain_io.h patchlevel.h scsi.h partition.h
precmd.r: precmd.c sysincludes.h config.h mtools.h msdos.h \
stream.h
privileges.r: privileges.c sysincludes.h config.h msdos.h \
mtools.h stream.h patchlevel.h
privtest.r: privtest.c
scsi.r: scsi.c sysincludes.h config.h mtools.h msdos.h stream.h \
scsi.h
signal.r: signal.c sysincludes.h config.h mtools.h msdos.h \
stream.h
stream.r: stream.c sysincludes.h config.h msdos.h stream.h \
mtools.h
streamcache.r: streamcache.c sysincludes.h config.h msdos.h \
mtools.h stream.h vfat.h fs.h mainloop.h plain_io.h
strerror.r: strerror.c sysincludes.h config.h
subdir.r: subdir.c sysincludes.h config.h msdos.h mtools.h \
stream.h vfat.h file.h buffer.h
toupper.r: toupper.c codepage.h
tty.r: tty.c sysincludes.h config.h mtools.h msdos.h stream.h
vfat.r: vfat.c sysincludes.h config.h msdos.h mtools.h stream.h \
vfat.h file.h
xdf_io.r: xdf_io.c sysincludes.h config.h