Fixed broken rule.
authorEric Kohl <eric.kohl@reactos.org>
Thu, 26 Jul 2001 12:36:33 +0000 (12:36 +0000)
committerEric Kohl <eric.kohl@reactos.org>
Thu, 26 Jul 2001 12:36:33 +0000 (12:36 +0000)
svn path=/trunk/; revision=2105

reactos/drivers/storage/class2/makefile
reactos/drivers/storage/scsiport/makefile

index 6abc1c2..67983cc 100644 (file)
@@ -1,4 +1,4 @@
-# $Id: makefile,v 1.1 2001/07/23 06:12:07 ekohl Exp $
+# $Id: makefile,v 1.2 2001/07/26 12:35:52 ekohl Exp $
 #
 #
 PATH_TO_TOP = ../../..
@@ -32,8 +32,6 @@ $(PATH_TO_TOP)/$(DIST_DIR)/drivers/$(TARGET).sys: $(TARGET).sys
        $(CP) $(TARGET).sys $(PATH_TO_TOP)/$(DIST_DIR)/drivers/$(TARGET).sys
 
 
-$(TARGET).sys $(TARGET).sys.unstripped: $(OBJECTS) $(LIBS)
-
 $(TARGET).a: $(TARGET).def
        $(DLLTOOL) \
                --dllname $(TARGET).sys \
@@ -41,6 +39,63 @@ $(TARGET).a: $(TARGET).def
                --kill-at \
                --output-lib $(TARGET).a
 
+$(TARGET).sys $(TARGET).sys.unstripped: $(OBJECTS) $(LIBS)
+       $(CC) \
+               -nostartfiles -nostdlib -e _DriverEntry@8\
+               -mdll \
+               -o junk.tmp \
+               -Wl,--defsym,_end=end \
+               -Wl,--defsym,_edata=__data_end__ \
+               -Wl,--defsym,_etext=etext \
+               -Wl,--base-file,base.tmp $^
+       - $(RM) junk.tmp
+       $(DLLTOOL) \
+               --dllname $@ \
+               --base-file base.tmp \
+               --output-exp temp.exp \
+               --def $(TARGET).edf \
+               --kill-at
+       - $(RM) base.tmp
+       $(CC) \
+               --verbose \
+               -Wl,--subsystem,native \
+               -Wl,--image-base,0x10000 \
+               -Wl,-e,_DriverEntry@8 \
+               -Wl,temp.exp \
+               -nostartfiles -nostdlib -e _DriverEntry@8 \
+               -mdll \
+               -o $@.unstripped \
+               $^
+       - $(RM) temp.exp
+       - $(NM) --numeric-sort $@.unstripped > $@.sym
+       $(STRIP) --strip-debug $<
+       $(CC) \
+               -nostartfiles -nostdlib -e _DriverEntry@8 \
+               -mdll \
+               -o junk.tmp \
+               -Wl,--defsym,_end=end \
+               -Wl,--defsym,_edata=__data_end__ \
+               -Wl,--defsym,_etext=etext \
+               -Wl,--base-file,base.tmp $^
+       - $(RM) junk.tmp
+       $(DLLTOOL) \
+               --dllname $@ \
+               --base-file base.tmp \
+               --output-exp temp.exp \
+               --def $(TARGET).edf \
+               --kill-at
+       - $(RM) base.tmp
+       $(CC) \
+               --verbose \
+               -Wl,--subsystem,native \
+               -Wl,--image-base,0x10000 \
+               -Wl,-e,_DriverEntry@8 \
+               -Wl,temp.exp \
+               -nostartfiles -nostdlib -e _DriverEntry@8 \
+               -mdll \
+               -o $@ \
+               $^
+       - $(RM) temp.exp
 
 WARNINGS_ARE_ERRORS = yes
 include $(PATH_TO_TOP)/rules.mak
index a8af93a..c69420f 100644 (file)
@@ -1,4 +1,4 @@
-# $Id: makefile,v 1.2 2001/07/23 06:13:48 ekohl Exp $
+# $Id: makefile,v 1.3 2001/07/26 12:36:33 ekohl Exp $
 #
 #
 PATH_TO_TOP = ../../..
@@ -32,8 +32,6 @@ $(PATH_TO_TOP)/$(DIST_DIR)/drivers/$(TARGET).sys: $(TARGET).sys
        $(CP) $(TARGET).sys $(PATH_TO_TOP)/$(DIST_DIR)/drivers/$(TARGET).sys
 
 
-$(TARGET).sys $(TARGET).sys.unstripped: $(OBJECTS) $(LIBS)
-
 $(TARGET).a: $(TARGET).def
        $(DLLTOOL) \
                --dllname $(TARGET).sys \
@@ -41,6 +39,63 @@ $(TARGET).a: $(TARGET).def
                --kill-at \
                --output-lib $(TARGET).a
 
+$(TARGET).sys $(TARGET).sys.unstripped: $(OBJECTS) $(LIBS)
+       $(CC) \
+               -nostartfiles -nostdlib -e _DriverEntry@8\
+               -mdll \
+               -o junk.tmp \
+               -Wl,--defsym,_end=end \
+               -Wl,--defsym,_edata=__data_end__ \
+               -Wl,--defsym,_etext=etext \
+               -Wl,--base-file,base.tmp $^
+       - $(RM) junk.tmp
+       $(DLLTOOL) \
+               --dllname $@ \
+               --base-file base.tmp \
+               --output-exp temp.exp \
+               --def $(TARGET).edf \
+               --kill-at
+       - $(RM) base.tmp
+       $(CC) \
+               --verbose \
+               -Wl,--subsystem,native \
+               -Wl,--image-base,0x10000 \
+               -Wl,-e,_DriverEntry@8 \
+               -Wl,temp.exp \
+               -nostartfiles -nostdlib -e _DriverEntry@8 \
+               -mdll \
+               -o $@.unstripped \
+               $^
+       - $(RM) temp.exp
+       - $(NM) --numeric-sort $@.unstripped > $@.sym
+       $(STRIP) --strip-debug $<
+       $(CC) \
+               -nostartfiles -nostdlib -e _DriverEntry@8 \
+               -mdll \
+               -o junk.tmp \
+               -Wl,--defsym,_end=end \
+               -Wl,--defsym,_edata=__data_end__ \
+               -Wl,--defsym,_etext=etext \
+               -Wl,--base-file,base.tmp $^
+       - $(RM) junk.tmp
+       $(DLLTOOL) \
+               --dllname $@ \
+               --base-file base.tmp \
+               --output-exp temp.exp \
+               --def $(TARGET).edf \
+               --kill-at
+       - $(RM) base.tmp
+       $(CC) \
+               --verbose \
+               -Wl,--subsystem,native \
+               -Wl,--image-base,0x10000 \
+               -Wl,-e,_DriverEntry@8 \
+               -Wl,temp.exp \
+               -nostartfiles -nostdlib -e _DriverEntry@8 \
+               -mdll \
+               -o $@ \
+               $^
+       - $(RM) temp.exp
 
 WARNINGS_ARE_ERRORS = yes
 include $(PATH_TO_TOP)/rules.mak