#
# Makefile for RAMFS
#
# Tools used:
#   Borland Make Version 3.6
#   Borland C++ Version 3.1
#   Borland TASM Version 3.1
#   Borland TLink Version 5.1 -- or -- IBM Link
#
# Use Borland TLink for a fine detailed MAP file
# Use IBM Link for a MAPSYM-compatible MAP file
#


.autodepend


OBJS1 = allocate.obj attach.obj   cancello.obj chdir.obj    chgfilep.obj \
	close.obj    commit.obj   copy.obj     delete.obj   dopageio.obj \
	exit.obj     fileattr.obj fileinfo.obj fileio.obj   filelock.obj \
	findclos.obj
OBJS2 =	findfirs.obj findfrom.obj findnext.obj flushbuf.obj fsctl.obj    \
	fsinfo.obj   init.obj     ioctl.obj    mkdir.obj    mount.obj    \
	move.obj     newsize.obj  nmpipe.obj   notifycl.obj notifyfi.obj \
	notifyne.obj
OBJS3 =	opencrea.obj openpage.obj pathinfo.obj processn.obj read.obj     \
	rmdir.obj    setswap.obj  shutdown.obj verifyun.obj write.obj    \
	block.obj    ea.obj       find.obj     info.obj     nearheap.obj \
	util.obj     vmheap.obj


ramfs.ifs: $(OBJS1) $(OBJS2) $(OBJS3) link.rsp
#  link /map @link.rsp
  tlink /s @link.rsp


.c.obj:
  bcc @ramfs.cfg {$< }


.asm.obj:
  tasm /ml /m3 /t $*.asm


ramfs.cfg: makefile
  copy &&|
-3 -O2 -G- -H -I..\h16; -O-i -a- -c -d -mc -p -w -w-ucp
| ramfs.cfg


link.rsp: makefile
  copy &&|
$(OBJS1)+
$(OBJS2)+
$(OBJS3)
ramfs.ifs
ramfs.map
\bc\lib\cc.lib fshelper.lib
ramfs.def
| link.rsp
