#
# $Header: d:\\32bits\\ext2-os2\\misc\\rcs\\makefile,v 1.2 1997/03/16 12:38:49 Willm Exp $
#

# 32 bits Linux ext2 file system driver for OS/2 WARP - Allows OS/2 to
# access your Linux ext2fs partitions as normal drive letters.
# Copyright (C) 1995, 1996, 1997  Matthieu WILLM (willm@ibm.net)
#
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation; either version 2 of the License, or
# (at your option) any later version.
#
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
# GNU General Public License for more details.
#
# You should have received a copy of the GNU General Public License
# along with this program; if not, write to the Free Software
# Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.

all: sync.exe ext2_lw.exe hardlink.exe umount.exe remount.exe

#sync.exe:sync.c
#       icc -q -Ss+ -Fe$@ -O -G5 -Gd+ -B"/EXEPACK:2 /ALIGN:4" -I../include sync.c ../vfsapi/vfsapi.lib

sync.exe : sync.c ..\vfsapi\vfsapi.lib makefile
        gcc -O -Zomf -Zcrtdll -I../include -L../vfsapi -lvfsapi -Zlinker "/exepack:2 /align:4 /pmtype:vio" sync.c

#
# ext2-os2 lazy writer thread
#
ext2_lw.exe:ext2_lw.c
        icc -q -Ss+ -Fe$@ -O -G5 -Gm+ -B"/EXEPACK:2 /ALIGN:4" -I../include ext2_lw.c ../vfsapi/vfsapi.lib

hardlink.exe : hardlink.c ..\vfsapi\vfsapi.lib makefile
        gcc -O -Zomf -Zcrtdll -I..\include -L../vfsapi -lvfsapi -Zlinker "/exepack:2 /align:4 /pmtype:vio" hardlink.c

#
# unmount utility
#
umount.exe : umount.c makefile
        gcc -O -Zomf -Zcrtdll -Zlinker "/exepack:2 /align:4 /pmtype:vio" umount.c

#
# remount utility
#
remount.exe : remount.c makefile
        gcc -O -Zomf -Zcrtdll -Zlinker "/exepack:2 /align:4 /pmtype:vio" remount.c

clean::
        -del sync.exe
        -del ext2_lw.exe
        -del hardlink.exe
	-del umount.exe
	-del remount.exe
        -del *.obj
