-# $Id: makefile,v 1.33 2001/07/15 21:19:00 rex Exp $
-#
-#
-PATH_TO_TOP = ../../..
-
-TARGET=vfatfs
-
-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 \
- $(TARGET).coff
-
-LIBS = $(PATH_TO_TOP)/ntoskrnl/ntoskrnl.a
-
-CFLAGS = -D__NTDRIVER__ -g -Wall -Werror
+# $Id: makefile,v 1.36 2001/11/02 22:47:36 hbirr Exp $
-all: $(TARGET).sys.unstripped $(TARGET).sys
-
-.phony: all
-
-clean:
- - $(RM) *.o $(TARGET).coff junk.tmp base.tmp temp.exp $(TARGET).sys $(TARGET).sys.unstripped
-
-.phony: clean
-
-install: $(FLOPPY_DIR)/drivers/$(TARGET).sys
+PATH_TO_TOP = ../../..
-$(FLOPPY_DIR)/drivers/$(TARGET).sys: $(TARGET).sys
- $(CP) $(TARGET).sys $(FLOPPY_DIR)/drivers/$(TARGET).sys
+TARGET_TYPE = driver
-dist: ../../../$(DIST_DIR)/drivers/$(TARGET).sys
+TARGET_NAME = vfatfs
-../../../$(DIST_DIR)/drivers/$(TARGET).sys: $(TARGET).sys
- $(CP) $(TARGET).sys ../../../$(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
+DEP_OBJECTS = $(TARGET_OBJECTS)
-$(TARGET).sys.unstripped: $(OBJECTS) $(LIBS)
- $(LD) -r -o vfat.o $(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" vfat.o $(LIBS)
- - $(RM) junk.tmp
- $(DLLTOOL) \
- --dllname $(TARGET).sys \
- --base-file base.tmp \
- --output-exp temp.exp \
- --def vfatfs.def
- - $(RM) base.tmp
- $(CC) -Wl,--image-base,0x10000 -Wl,-e,_DriverEntry@8 -Wl,temp.exp -Wl,"-h vfatfs.sys" -specs=../../svc_specs -mdll -o $(TARGET).sys.unstripped vfat.o $(LIBS)
- - $(RM) temp.exp
- $(NM) --numeric-sort $(TARGET).sys.unstripped >$(TARGET).sym
+include $(PATH_TO_TOP)/rules.mak
+include $(TOOLS_PATH)/helper.mk
-$(TARGET).sys: $(OBJECTS) $(LIBS)
- $(LD) -r -o vfat.o $(OBJECTS)
- $(STRIP) --strip-debug vfat.o
- $(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" vfat.o $(LIBS)
- - $(RM) junk.tmp
- $(DLLTOOL) \
- --dllname $(TARGET).sys \
- --base-file base.tmp \
- --output-exp temp.exp \
- --def vfatfs.def
- - $(RM) base.tmp
- $(CC) -Wl,--image-base,0x10000 -Wl,-e,_DriverEntry@8 -Wl,temp.exp -Wl,"-h vfatfs.sys" -specs=../../svc_specs -mdll -o $(TARGET).sys vfat.o $(LIBS)
- - $(RM) temp.exp
+include $(TOOLS_PATH)/depend.mk
-WITH_DEBUGGING=yes
-WARNINGS_ARE_ERRORS = yes
-include ../../../rules.mak