Reworked code for handling of asynchonous i/o requests.
[reactos.git] / reactos / drivers / fs / vfat / makefile
index e29c962..c36c04b 100644 (file)
@@ -1,70 +1,34 @@
-# $Id: makefile,v 1.26 2001/01/12 21:00:08 dwelch Exp $
-#
-#
-PATH_TO_TOP = ../../..
-
-TARGET=vfatfs
-
-OBJECTS = blockdev.o close.o create.o dir.o dirwr.o iface.o string.o fat.o \
-          rw.o finfo.o volume.o shutdown.o $(TARGET).coff
-LIBS = ../../../ntoskrnl/ntoskrnl.a
-
-CFLAGS = -g -Wall -Werror
+# $Id: makefile,v 1.36 2001/11/02 22:47:36 hbirr Exp $
 
-all: $(TARGET).nostrip.sys $(TARGET).sys
-
-.phony: all
-
-clean:
-ifeq ($(DOSCLI),yes)
-       - $(RM) *.o
-       - $(RM) $(TARGET).coff
-       - $(RM) junk.tmp
-       - $(RM) base.tmp
-       - $(RM) temp.exp
-       - $(RM) $(TARGET).sys
-else
-       - $(RM) $(OBJECTS) $(TARGET).coff junk.tmp base.tmp temp.exp $(TARGET).sys $(TARGET).nostrip.sys
-endif
-
-.phony: clean
+PATH_TO_TOP = ../../..
 
-install: $(FLOPPY_DIR)/drivers/$(TARGET).sys
+TARGET_TYPE = driver
 
-$(FLOPPY_DIR)/drivers/$(TARGET).sys: $(TARGET).sys
-       $(CP) $(TARGET).sys $(FLOPPY_DIR)/drivers/$(TARGET).sys
+TARGET_NAME = vfatfs
 
-dist: ../../../$(DIST_DIR)/drivers/$(TARGET).sys
+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
 
-../../../$(DIST_DIR)/drivers/$(TARGET).sys: $(TARGET).sys
-       $(CP) $(TARGET).sys ../../../$(DIST_DIR)/drivers/$(TARGET).sys
+DEP_OBJECTS = $(TARGET_OBJECTS)
 
-$(TARGET).nostrip.sys: $(OBJECTS) $(LIBS)
-       $(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) $(LIBS)
-       - $(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).nostrip.sys $(OBJECTS) $(LIBS)
-       - $(RM) temp.exp
+include $(PATH_TO_TOP)/rules.mak
 
+include $(TOOLS_PATH)/helper.mk
 
-$(TARGET).sys: $(OBJECTS) $(LIBS)
-       $(STRIP) --strip-debug $(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) $(LIBS)
-       - $(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) $(LIBS)
-       - $(RM) temp.exp
+include $(TOOLS_PATH)/depend.mk
 
-WITH_DEBUGGING=yes
-WARNINGS_ARE_ERRORS = yes
-include ../../../rules.mak