Reworked code for handling of asynchonous i/o requests.
[reactos.git] / reactos / drivers / fs / vfat / makefile
index d3cdb8b..c36c04b 100644 (file)
@@ -1,81 +1,34 @@
-# $Id: makefile,v 1.11 1999/12/04 20:58:44 ea Exp $
-#
-#
-TARGET=vfatfs
+# $Id: makefile,v 1.36 2001/11/02 22:47:36 hbirr Exp $
 
-#OBJECTS = blockdev.o dir.o dirwr.o iface.o $(TARGET).coff ../../../ntoskrnl/ntoskrnl.a
-OBJECTS = blockdev.o dir.o dirwr.o iface.o ../../../ntoskrnl/ntoskrnl.a
+PATH_TO_TOP = ../../..
 
-BASE_CFLAGS = -I../../../include
+TARGET_TYPE = driver
 
-all: $(TARGET).sys
+TARGET_NAME = vfatfs
 
-.phony: all
+TARGET_OBJECTS = \
+  blockdev.o \
+  cleanup.o \
+  close.o \
+  create.o \
+  dir.o \
+  direntry.o \
+  dirwr.o \
+  fat.o \
+  fcb.o \
+  finfo.o \
+  iface.o \
+  rw.o \
+  shutdown.o \
+  string.o \
+  volume.o \
+  misc.o
 
-clean:
-ifeq ($(DOSCLI),yes)
-       - $(RM) blockdev.o
-       - $(RM) dir.o
-       - $(RM) dirwr.o
-       - $(RM) iface.o
-       - $(RM) $(TARGET).coff
-       - $(RM) junk.tmp
-       - $(RM) base.tmp
-       - $(RM) temp.exp
-       - $(RM) $(TARGET).sys
-else
-       - $(RM) blockdev.o dir.o dirwr.o iface.o $(TARGET).coff junk.tmp base.tmp temp.exp $(TARGET).sys
-endif
+DEP_OBJECTS = $(TARGET_OBJECTS)
 
-.phony: clean
+include $(PATH_TO_TOP)/rules.mak
 
-floppy: $(FLOPPY_DIR)/drivers/$(TARGET).sys
+include $(TOOLS_PATH)/helper.mk
 
-$(FLOPPY_DIR)/drivers/$(TARGET).sys: $(TARGET).sys
-ifeq ($(DOSCLI),yes)
-       $(CP) $(TARGET).sys $(FLOPPY_DIR)\drivers\$(TARGET).sys
-else
-       $(CP) $(TARGET).sys $(FLOPPY_DIR)/drivers/$(TARGET).sys
-endif
+include $(TOOLS_PATH)/depend.mk
 
-dist: ../../../$(DIST_DIR)/drivers/$(TARGET).sys
-
-../../../$(DIST_DIR)/drivers/$(TARGET).sys: $(TARGET).sys
-ifeq ($(DOSCLI),yes)
-       $(CP) $(TARGET).sys ..\..\..\$(DIST_DIR)\drivers\$(TARGET).sys
-else
-       $(CP) $(TARGET).sys ../../../$(DIST_DIR)/drivers/$(TARGET).sys
-endif
-
-$(TARGET).sys: $(OBJECTS)
-       $(CC) \
-               -specs=../../svc_specs \
-               -mdll \
-               -o junk.tmp \
-               -Wl,--defsym,_end=end \
-               -Wl,--defsym,_edata=__data_end__ \
-               -Wl,--defsym,_etext=etext \
-               -Wl,--base-file,base.tmp \
-               -Wl,"-h vfatfs.sys" \
-               $(OBJECTS)
-       - $(RM) junk.tmp
-       $(DLLTOOL) \
-               --dllname $(TARGET).sys \
-               --base-file base.tmp \
-               --output-exp temp.exp \
-               --def vfatfs.def
-       - $(RM) base.tmp
-       $(CC) \
-               --verbose \
-               -Wl,--image-base,0x10000 \
-               -Wl,-e,_DriverEntry@8 \
-               -Wl,temp.exp \
-               -Wl,"-h vfatfs.sys" \
-               -specs=../../svc_specs \
-               -mdll \
-               -o $(TARGET).sys \
-               $(OBJECTS)
-       - $(RM) temp.exp
-
-
-include ../../../rules.mak