From db88524e4f2b2eafbb32b08591befa66f6ac02f7 Mon Sep 17 00:00:00 2001 From: Eric Kohl Date: Thu, 26 Jul 2001 12:36:33 +0000 Subject: [PATCH] Fixed broken rule. svn path=/trunk/; revision=2105 --- reactos/drivers/storage/class2/makefile | 61 +++++++++++++++++++++-- reactos/drivers/storage/scsiport/makefile | 61 +++++++++++++++++++++-- 2 files changed, 116 insertions(+), 6 deletions(-) diff --git a/reactos/drivers/storage/class2/makefile b/reactos/drivers/storage/class2/makefile index 6abc1c209a6..67983ccc831 100644 --- a/reactos/drivers/storage/class2/makefile +++ b/reactos/drivers/storage/class2/makefile @@ -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 diff --git a/reactos/drivers/storage/scsiport/makefile b/reactos/drivers/storage/scsiport/makefile index a8af93a35df..c69420f1c74 100644 --- a/reactos/drivers/storage/scsiport/makefile +++ b/reactos/drivers/storage/scsiport/makefile @@ -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