From c0333e56cd75d9466b4a3e50a9b692a5faec189c Mon Sep 17 00:00:00 2001 From: Eric Kohl Date: Thu, 26 Jul 2001 11:40:59 +0000 Subject: [PATCH] Vidport did not have an export table because of broken rule. svn path=/trunk/; revision=2103 --- reactos/drivers/dd/vidport/makefile | 62 +++++++++++++++++++++++++++-- 1 file changed, 59 insertions(+), 3 deletions(-) diff --git a/reactos/drivers/dd/vidport/makefile b/reactos/drivers/dd/vidport/makefile index 43cd517a427..60e47d60d34 100644 --- a/reactos/drivers/dd/vidport/makefile +++ b/reactos/drivers/dd/vidport/makefile @@ -1,4 +1,4 @@ -# $Id: makefile,v 1.13 2001/07/25 06:21:38 ekohl Exp $ +# $Id: makefile,v 1.14 2001/07/26 11:40:59 ekohl Exp $ # # PATH_TO_TOP = ../../.. @@ -30,8 +30,6 @@ dist: $(PATH_TO_TOP)/$(DIST_DIR)/drivers/$(TARGET).sys $(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 \ @@ -39,4 +37,62 @@ $(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 + include $(PATH_TO_TOP)/rules.mak