Vidport did not have an export table because of broken rule.

svn path=/trunk/; revision=2103
This commit is contained in:
Eric Kohl 2001-07-26 11:40:59 +00:00
parent 2da14243ee
commit c0333e56cd

View file

@ -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