9ee84dfb66
2006/09/15 13:26:31 hjs 1.27.112.1: #i69536# don't force shell for echo
1910 lines
55 KiB
Makefile
1910 lines
55 KiB
Makefile
# unroll begin
|
|
|
|
.IF "$(DEF1TARGETN)"!=""
|
|
|
|
#to make intuitiv naming work
|
|
.IF "$(DEF1LIBNAME)"!=""
|
|
DEFLIB1NAME*=$(DEF1LIBNAME)
|
|
.ENDIF # "$(DEF1LIBNAME)"!=""
|
|
|
|
.IF "$(DEFLIB1NAME)"!=""
|
|
.IF "$(UPDATER)"!=""
|
|
DEF1DEPN+=$(SLB)$/$(DEFLIB1NAME).lib
|
|
.ENDIF # "$(UPDATER)"!=""
|
|
.ENDIF
|
|
|
|
.IF "$(SHL1VERSIONMAP)"!=""
|
|
.IF "$(DEF1EXPORTFILE)"==""
|
|
.IF "$(GUI)"=="WNT"
|
|
DEF1EXPORTFILE=$(MISC)$/$(SHL1VERSIONMAP:b)_$(SHL1TARGET).dxp
|
|
$(DEF1EXPORTFILE) : $(SHL1VERSIONMAP)
|
|
+$(TYPE) $< | $(AWK) -f $(SOLARENV)$/bin$/getcsym.awk > $@
|
|
|
|
.ENDIF # "$(GUI)"=="WNT"
|
|
.ENDIF # "$(DEF1EXPORTFILE)"==""
|
|
.ENDIF # "$(SHL1VERSIONMAP)"!=""
|
|
|
|
.IF "$(GUI)"=="WNT"
|
|
|
|
DEF1FILTER=$(SOLARENV)$/inc$/dummy.flt
|
|
|
|
.IF "$(MWS_BUILD)"!=""
|
|
.IF "$(UPDATER)"!=""
|
|
.IF "$(DEFLIB1NAME)"!=""
|
|
|
|
DEF1UNIQE:=$(mktmp $(GUI))
|
|
|
|
# %_disk is a 4nt special; don't exppect it to work in any other shell
|
|
BUILD_DRIVE1:=$(shell +echo %_disk)
|
|
#BUILD_DRIVE1:=O
|
|
|
|
.IF "$(BUILD_DRIVE1)"=="O"
|
|
# in case of RE build, protect against failed lock
|
|
EXPORT1_PROTECT=$(TMP)$/$(DEF1UNIQE:b).bat &&
|
|
.ENDIF # "$(BUILD_DRIVE1)"=="O"
|
|
|
|
.ENDIF # "$(DEFLIB1NAME)"!=""
|
|
.ENDIF # "$(UPDATER)"!=""
|
|
.ENDIF # "$(MWS_BUILD)"!=""
|
|
|
|
.IF "$(link_always)"==""
|
|
$(DEF1TARGETN) : \
|
|
$(DEF1DEPN) \
|
|
$(DEF1EXPORTFILE)
|
|
.ELSE # "$(link_always)"==""
|
|
$(DEF1TARGETN) .PHONY :
|
|
.ENDIF # "$(link_always)"==""
|
|
.IF "$(MWS_BUILD)"!=""
|
|
.IF "$(UPDATER)"!=""
|
|
.IF "$(DEFLIB1NAME)"!=""
|
|
.IF "$(BUILD_DRIVE1)"=="O"
|
|
#
|
|
# don't forget to have the right DEFSTAG set!
|
|
#
|
|
+$(PERL) $(COMMON_ENV_TOOLS)$/lockcidef.pl -u$(DEF1UNIQE:b) update $(DEFSTAG)
|
|
.ENDIF # "$(BUILD_DRIVE1)"=="O"
|
|
.ENDIF # "$(DEFLIB1NAME)"!=""
|
|
.ENDIF # "$(UPDATER)"!=""
|
|
.ENDIF # "$(MWS_BUILD)"!=""
|
|
# +-attrib -r defs$/$(OUTPATH)
|
|
@+-$(RM) $@.tmpfile
|
|
@echo ------------------------------
|
|
@echo Making Module-Definitionfile : $@
|
|
@echo LIBRARY $(SHL1TARGETN:f) >$@.tmpfile
|
|
@echo HEAPSIZE 0 >>$@.tmpfile
|
|
@echo EXPORTS >>$@.tmpfile
|
|
# getversioninfo fuer alle!!
|
|
@echo GetVersionInfo >>$@.tmpfile
|
|
.IF "$(NO_SHL1DESCRIPTION)"==""
|
|
@echo component_getDescriptionFunc >>$@.tmpfile
|
|
.ENDIF # "$(NO_SHL1DESCRIPTION)"==""
|
|
.IF "$(DEFLIB1NAME)"!=""
|
|
.IF "$(SHL1USE_EXPORTS)"!="ordinal"
|
|
@-+$(EXPORT1_PROTECT) $(RM) $(MISC)$/$(SHL1TARGET).exp
|
|
@+$(EXPORT1_PROTECT) $(LIBMGR) -EXTRACT:/ /OUT:$(MISC)$/$(SHL1TARGET).exp $(SLB)$/$(DEFLIB1NAME).lib
|
|
.IF "$(DEF1CEXP)"!=""
|
|
@+$(EXPORT1_PROTECT) $(LDUMP2) -A $(DEF1CEXP) -E 20 -F $(MISC)$/$(SHL1TARGET).flt $(MISC)$/$(SHL1TARGET).exp >>$@.tmpfile
|
|
.ELSE
|
|
@+$(EXPORT1_PROTECT) $(LDUMP2) -E 20 -F $(MISC)$/$(SHL1TARGET).flt $(MISC)$/$(SHL1TARGET).exp >>$@.tmpfile
|
|
.ENDIF
|
|
+$(EXPORT1_PROTECT) $(RM) $(MISC)$/$(SHL1TARGET).exp
|
|
.ELSE # "$(SHL1USE_EXPORTS)"!="ordinal"
|
|
@+$(EXPORT1_PROTECT) $(DUMPBIN) -DIRECTIVES $(SLB)$/$(DEFLIB1NAME).lib | $(GREP) EXPORT: > $(MISC)$/$(SHL1TARGET).direct
|
|
.IF "$(DEF1CEXP)"!=""
|
|
@+$(EXPORT1_PROTECT) $(LDUMP2) -D -A $(DEF1CEXP) -E 20 -F $(DEF1FILTER) $(MISC)$/$(SHL1TARGET).direct >>$@.tmpfile
|
|
.ELSE
|
|
@+$(EXPORT1_PROTECT) $(LDUMP2) -D -E 20 -F $(DEF1FILTER) $(MISC)$/$(SHL1TARGET).direct >>$@.tmpfile
|
|
.ENDIF
|
|
.ENDIF # "$(SHL1USE_EXPORTS)"!="ordinal"
|
|
# now *\defs\$(OUTPATH) exists, commit it
|
|
.IF "$(MWS_BUILD)"!=""
|
|
.IF "$(UPDATER)"!=""
|
|
.IF "$(BUILD_DRIVE1)"=="O"
|
|
#
|
|
# don't forget to have the right DEFSTAG set!
|
|
#
|
|
+$(PERL) $(COMMON_ENV_TOOLS)$/lockcidef.pl -u$(DEF1UNIQE:b) commit
|
|
+$(TMP)$/$(DEF1UNIQE:b).bat && $(RM) $(TMP)$/$(DEF1UNIQE:b).bat
|
|
.ENDIF # "$(BUILD_DRIVE1)"=="O"
|
|
.ENDIF # "$(UPDATER)"!=""
|
|
.ENDIF # "$(MWS_BUILD)"!=""
|
|
.ENDIF # "$(DEFLIB1NAME)"!=""
|
|
.IF "$(DEF1EXPORT1)"!=""
|
|
@echo $(DEF1EXPORT1) >>$@.tmpfile
|
|
.ENDIF
|
|
.IF "$(DEF1EXPORT2)"!=""
|
|
@echo $(DEF1EXPORT2) >>$@.tmpfile
|
|
.ENDIF
|
|
.IF "$(DEF1EXPORT3)"!=""
|
|
@echo $(DEF1EXPORT3) >>$@.tmpfile
|
|
.ENDIF
|
|
.IF "$(DEF1EXPORT4)"!=""
|
|
@echo $(DEF1EXPORT4) >>$@.tmpfile
|
|
.ENDIF
|
|
.IF "$(DEF1EXPORT5)"!=""
|
|
@echo $(DEF1EXPORT5) >>$@.tmpfile
|
|
.ENDIF
|
|
.IF "$(DEF1EXPORT6)"!=""
|
|
@echo $(DEF1EXPORT6) >>$@.tmpfile
|
|
.ENDIF
|
|
.IF "$(DEF1EXPORT7)"!=""
|
|
@echo $(DEF1EXPORT7) >>$@.tmpfile
|
|
.ENDIF
|
|
.IF "$(DEF1EXPORT8)"!=""
|
|
@echo $(DEF1EXPORT8) >>$@.tmpfile
|
|
.ENDIF
|
|
.IF "$(DEF1EXPORT9)"!=""
|
|
@echo $(DEF1EXPORT9) >>$@.tmpfile
|
|
.ENDIF
|
|
.IF "$(DEF1EXPORT10)"!=""
|
|
@echo $(DEF1EXPORT10) >>$@.tmpfile
|
|
.ENDIF
|
|
.IF "$(DEF1EXPORT11)"!=""
|
|
@echo $(DEF1EXPORT11) >>$@.tmpfile
|
|
.ENDIF
|
|
.IF "$(DEF1EXPORT12)"!=""
|
|
@echo $(DEF1EXPORT12) >>$@.tmpfile
|
|
.ENDIF
|
|
.IF "$(DEF1EXPORT13)"!=""
|
|
@echo $(DEF1EXPORT13) >>$@.tmpfile
|
|
.ENDIF
|
|
.IF "$(DEF1EXPORT14)"!=""
|
|
@echo $(DEF1EXPORT14) >>$@.tmpfile
|
|
.ENDIF
|
|
.IF "$(DEF1EXPORT15)"!=""
|
|
@echo $(DEF1EXPORT15) >>$@.tmpfile
|
|
.ENDIF
|
|
.IF "$(DEF1EXPORT16)"!=""
|
|
@echo $(DEF1EXPORT16) >>$@.tmpfile
|
|
.ENDIF
|
|
.IF "$(DEF1EXPORT17)"!=""
|
|
@echo $(DEF1EXPORT17) >>$@.tmpfile
|
|
.ENDIF
|
|
.IF "$(DEF1EXPORT18)"!=""
|
|
@echo $(DEF1EXPORT18) >>$@.tmpfile
|
|
.ENDIF
|
|
.IF "$(DEF1EXPORT19)"!=""
|
|
@echo $(DEF1EXPORT19) >>$@.tmpfile
|
|
.ENDIF
|
|
.IF "$(DEF1EXPORT20)"!=""
|
|
@echo $(DEF1EXPORT20) >>$@.tmpfile
|
|
.ENDIF
|
|
.IF "$(DEF1EXPORTFILE)"!=""
|
|
+$(TYPE) $(DEF1EXPORTFILE) >> $@.tmpfile
|
|
.ENDIF
|
|
@+-$(RM) $@
|
|
@+$(RENAME) $@.tmpfile $@
|
|
.ENDIF # "$(GUI)"=="WNT"
|
|
|
|
.IF "$(GUI)"=="UNX"
|
|
$(DEF1TARGETN): \
|
|
$(DEF1DEPN) \
|
|
$(DEF1EXPORTFILE)
|
|
@echo ------------------------------
|
|
@echo Making Module-Definitionfile : $@
|
|
@echo just a dummy for UNIX
|
|
@echo > $@
|
|
.ENDIF
|
|
.ENDIF # "$(DEF1TARGETN)"!=""
|
|
|
|
|
|
# Anweisungen fuer das Linken
|
|
# unroll begin
|
|
|
|
.IF "$(DEF2TARGETN)"!=""
|
|
|
|
#to make intuitiv naming work
|
|
.IF "$(DEF2LIBNAME)"!=""
|
|
DEFLIB2NAME*=$(DEF2LIBNAME)
|
|
.ENDIF # "$(DEF2LIBNAME)"!=""
|
|
|
|
.IF "$(DEFLIB2NAME)"!=""
|
|
.IF "$(UPDATER)"!=""
|
|
DEF2DEPN+=$(SLB)$/$(DEFLIB2NAME).lib
|
|
.ENDIF # "$(UPDATER)"!=""
|
|
.ENDIF
|
|
|
|
.IF "$(SHL2VERSIONMAP)"!=""
|
|
.IF "$(DEF2EXPORTFILE)"==""
|
|
.IF "$(GUI)"=="WNT"
|
|
DEF2EXPORTFILE=$(MISC)$/$(SHL2VERSIONMAP:b)_$(SHL2TARGET).dxp
|
|
$(DEF2EXPORTFILE) : $(SHL2VERSIONMAP)
|
|
+$(TYPE) $< | $(AWK) -f $(SOLARENV)$/bin$/getcsym.awk > $@
|
|
|
|
.ENDIF # "$(GUI)"=="WNT"
|
|
.ENDIF # "$(DEF2EXPORTFILE)"==""
|
|
.ENDIF # "$(SHL2VERSIONMAP)"!=""
|
|
|
|
.IF "$(GUI)"=="WNT"
|
|
|
|
DEF2FILTER=$(SOLARENV)$/inc$/dummy.flt
|
|
|
|
.IF "$(MWS_BUILD)"!=""
|
|
.IF "$(UPDATER)"!=""
|
|
.IF "$(DEFLIB2NAME)"!=""
|
|
|
|
DEF2UNIQE:=$(mktmp $(GUI))
|
|
|
|
# %_disk is a 4nt special; don't exppect it to work in any other shell
|
|
BUILD_DRIVE2:=$(shell +echo %_disk)
|
|
#BUILD_DRIVE2:=O
|
|
|
|
.IF "$(BUILD_DRIVE2)"=="O"
|
|
# in case of RE build, protect against failed lock
|
|
EXPORT2_PROTECT=$(TMP)$/$(DEF2UNIQE:b).bat &&
|
|
.ENDIF # "$(BUILD_DRIVE2)"=="O"
|
|
|
|
.ENDIF # "$(DEFLIB2NAME)"!=""
|
|
.ENDIF # "$(UPDATER)"!=""
|
|
.ENDIF # "$(MWS_BUILD)"!=""
|
|
|
|
.IF "$(link_always)"==""
|
|
$(DEF2TARGETN) : \
|
|
$(DEF2DEPN) \
|
|
$(DEF2EXPORTFILE)
|
|
.ELSE # "$(link_always)"==""
|
|
$(DEF2TARGETN) .PHONY :
|
|
.ENDIF # "$(link_always)"==""
|
|
.IF "$(MWS_BUILD)"!=""
|
|
.IF "$(UPDATER)"!=""
|
|
.IF "$(DEFLIB2NAME)"!=""
|
|
.IF "$(BUILD_DRIVE2)"=="O"
|
|
#
|
|
# don't forget to have the right DEFSTAG set!
|
|
#
|
|
+$(PERL) $(COMMON_ENV_TOOLS)$/lockcidef.pl -u$(DEF2UNIQE:b) update $(DEFSTAG)
|
|
.ENDIF # "$(BUILD_DRIVE2)"=="O"
|
|
.ENDIF # "$(DEFLIB2NAME)"!=""
|
|
.ENDIF # "$(UPDATER)"!=""
|
|
.ENDIF # "$(MWS_BUILD)"!=""
|
|
# +-attrib -r defs$/$(OUTPATH)
|
|
@+-$(RM) $@.tmpfile
|
|
@echo ------------------------------
|
|
@echo Making Module-Definitionfile : $@
|
|
@echo LIBRARY $(SHL2TARGETN:f) >$@.tmpfile
|
|
@echo HEAPSIZE 0 >>$@.tmpfile
|
|
@echo EXPORTS >>$@.tmpfile
|
|
# getversioninfo fuer alle!!
|
|
@echo GetVersionInfo >>$@.tmpfile
|
|
.IF "$(NO_SHL2DESCRIPTION)"==""
|
|
@echo component_getDescriptionFunc >>$@.tmpfile
|
|
.ENDIF # "$(NO_SHL2DESCRIPTION)"==""
|
|
.IF "$(DEFLIB2NAME)"!=""
|
|
.IF "$(SHL2USE_EXPORTS)"!="ordinal"
|
|
@-+$(EXPORT2_PROTECT) $(RM) $(MISC)$/$(SHL2TARGET).exp
|
|
@+$(EXPORT2_PROTECT) $(LIBMGR) -EXTRACT:/ /OUT:$(MISC)$/$(SHL2TARGET).exp $(SLB)$/$(DEFLIB2NAME).lib
|
|
.IF "$(DEF2CEXP)"!=""
|
|
@+$(EXPORT2_PROTECT) $(LDUMP2) -A $(DEF2CEXP) -E 20 -F $(MISC)$/$(SHL2TARGET).flt $(MISC)$/$(SHL2TARGET).exp >>$@.tmpfile
|
|
.ELSE
|
|
@+$(EXPORT2_PROTECT) $(LDUMP2) -E 20 -F $(MISC)$/$(SHL2TARGET).flt $(MISC)$/$(SHL2TARGET).exp >>$@.tmpfile
|
|
.ENDIF
|
|
+$(EXPORT2_PROTECT) $(RM) $(MISC)$/$(SHL2TARGET).exp
|
|
.ELSE # "$(SHL2USE_EXPORTS)"!="ordinal"
|
|
@+$(EXPORT2_PROTECT) $(DUMPBIN) -DIRECTIVES $(SLB)$/$(DEFLIB2NAME).lib | $(GREP) EXPORT: > $(MISC)$/$(SHL2TARGET).direct
|
|
.IF "$(DEF2CEXP)"!=""
|
|
@+$(EXPORT2_PROTECT) $(LDUMP2) -D -A $(DEF2CEXP) -E 20 -F $(DEF2FILTER) $(MISC)$/$(SHL2TARGET).direct >>$@.tmpfile
|
|
.ELSE
|
|
@+$(EXPORT2_PROTECT) $(LDUMP2) -D -E 20 -F $(DEF2FILTER) $(MISC)$/$(SHL2TARGET).direct >>$@.tmpfile
|
|
.ENDIF
|
|
.ENDIF # "$(SHL2USE_EXPORTS)"!="ordinal"
|
|
# now *\defs\$(OUTPATH) exists, commit it
|
|
.IF "$(MWS_BUILD)"!=""
|
|
.IF "$(UPDATER)"!=""
|
|
.IF "$(BUILD_DRIVE2)"=="O"
|
|
#
|
|
# don't forget to have the right DEFSTAG set!
|
|
#
|
|
+$(PERL) $(COMMON_ENV_TOOLS)$/lockcidef.pl -u$(DEF2UNIQE:b) commit
|
|
+$(TMP)$/$(DEF2UNIQE:b).bat && $(RM) $(TMP)$/$(DEF2UNIQE:b).bat
|
|
.ENDIF # "$(BUILD_DRIVE2)"=="O"
|
|
.ENDIF # "$(UPDATER)"!=""
|
|
.ENDIF # "$(MWS_BUILD)"!=""
|
|
.ENDIF # "$(DEFLIB2NAME)"!=""
|
|
.IF "$(DEF2EXPORT1)"!=""
|
|
@echo $(DEF2EXPORT1) >>$@.tmpfile
|
|
.ENDIF
|
|
.IF "$(DEF2EXPORT2)"!=""
|
|
@echo $(DEF2EXPORT2) >>$@.tmpfile
|
|
.ENDIF
|
|
.IF "$(DEF2EXPORT3)"!=""
|
|
@echo $(DEF2EXPORT3) >>$@.tmpfile
|
|
.ENDIF
|
|
.IF "$(DEF2EXPORT4)"!=""
|
|
@echo $(DEF2EXPORT4) >>$@.tmpfile
|
|
.ENDIF
|
|
.IF "$(DEF2EXPORT5)"!=""
|
|
@echo $(DEF2EXPORT5) >>$@.tmpfile
|
|
.ENDIF
|
|
.IF "$(DEF2EXPORT6)"!=""
|
|
@echo $(DEF2EXPORT6) >>$@.tmpfile
|
|
.ENDIF
|
|
.IF "$(DEF2EXPORT7)"!=""
|
|
@echo $(DEF2EXPORT7) >>$@.tmpfile
|
|
.ENDIF
|
|
.IF "$(DEF2EXPORT8)"!=""
|
|
@echo $(DEF2EXPORT8) >>$@.tmpfile
|
|
.ENDIF
|
|
.IF "$(DEF2EXPORT9)"!=""
|
|
@echo $(DEF2EXPORT9) >>$@.tmpfile
|
|
.ENDIF
|
|
.IF "$(DEF2EXPORT10)"!=""
|
|
@echo $(DEF2EXPORT10) >>$@.tmpfile
|
|
.ENDIF
|
|
.IF "$(DEF2EXPORT11)"!=""
|
|
@echo $(DEF2EXPORT11) >>$@.tmpfile
|
|
.ENDIF
|
|
.IF "$(DEF2EXPORT12)"!=""
|
|
@echo $(DEF2EXPORT12) >>$@.tmpfile
|
|
.ENDIF
|
|
.IF "$(DEF2EXPORT13)"!=""
|
|
@echo $(DEF2EXPORT13) >>$@.tmpfile
|
|
.ENDIF
|
|
.IF "$(DEF2EXPORT14)"!=""
|
|
@echo $(DEF2EXPORT14) >>$@.tmpfile
|
|
.ENDIF
|
|
.IF "$(DEF2EXPORT15)"!=""
|
|
@echo $(DEF2EXPORT15) >>$@.tmpfile
|
|
.ENDIF
|
|
.IF "$(DEF2EXPORT16)"!=""
|
|
@echo $(DEF2EXPORT16) >>$@.tmpfile
|
|
.ENDIF
|
|
.IF "$(DEF2EXPORT17)"!=""
|
|
@echo $(DEF2EXPORT17) >>$@.tmpfile
|
|
.ENDIF
|
|
.IF "$(DEF2EXPORT18)"!=""
|
|
@echo $(DEF2EXPORT18) >>$@.tmpfile
|
|
.ENDIF
|
|
.IF "$(DEF2EXPORT19)"!=""
|
|
@echo $(DEF2EXPORT19) >>$@.tmpfile
|
|
.ENDIF
|
|
.IF "$(DEF2EXPORT20)"!=""
|
|
@echo $(DEF2EXPORT20) >>$@.tmpfile
|
|
.ENDIF
|
|
.IF "$(DEF2EXPORTFILE)"!=""
|
|
+$(TYPE) $(DEF2EXPORTFILE) >> $@.tmpfile
|
|
.ENDIF
|
|
@+-$(RM) $@
|
|
@+$(RENAME) $@.tmpfile $@
|
|
.ENDIF # "$(GUI)"=="WNT"
|
|
|
|
.IF "$(GUI)"=="UNX"
|
|
$(DEF2TARGETN): \
|
|
$(DEF2DEPN) \
|
|
$(DEF2EXPORTFILE)
|
|
@echo ------------------------------
|
|
@echo Making Module-Definitionfile : $@
|
|
@echo just a dummy for UNIX
|
|
@echo > $@
|
|
.ENDIF
|
|
.ENDIF # "$(DEF2TARGETN)"!=""
|
|
|
|
|
|
# Anweisungen fuer das Linken
|
|
# unroll begin
|
|
|
|
.IF "$(DEF3TARGETN)"!=""
|
|
|
|
#to make intuitiv naming work
|
|
.IF "$(DEF3LIBNAME)"!=""
|
|
DEFLIB3NAME*=$(DEF3LIBNAME)
|
|
.ENDIF # "$(DEF3LIBNAME)"!=""
|
|
|
|
.IF "$(DEFLIB3NAME)"!=""
|
|
.IF "$(UPDATER)"!=""
|
|
DEF3DEPN+=$(SLB)$/$(DEFLIB3NAME).lib
|
|
.ENDIF # "$(UPDATER)"!=""
|
|
.ENDIF
|
|
|
|
.IF "$(SHL3VERSIONMAP)"!=""
|
|
.IF "$(DEF3EXPORTFILE)"==""
|
|
.IF "$(GUI)"=="WNT"
|
|
DEF3EXPORTFILE=$(MISC)$/$(SHL3VERSIONMAP:b)_$(SHL3TARGET).dxp
|
|
$(DEF3EXPORTFILE) : $(SHL3VERSIONMAP)
|
|
+$(TYPE) $< | $(AWK) -f $(SOLARENV)$/bin$/getcsym.awk > $@
|
|
|
|
.ENDIF # "$(GUI)"=="WNT"
|
|
.ENDIF # "$(DEF3EXPORTFILE)"==""
|
|
.ENDIF # "$(SHL3VERSIONMAP)"!=""
|
|
|
|
.IF "$(GUI)"=="WNT"
|
|
|
|
DEF3FILTER=$(SOLARENV)$/inc$/dummy.flt
|
|
|
|
.IF "$(MWS_BUILD)"!=""
|
|
.IF "$(UPDATER)"!=""
|
|
.IF "$(DEFLIB3NAME)"!=""
|
|
|
|
DEF3UNIQE:=$(mktmp $(GUI))
|
|
|
|
# %_disk is a 4nt special; don't exppect it to work in any other shell
|
|
BUILD_DRIVE3:=$(shell +echo %_disk)
|
|
#BUILD_DRIVE3:=O
|
|
|
|
.IF "$(BUILD_DRIVE3)"=="O"
|
|
# in case of RE build, protect against failed lock
|
|
EXPORT3_PROTECT=$(TMP)$/$(DEF3UNIQE:b).bat &&
|
|
.ENDIF # "$(BUILD_DRIVE3)"=="O"
|
|
|
|
.ENDIF # "$(DEFLIB3NAME)"!=""
|
|
.ENDIF # "$(UPDATER)"!=""
|
|
.ENDIF # "$(MWS_BUILD)"!=""
|
|
|
|
.IF "$(link_always)"==""
|
|
$(DEF3TARGETN) : \
|
|
$(DEF3DEPN) \
|
|
$(DEF3EXPORTFILE)
|
|
.ELSE # "$(link_always)"==""
|
|
$(DEF3TARGETN) .PHONY :
|
|
.ENDIF # "$(link_always)"==""
|
|
.IF "$(MWS_BUILD)"!=""
|
|
.IF "$(UPDATER)"!=""
|
|
.IF "$(DEFLIB3NAME)"!=""
|
|
.IF "$(BUILD_DRIVE3)"=="O"
|
|
#
|
|
# don't forget to have the right DEFSTAG set!
|
|
#
|
|
+$(PERL) $(COMMON_ENV_TOOLS)$/lockcidef.pl -u$(DEF3UNIQE:b) update $(DEFSTAG)
|
|
.ENDIF # "$(BUILD_DRIVE3)"=="O"
|
|
.ENDIF # "$(DEFLIB3NAME)"!=""
|
|
.ENDIF # "$(UPDATER)"!=""
|
|
.ENDIF # "$(MWS_BUILD)"!=""
|
|
# +-attrib -r defs$/$(OUTPATH)
|
|
@+-$(RM) $@.tmpfile
|
|
@echo ------------------------------
|
|
@echo Making Module-Definitionfile : $@
|
|
@echo LIBRARY $(SHL3TARGETN:f) >$@.tmpfile
|
|
@echo HEAPSIZE 0 >>$@.tmpfile
|
|
@echo EXPORTS >>$@.tmpfile
|
|
# getversioninfo fuer alle!!
|
|
@echo GetVersionInfo >>$@.tmpfile
|
|
.IF "$(NO_SHL3DESCRIPTION)"==""
|
|
@echo component_getDescriptionFunc >>$@.tmpfile
|
|
.ENDIF # "$(NO_SHL3DESCRIPTION)"==""
|
|
.IF "$(DEFLIB3NAME)"!=""
|
|
.IF "$(SHL3USE_EXPORTS)"!="ordinal"
|
|
@-+$(EXPORT3_PROTECT) $(RM) $(MISC)$/$(SHL3TARGET).exp
|
|
@+$(EXPORT3_PROTECT) $(LIBMGR) -EXTRACT:/ /OUT:$(MISC)$/$(SHL3TARGET).exp $(SLB)$/$(DEFLIB3NAME).lib
|
|
.IF "$(DEF3CEXP)"!=""
|
|
@+$(EXPORT3_PROTECT) $(LDUMP2) -A $(DEF3CEXP) -E 20 -F $(MISC)$/$(SHL3TARGET).flt $(MISC)$/$(SHL3TARGET).exp >>$@.tmpfile
|
|
.ELSE
|
|
@+$(EXPORT3_PROTECT) $(LDUMP2) -E 20 -F $(MISC)$/$(SHL3TARGET).flt $(MISC)$/$(SHL3TARGET).exp >>$@.tmpfile
|
|
.ENDIF
|
|
+$(EXPORT3_PROTECT) $(RM) $(MISC)$/$(SHL3TARGET).exp
|
|
.ELSE # "$(SHL3USE_EXPORTS)"!="ordinal"
|
|
@+$(EXPORT3_PROTECT) $(DUMPBIN) -DIRECTIVES $(SLB)$/$(DEFLIB3NAME).lib | $(GREP) EXPORT: > $(MISC)$/$(SHL3TARGET).direct
|
|
.IF "$(DEF3CEXP)"!=""
|
|
@+$(EXPORT3_PROTECT) $(LDUMP2) -D -A $(DEF3CEXP) -E 20 -F $(DEF3FILTER) $(MISC)$/$(SHL3TARGET).direct >>$@.tmpfile
|
|
.ELSE
|
|
@+$(EXPORT3_PROTECT) $(LDUMP2) -D -E 20 -F $(DEF3FILTER) $(MISC)$/$(SHL3TARGET).direct >>$@.tmpfile
|
|
.ENDIF
|
|
.ENDIF # "$(SHL3USE_EXPORTS)"!="ordinal"
|
|
# now *\defs\$(OUTPATH) exists, commit it
|
|
.IF "$(MWS_BUILD)"!=""
|
|
.IF "$(UPDATER)"!=""
|
|
.IF "$(BUILD_DRIVE3)"=="O"
|
|
#
|
|
# don't forget to have the right DEFSTAG set!
|
|
#
|
|
+$(PERL) $(COMMON_ENV_TOOLS)$/lockcidef.pl -u$(DEF3UNIQE:b) commit
|
|
+$(TMP)$/$(DEF3UNIQE:b).bat && $(RM) $(TMP)$/$(DEF3UNIQE:b).bat
|
|
.ENDIF # "$(BUILD_DRIVE3)"=="O"
|
|
.ENDIF # "$(UPDATER)"!=""
|
|
.ENDIF # "$(MWS_BUILD)"!=""
|
|
.ENDIF # "$(DEFLIB3NAME)"!=""
|
|
.IF "$(DEF3EXPORT1)"!=""
|
|
@echo $(DEF3EXPORT1) >>$@.tmpfile
|
|
.ENDIF
|
|
.IF "$(DEF3EXPORT2)"!=""
|
|
@echo $(DEF3EXPORT2) >>$@.tmpfile
|
|
.ENDIF
|
|
.IF "$(DEF3EXPORT3)"!=""
|
|
@echo $(DEF3EXPORT3) >>$@.tmpfile
|
|
.ENDIF
|
|
.IF "$(DEF3EXPORT4)"!=""
|
|
@echo $(DEF3EXPORT4) >>$@.tmpfile
|
|
.ENDIF
|
|
.IF "$(DEF3EXPORT5)"!=""
|
|
@echo $(DEF3EXPORT5) >>$@.tmpfile
|
|
.ENDIF
|
|
.IF "$(DEF3EXPORT6)"!=""
|
|
@echo $(DEF3EXPORT6) >>$@.tmpfile
|
|
.ENDIF
|
|
.IF "$(DEF3EXPORT7)"!=""
|
|
@echo $(DEF3EXPORT7) >>$@.tmpfile
|
|
.ENDIF
|
|
.IF "$(DEF3EXPORT8)"!=""
|
|
@echo $(DEF3EXPORT8) >>$@.tmpfile
|
|
.ENDIF
|
|
.IF "$(DEF3EXPORT9)"!=""
|
|
@echo $(DEF3EXPORT9) >>$@.tmpfile
|
|
.ENDIF
|
|
.IF "$(DEF3EXPORT10)"!=""
|
|
@echo $(DEF3EXPORT10) >>$@.tmpfile
|
|
.ENDIF
|
|
.IF "$(DEF3EXPORT11)"!=""
|
|
@echo $(DEF3EXPORT11) >>$@.tmpfile
|
|
.ENDIF
|
|
.IF "$(DEF3EXPORT12)"!=""
|
|
@echo $(DEF3EXPORT12) >>$@.tmpfile
|
|
.ENDIF
|
|
.IF "$(DEF3EXPORT13)"!=""
|
|
@echo $(DEF3EXPORT13) >>$@.tmpfile
|
|
.ENDIF
|
|
.IF "$(DEF3EXPORT14)"!=""
|
|
@echo $(DEF3EXPORT14) >>$@.tmpfile
|
|
.ENDIF
|
|
.IF "$(DEF3EXPORT15)"!=""
|
|
@echo $(DEF3EXPORT15) >>$@.tmpfile
|
|
.ENDIF
|
|
.IF "$(DEF3EXPORT16)"!=""
|
|
@echo $(DEF3EXPORT16) >>$@.tmpfile
|
|
.ENDIF
|
|
.IF "$(DEF3EXPORT17)"!=""
|
|
@echo $(DEF3EXPORT17) >>$@.tmpfile
|
|
.ENDIF
|
|
.IF "$(DEF3EXPORT18)"!=""
|
|
@echo $(DEF3EXPORT18) >>$@.tmpfile
|
|
.ENDIF
|
|
.IF "$(DEF3EXPORT19)"!=""
|
|
@echo $(DEF3EXPORT19) >>$@.tmpfile
|
|
.ENDIF
|
|
.IF "$(DEF3EXPORT20)"!=""
|
|
@echo $(DEF3EXPORT20) >>$@.tmpfile
|
|
.ENDIF
|
|
.IF "$(DEF3EXPORTFILE)"!=""
|
|
+$(TYPE) $(DEF3EXPORTFILE) >> $@.tmpfile
|
|
.ENDIF
|
|
@+-$(RM) $@
|
|
@+$(RENAME) $@.tmpfile $@
|
|
.ENDIF # "$(GUI)"=="WNT"
|
|
|
|
.IF "$(GUI)"=="UNX"
|
|
$(DEF3TARGETN): \
|
|
$(DEF3DEPN) \
|
|
$(DEF3EXPORTFILE)
|
|
@echo ------------------------------
|
|
@echo Making Module-Definitionfile : $@
|
|
@echo just a dummy for UNIX
|
|
@echo > $@
|
|
.ENDIF
|
|
.ENDIF # "$(DEF3TARGETN)"!=""
|
|
|
|
|
|
# Anweisungen fuer das Linken
|
|
# unroll begin
|
|
|
|
.IF "$(DEF4TARGETN)"!=""
|
|
|
|
#to make intuitiv naming work
|
|
.IF "$(DEF4LIBNAME)"!=""
|
|
DEFLIB4NAME*=$(DEF4LIBNAME)
|
|
.ENDIF # "$(DEF4LIBNAME)"!=""
|
|
|
|
.IF "$(DEFLIB4NAME)"!=""
|
|
.IF "$(UPDATER)"!=""
|
|
DEF4DEPN+=$(SLB)$/$(DEFLIB4NAME).lib
|
|
.ENDIF # "$(UPDATER)"!=""
|
|
.ENDIF
|
|
|
|
.IF "$(SHL4VERSIONMAP)"!=""
|
|
.IF "$(DEF4EXPORTFILE)"==""
|
|
.IF "$(GUI)"=="WNT"
|
|
DEF4EXPORTFILE=$(MISC)$/$(SHL4VERSIONMAP:b)_$(SHL4TARGET).dxp
|
|
$(DEF4EXPORTFILE) : $(SHL4VERSIONMAP)
|
|
+$(TYPE) $< | $(AWK) -f $(SOLARENV)$/bin$/getcsym.awk > $@
|
|
|
|
.ENDIF # "$(GUI)"=="WNT"
|
|
.ENDIF # "$(DEF4EXPORTFILE)"==""
|
|
.ENDIF # "$(SHL4VERSIONMAP)"!=""
|
|
|
|
.IF "$(GUI)"=="WNT"
|
|
|
|
DEF4FILTER=$(SOLARENV)$/inc$/dummy.flt
|
|
|
|
.IF "$(MWS_BUILD)"!=""
|
|
.IF "$(UPDATER)"!=""
|
|
.IF "$(DEFLIB4NAME)"!=""
|
|
|
|
DEF4UNIQE:=$(mktmp $(GUI))
|
|
|
|
# %_disk is a 4nt special; don't exppect it to work in any other shell
|
|
BUILD_DRIVE4:=$(shell +echo %_disk)
|
|
#BUILD_DRIVE4:=O
|
|
|
|
.IF "$(BUILD_DRIVE4)"=="O"
|
|
# in case of RE build, protect against failed lock
|
|
EXPORT4_PROTECT=$(TMP)$/$(DEF4UNIQE:b).bat &&
|
|
.ENDIF # "$(BUILD_DRIVE4)"=="O"
|
|
|
|
.ENDIF # "$(DEFLIB4NAME)"!=""
|
|
.ENDIF # "$(UPDATER)"!=""
|
|
.ENDIF # "$(MWS_BUILD)"!=""
|
|
|
|
.IF "$(link_always)"==""
|
|
$(DEF4TARGETN) : \
|
|
$(DEF4DEPN) \
|
|
$(DEF4EXPORTFILE)
|
|
.ELSE # "$(link_always)"==""
|
|
$(DEF4TARGETN) .PHONY :
|
|
.ENDIF # "$(link_always)"==""
|
|
.IF "$(MWS_BUILD)"!=""
|
|
.IF "$(UPDATER)"!=""
|
|
.IF "$(DEFLIB4NAME)"!=""
|
|
.IF "$(BUILD_DRIVE4)"=="O"
|
|
#
|
|
# don't forget to have the right DEFSTAG set!
|
|
#
|
|
+$(PERL) $(COMMON_ENV_TOOLS)$/lockcidef.pl -u$(DEF4UNIQE:b) update $(DEFSTAG)
|
|
.ENDIF # "$(BUILD_DRIVE4)"=="O"
|
|
.ENDIF # "$(DEFLIB4NAME)"!=""
|
|
.ENDIF # "$(UPDATER)"!=""
|
|
.ENDIF # "$(MWS_BUILD)"!=""
|
|
# +-attrib -r defs$/$(OUTPATH)
|
|
@+-$(RM) $@.tmpfile
|
|
@echo ------------------------------
|
|
@echo Making Module-Definitionfile : $@
|
|
@echo LIBRARY $(SHL4TARGETN:f) >$@.tmpfile
|
|
@echo HEAPSIZE 0 >>$@.tmpfile
|
|
@echo EXPORTS >>$@.tmpfile
|
|
# getversioninfo fuer alle!!
|
|
@echo GetVersionInfo >>$@.tmpfile
|
|
.IF "$(NO_SHL4DESCRIPTION)"==""
|
|
@echo component_getDescriptionFunc >>$@.tmpfile
|
|
.ENDIF # "$(NO_SHL4DESCRIPTION)"==""
|
|
.IF "$(DEFLIB4NAME)"!=""
|
|
.IF "$(SHL4USE_EXPORTS)"!="ordinal"
|
|
@-+$(EXPORT4_PROTECT) $(RM) $(MISC)$/$(SHL4TARGET).exp
|
|
@+$(EXPORT4_PROTECT) $(LIBMGR) -EXTRACT:/ /OUT:$(MISC)$/$(SHL4TARGET).exp $(SLB)$/$(DEFLIB4NAME).lib
|
|
.IF "$(DEF4CEXP)"!=""
|
|
@+$(EXPORT4_PROTECT) $(LDUMP2) -A $(DEF4CEXP) -E 20 -F $(MISC)$/$(SHL4TARGET).flt $(MISC)$/$(SHL4TARGET).exp >>$@.tmpfile
|
|
.ELSE
|
|
@+$(EXPORT4_PROTECT) $(LDUMP2) -E 20 -F $(MISC)$/$(SHL4TARGET).flt $(MISC)$/$(SHL4TARGET).exp >>$@.tmpfile
|
|
.ENDIF
|
|
+$(EXPORT4_PROTECT) $(RM) $(MISC)$/$(SHL4TARGET).exp
|
|
.ELSE # "$(SHL4USE_EXPORTS)"!="ordinal"
|
|
@+$(EXPORT4_PROTECT) $(DUMPBIN) -DIRECTIVES $(SLB)$/$(DEFLIB4NAME).lib | $(GREP) EXPORT: > $(MISC)$/$(SHL4TARGET).direct
|
|
.IF "$(DEF4CEXP)"!=""
|
|
@+$(EXPORT4_PROTECT) $(LDUMP2) -D -A $(DEF4CEXP) -E 20 -F $(DEF4FILTER) $(MISC)$/$(SHL4TARGET).direct >>$@.tmpfile
|
|
.ELSE
|
|
@+$(EXPORT4_PROTECT) $(LDUMP2) -D -E 20 -F $(DEF4FILTER) $(MISC)$/$(SHL4TARGET).direct >>$@.tmpfile
|
|
.ENDIF
|
|
.ENDIF # "$(SHL4USE_EXPORTS)"!="ordinal"
|
|
# now *\defs\$(OUTPATH) exists, commit it
|
|
.IF "$(MWS_BUILD)"!=""
|
|
.IF "$(UPDATER)"!=""
|
|
.IF "$(BUILD_DRIVE4)"=="O"
|
|
#
|
|
# don't forget to have the right DEFSTAG set!
|
|
#
|
|
+$(PERL) $(COMMON_ENV_TOOLS)$/lockcidef.pl -u$(DEF4UNIQE:b) commit
|
|
+$(TMP)$/$(DEF4UNIQE:b).bat && $(RM) $(TMP)$/$(DEF4UNIQE:b).bat
|
|
.ENDIF # "$(BUILD_DRIVE4)"=="O"
|
|
.ENDIF # "$(UPDATER)"!=""
|
|
.ENDIF # "$(MWS_BUILD)"!=""
|
|
.ENDIF # "$(DEFLIB4NAME)"!=""
|
|
.IF "$(DEF4EXPORT1)"!=""
|
|
@echo $(DEF4EXPORT1) >>$@.tmpfile
|
|
.ENDIF
|
|
.IF "$(DEF4EXPORT2)"!=""
|
|
@echo $(DEF4EXPORT2) >>$@.tmpfile
|
|
.ENDIF
|
|
.IF "$(DEF4EXPORT3)"!=""
|
|
@echo $(DEF4EXPORT3) >>$@.tmpfile
|
|
.ENDIF
|
|
.IF "$(DEF4EXPORT4)"!=""
|
|
@echo $(DEF4EXPORT4) >>$@.tmpfile
|
|
.ENDIF
|
|
.IF "$(DEF4EXPORT5)"!=""
|
|
@echo $(DEF4EXPORT5) >>$@.tmpfile
|
|
.ENDIF
|
|
.IF "$(DEF4EXPORT6)"!=""
|
|
@echo $(DEF4EXPORT6) >>$@.tmpfile
|
|
.ENDIF
|
|
.IF "$(DEF4EXPORT7)"!=""
|
|
@echo $(DEF4EXPORT7) >>$@.tmpfile
|
|
.ENDIF
|
|
.IF "$(DEF4EXPORT8)"!=""
|
|
@echo $(DEF4EXPORT8) >>$@.tmpfile
|
|
.ENDIF
|
|
.IF "$(DEF4EXPORT9)"!=""
|
|
@echo $(DEF4EXPORT9) >>$@.tmpfile
|
|
.ENDIF
|
|
.IF "$(DEF4EXPORT10)"!=""
|
|
@echo $(DEF4EXPORT10) >>$@.tmpfile
|
|
.ENDIF
|
|
.IF "$(DEF4EXPORT11)"!=""
|
|
@echo $(DEF4EXPORT11) >>$@.tmpfile
|
|
.ENDIF
|
|
.IF "$(DEF4EXPORT12)"!=""
|
|
@echo $(DEF4EXPORT12) >>$@.tmpfile
|
|
.ENDIF
|
|
.IF "$(DEF4EXPORT13)"!=""
|
|
@echo $(DEF4EXPORT13) >>$@.tmpfile
|
|
.ENDIF
|
|
.IF "$(DEF4EXPORT14)"!=""
|
|
@echo $(DEF4EXPORT14) >>$@.tmpfile
|
|
.ENDIF
|
|
.IF "$(DEF4EXPORT15)"!=""
|
|
@echo $(DEF4EXPORT15) >>$@.tmpfile
|
|
.ENDIF
|
|
.IF "$(DEF4EXPORT16)"!=""
|
|
@echo $(DEF4EXPORT16) >>$@.tmpfile
|
|
.ENDIF
|
|
.IF "$(DEF4EXPORT17)"!=""
|
|
@echo $(DEF4EXPORT17) >>$@.tmpfile
|
|
.ENDIF
|
|
.IF "$(DEF4EXPORT18)"!=""
|
|
@echo $(DEF4EXPORT18) >>$@.tmpfile
|
|
.ENDIF
|
|
.IF "$(DEF4EXPORT19)"!=""
|
|
@echo $(DEF4EXPORT19) >>$@.tmpfile
|
|
.ENDIF
|
|
.IF "$(DEF4EXPORT20)"!=""
|
|
@echo $(DEF4EXPORT20) >>$@.tmpfile
|
|
.ENDIF
|
|
.IF "$(DEF4EXPORTFILE)"!=""
|
|
+$(TYPE) $(DEF4EXPORTFILE) >> $@.tmpfile
|
|
.ENDIF
|
|
@+-$(RM) $@
|
|
@+$(RENAME) $@.tmpfile $@
|
|
.ENDIF # "$(GUI)"=="WNT"
|
|
|
|
.IF "$(GUI)"=="UNX"
|
|
$(DEF4TARGETN): \
|
|
$(DEF4DEPN) \
|
|
$(DEF4EXPORTFILE)
|
|
@echo ------------------------------
|
|
@echo Making Module-Definitionfile : $@
|
|
@echo just a dummy for UNIX
|
|
@echo > $@
|
|
.ENDIF
|
|
.ENDIF # "$(DEF4TARGETN)"!=""
|
|
|
|
|
|
# Anweisungen fuer das Linken
|
|
# unroll begin
|
|
|
|
.IF "$(DEF5TARGETN)"!=""
|
|
|
|
#to make intuitiv naming work
|
|
.IF "$(DEF5LIBNAME)"!=""
|
|
DEFLIB5NAME*=$(DEF5LIBNAME)
|
|
.ENDIF # "$(DEF5LIBNAME)"!=""
|
|
|
|
.IF "$(DEFLIB5NAME)"!=""
|
|
.IF "$(UPDATER)"!=""
|
|
DEF5DEPN+=$(SLB)$/$(DEFLIB5NAME).lib
|
|
.ENDIF # "$(UPDATER)"!=""
|
|
.ENDIF
|
|
|
|
.IF "$(SHL5VERSIONMAP)"!=""
|
|
.IF "$(DEF5EXPORTFILE)"==""
|
|
.IF "$(GUI)"=="WNT"
|
|
DEF5EXPORTFILE=$(MISC)$/$(SHL5VERSIONMAP:b)_$(SHL5TARGET).dxp
|
|
$(DEF5EXPORTFILE) : $(SHL5VERSIONMAP)
|
|
+$(TYPE) $< | $(AWK) -f $(SOLARENV)$/bin$/getcsym.awk > $@
|
|
|
|
.ENDIF # "$(GUI)"=="WNT"
|
|
.ENDIF # "$(DEF5EXPORTFILE)"==""
|
|
.ENDIF # "$(SHL5VERSIONMAP)"!=""
|
|
|
|
.IF "$(GUI)"=="WNT"
|
|
|
|
DEF5FILTER=$(SOLARENV)$/inc$/dummy.flt
|
|
|
|
.IF "$(MWS_BUILD)"!=""
|
|
.IF "$(UPDATER)"!=""
|
|
.IF "$(DEFLIB5NAME)"!=""
|
|
|
|
DEF5UNIQE:=$(mktmp $(GUI))
|
|
|
|
# %_disk is a 4nt special; don't exppect it to work in any other shell
|
|
BUILD_DRIVE5:=$(shell +echo %_disk)
|
|
#BUILD_DRIVE5:=O
|
|
|
|
.IF "$(BUILD_DRIVE5)"=="O"
|
|
# in case of RE build, protect against failed lock
|
|
EXPORT5_PROTECT=$(TMP)$/$(DEF5UNIQE:b).bat &&
|
|
.ENDIF # "$(BUILD_DRIVE5)"=="O"
|
|
|
|
.ENDIF # "$(DEFLIB5NAME)"!=""
|
|
.ENDIF # "$(UPDATER)"!=""
|
|
.ENDIF # "$(MWS_BUILD)"!=""
|
|
|
|
.IF "$(link_always)"==""
|
|
$(DEF5TARGETN) : \
|
|
$(DEF5DEPN) \
|
|
$(DEF5EXPORTFILE)
|
|
.ELSE # "$(link_always)"==""
|
|
$(DEF5TARGETN) .PHONY :
|
|
.ENDIF # "$(link_always)"==""
|
|
.IF "$(MWS_BUILD)"!=""
|
|
.IF "$(UPDATER)"!=""
|
|
.IF "$(DEFLIB5NAME)"!=""
|
|
.IF "$(BUILD_DRIVE5)"=="O"
|
|
#
|
|
# don't forget to have the right DEFSTAG set!
|
|
#
|
|
+$(PERL) $(COMMON_ENV_TOOLS)$/lockcidef.pl -u$(DEF5UNIQE:b) update $(DEFSTAG)
|
|
.ENDIF # "$(BUILD_DRIVE5)"=="O"
|
|
.ENDIF # "$(DEFLIB5NAME)"!=""
|
|
.ENDIF # "$(UPDATER)"!=""
|
|
.ENDIF # "$(MWS_BUILD)"!=""
|
|
# +-attrib -r defs$/$(OUTPATH)
|
|
@+-$(RM) $@.tmpfile
|
|
@echo ------------------------------
|
|
@echo Making Module-Definitionfile : $@
|
|
@echo LIBRARY $(SHL5TARGETN:f) >$@.tmpfile
|
|
@echo HEAPSIZE 0 >>$@.tmpfile
|
|
@echo EXPORTS >>$@.tmpfile
|
|
# getversioninfo fuer alle!!
|
|
@echo GetVersionInfo >>$@.tmpfile
|
|
.IF "$(NO_SHL5DESCRIPTION)"==""
|
|
@echo component_getDescriptionFunc >>$@.tmpfile
|
|
.ENDIF # "$(NO_SHL5DESCRIPTION)"==""
|
|
.IF "$(DEFLIB5NAME)"!=""
|
|
.IF "$(SHL5USE_EXPORTS)"!="ordinal"
|
|
@-+$(EXPORT5_PROTECT) $(RM) $(MISC)$/$(SHL5TARGET).exp
|
|
@+$(EXPORT5_PROTECT) $(LIBMGR) -EXTRACT:/ /OUT:$(MISC)$/$(SHL5TARGET).exp $(SLB)$/$(DEFLIB5NAME).lib
|
|
.IF "$(DEF5CEXP)"!=""
|
|
@+$(EXPORT5_PROTECT) $(LDUMP2) -A $(DEF5CEXP) -E 20 -F $(MISC)$/$(SHL5TARGET).flt $(MISC)$/$(SHL5TARGET).exp >>$@.tmpfile
|
|
.ELSE
|
|
@+$(EXPORT5_PROTECT) $(LDUMP2) -E 20 -F $(MISC)$/$(SHL5TARGET).flt $(MISC)$/$(SHL5TARGET).exp >>$@.tmpfile
|
|
.ENDIF
|
|
+$(EXPORT5_PROTECT) $(RM) $(MISC)$/$(SHL5TARGET).exp
|
|
.ELSE # "$(SHL5USE_EXPORTS)"!="ordinal"
|
|
@+$(EXPORT5_PROTECT) $(DUMPBIN) -DIRECTIVES $(SLB)$/$(DEFLIB5NAME).lib | $(GREP) EXPORT: > $(MISC)$/$(SHL5TARGET).direct
|
|
.IF "$(DEF5CEXP)"!=""
|
|
@+$(EXPORT5_PROTECT) $(LDUMP2) -D -A $(DEF5CEXP) -E 20 -F $(DEF5FILTER) $(MISC)$/$(SHL5TARGET).direct >>$@.tmpfile
|
|
.ELSE
|
|
@+$(EXPORT5_PROTECT) $(LDUMP2) -D -E 20 -F $(DEF5FILTER) $(MISC)$/$(SHL5TARGET).direct >>$@.tmpfile
|
|
.ENDIF
|
|
.ENDIF # "$(SHL5USE_EXPORTS)"!="ordinal"
|
|
# now *\defs\$(OUTPATH) exists, commit it
|
|
.IF "$(MWS_BUILD)"!=""
|
|
.IF "$(UPDATER)"!=""
|
|
.IF "$(BUILD_DRIVE5)"=="O"
|
|
#
|
|
# don't forget to have the right DEFSTAG set!
|
|
#
|
|
+$(PERL) $(COMMON_ENV_TOOLS)$/lockcidef.pl -u$(DEF5UNIQE:b) commit
|
|
+$(TMP)$/$(DEF5UNIQE:b).bat && $(RM) $(TMP)$/$(DEF5UNIQE:b).bat
|
|
.ENDIF # "$(BUILD_DRIVE5)"=="O"
|
|
.ENDIF # "$(UPDATER)"!=""
|
|
.ENDIF # "$(MWS_BUILD)"!=""
|
|
.ENDIF # "$(DEFLIB5NAME)"!=""
|
|
.IF "$(DEF5EXPORT1)"!=""
|
|
@echo $(DEF5EXPORT1) >>$@.tmpfile
|
|
.ENDIF
|
|
.IF "$(DEF5EXPORT2)"!=""
|
|
@echo $(DEF5EXPORT2) >>$@.tmpfile
|
|
.ENDIF
|
|
.IF "$(DEF5EXPORT3)"!=""
|
|
@echo $(DEF5EXPORT3) >>$@.tmpfile
|
|
.ENDIF
|
|
.IF "$(DEF5EXPORT4)"!=""
|
|
@echo $(DEF5EXPORT4) >>$@.tmpfile
|
|
.ENDIF
|
|
.IF "$(DEF5EXPORT5)"!=""
|
|
@echo $(DEF5EXPORT5) >>$@.tmpfile
|
|
.ENDIF
|
|
.IF "$(DEF5EXPORT6)"!=""
|
|
@echo $(DEF5EXPORT6) >>$@.tmpfile
|
|
.ENDIF
|
|
.IF "$(DEF5EXPORT7)"!=""
|
|
@echo $(DEF5EXPORT7) >>$@.tmpfile
|
|
.ENDIF
|
|
.IF "$(DEF5EXPORT8)"!=""
|
|
@echo $(DEF5EXPORT8) >>$@.tmpfile
|
|
.ENDIF
|
|
.IF "$(DEF5EXPORT9)"!=""
|
|
@echo $(DEF5EXPORT9) >>$@.tmpfile
|
|
.ENDIF
|
|
.IF "$(DEF5EXPORT10)"!=""
|
|
@echo $(DEF5EXPORT10) >>$@.tmpfile
|
|
.ENDIF
|
|
.IF "$(DEF5EXPORT11)"!=""
|
|
@echo $(DEF5EXPORT11) >>$@.tmpfile
|
|
.ENDIF
|
|
.IF "$(DEF5EXPORT12)"!=""
|
|
@echo $(DEF5EXPORT12) >>$@.tmpfile
|
|
.ENDIF
|
|
.IF "$(DEF5EXPORT13)"!=""
|
|
@echo $(DEF5EXPORT13) >>$@.tmpfile
|
|
.ENDIF
|
|
.IF "$(DEF5EXPORT14)"!=""
|
|
@echo $(DEF5EXPORT14) >>$@.tmpfile
|
|
.ENDIF
|
|
.IF "$(DEF5EXPORT15)"!=""
|
|
@echo $(DEF5EXPORT15) >>$@.tmpfile
|
|
.ENDIF
|
|
.IF "$(DEF5EXPORT16)"!=""
|
|
@echo $(DEF5EXPORT16) >>$@.tmpfile
|
|
.ENDIF
|
|
.IF "$(DEF5EXPORT17)"!=""
|
|
@echo $(DEF5EXPORT17) >>$@.tmpfile
|
|
.ENDIF
|
|
.IF "$(DEF5EXPORT18)"!=""
|
|
@echo $(DEF5EXPORT18) >>$@.tmpfile
|
|
.ENDIF
|
|
.IF "$(DEF5EXPORT19)"!=""
|
|
@echo $(DEF5EXPORT19) >>$@.tmpfile
|
|
.ENDIF
|
|
.IF "$(DEF5EXPORT20)"!=""
|
|
@echo $(DEF5EXPORT20) >>$@.tmpfile
|
|
.ENDIF
|
|
.IF "$(DEF5EXPORTFILE)"!=""
|
|
+$(TYPE) $(DEF5EXPORTFILE) >> $@.tmpfile
|
|
.ENDIF
|
|
@+-$(RM) $@
|
|
@+$(RENAME) $@.tmpfile $@
|
|
.ENDIF # "$(GUI)"=="WNT"
|
|
|
|
.IF "$(GUI)"=="UNX"
|
|
$(DEF5TARGETN): \
|
|
$(DEF5DEPN) \
|
|
$(DEF5EXPORTFILE)
|
|
@echo ------------------------------
|
|
@echo Making Module-Definitionfile : $@
|
|
@echo just a dummy for UNIX
|
|
@echo > $@
|
|
.ENDIF
|
|
.ENDIF # "$(DEF5TARGETN)"!=""
|
|
|
|
|
|
# Anweisungen fuer das Linken
|
|
# unroll begin
|
|
|
|
.IF "$(DEF6TARGETN)"!=""
|
|
|
|
#to make intuitiv naming work
|
|
.IF "$(DEF6LIBNAME)"!=""
|
|
DEFLIB6NAME*=$(DEF6LIBNAME)
|
|
.ENDIF # "$(DEF6LIBNAME)"!=""
|
|
|
|
.IF "$(DEFLIB6NAME)"!=""
|
|
.IF "$(UPDATER)"!=""
|
|
DEF6DEPN+=$(SLB)$/$(DEFLIB6NAME).lib
|
|
.ENDIF # "$(UPDATER)"!=""
|
|
.ENDIF
|
|
|
|
.IF "$(SHL6VERSIONMAP)"!=""
|
|
.IF "$(DEF6EXPORTFILE)"==""
|
|
.IF "$(GUI)"=="WNT"
|
|
DEF6EXPORTFILE=$(MISC)$/$(SHL6VERSIONMAP:b)_$(SHL6TARGET).dxp
|
|
$(DEF6EXPORTFILE) : $(SHL6VERSIONMAP)
|
|
+$(TYPE) $< | $(AWK) -f $(SOLARENV)$/bin$/getcsym.awk > $@
|
|
|
|
.ENDIF # "$(GUI)"=="WNT"
|
|
.ENDIF # "$(DEF6EXPORTFILE)"==""
|
|
.ENDIF # "$(SHL6VERSIONMAP)"!=""
|
|
|
|
.IF "$(GUI)"=="WNT"
|
|
|
|
DEF6FILTER=$(SOLARENV)$/inc$/dummy.flt
|
|
|
|
.IF "$(MWS_BUILD)"!=""
|
|
.IF "$(UPDATER)"!=""
|
|
.IF "$(DEFLIB6NAME)"!=""
|
|
|
|
DEF6UNIQE:=$(mktmp $(GUI))
|
|
|
|
# %_disk is a 4nt special; don't exppect it to work in any other shell
|
|
BUILD_DRIVE6:=$(shell +echo %_disk)
|
|
#BUILD_DRIVE6:=O
|
|
|
|
.IF "$(BUILD_DRIVE6)"=="O"
|
|
# in case of RE build, protect against failed lock
|
|
EXPORT6_PROTECT=$(TMP)$/$(DEF6UNIQE:b).bat &&
|
|
.ENDIF # "$(BUILD_DRIVE6)"=="O"
|
|
|
|
.ENDIF # "$(DEFLIB6NAME)"!=""
|
|
.ENDIF # "$(UPDATER)"!=""
|
|
.ENDIF # "$(MWS_BUILD)"!=""
|
|
|
|
.IF "$(link_always)"==""
|
|
$(DEF6TARGETN) : \
|
|
$(DEF6DEPN) \
|
|
$(DEF6EXPORTFILE)
|
|
.ELSE # "$(link_always)"==""
|
|
$(DEF6TARGETN) .PHONY :
|
|
.ENDIF # "$(link_always)"==""
|
|
.IF "$(MWS_BUILD)"!=""
|
|
.IF "$(UPDATER)"!=""
|
|
.IF "$(DEFLIB6NAME)"!=""
|
|
.IF "$(BUILD_DRIVE6)"=="O"
|
|
#
|
|
# don't forget to have the right DEFSTAG set!
|
|
#
|
|
+$(PERL) $(COMMON_ENV_TOOLS)$/lockcidef.pl -u$(DEF6UNIQE:b) update $(DEFSTAG)
|
|
.ENDIF # "$(BUILD_DRIVE6)"=="O"
|
|
.ENDIF # "$(DEFLIB6NAME)"!=""
|
|
.ENDIF # "$(UPDATER)"!=""
|
|
.ENDIF # "$(MWS_BUILD)"!=""
|
|
# +-attrib -r defs$/$(OUTPATH)
|
|
@+-$(RM) $@.tmpfile
|
|
@echo ------------------------------
|
|
@echo Making Module-Definitionfile : $@
|
|
@echo LIBRARY $(SHL6TARGETN:f) >$@.tmpfile
|
|
@echo HEAPSIZE 0 >>$@.tmpfile
|
|
@echo EXPORTS >>$@.tmpfile
|
|
# getversioninfo fuer alle!!
|
|
@echo GetVersionInfo >>$@.tmpfile
|
|
.IF "$(NO_SHL6DESCRIPTION)"==""
|
|
@echo component_getDescriptionFunc >>$@.tmpfile
|
|
.ENDIF # "$(NO_SHL6DESCRIPTION)"==""
|
|
.IF "$(DEFLIB6NAME)"!=""
|
|
.IF "$(SHL6USE_EXPORTS)"!="ordinal"
|
|
@-+$(EXPORT6_PROTECT) $(RM) $(MISC)$/$(SHL6TARGET).exp
|
|
@+$(EXPORT6_PROTECT) $(LIBMGR) -EXTRACT:/ /OUT:$(MISC)$/$(SHL6TARGET).exp $(SLB)$/$(DEFLIB6NAME).lib
|
|
.IF "$(DEF6CEXP)"!=""
|
|
@+$(EXPORT6_PROTECT) $(LDUMP2) -A $(DEF6CEXP) -E 20 -F $(MISC)$/$(SHL6TARGET).flt $(MISC)$/$(SHL6TARGET).exp >>$@.tmpfile
|
|
.ELSE
|
|
@+$(EXPORT6_PROTECT) $(LDUMP2) -E 20 -F $(MISC)$/$(SHL6TARGET).flt $(MISC)$/$(SHL6TARGET).exp >>$@.tmpfile
|
|
.ENDIF
|
|
+$(EXPORT6_PROTECT) $(RM) $(MISC)$/$(SHL6TARGET).exp
|
|
.ELSE # "$(SHL6USE_EXPORTS)"!="ordinal"
|
|
@+$(EXPORT6_PROTECT) $(DUMPBIN) -DIRECTIVES $(SLB)$/$(DEFLIB6NAME).lib | $(GREP) EXPORT: > $(MISC)$/$(SHL6TARGET).direct
|
|
.IF "$(DEF6CEXP)"!=""
|
|
@+$(EXPORT6_PROTECT) $(LDUMP2) -D -A $(DEF6CEXP) -E 20 -F $(DEF6FILTER) $(MISC)$/$(SHL6TARGET).direct >>$@.tmpfile
|
|
.ELSE
|
|
@+$(EXPORT6_PROTECT) $(LDUMP2) -D -E 20 -F $(DEF6FILTER) $(MISC)$/$(SHL6TARGET).direct >>$@.tmpfile
|
|
.ENDIF
|
|
.ENDIF # "$(SHL6USE_EXPORTS)"!="ordinal"
|
|
# now *\defs\$(OUTPATH) exists, commit it
|
|
.IF "$(MWS_BUILD)"!=""
|
|
.IF "$(UPDATER)"!=""
|
|
.IF "$(BUILD_DRIVE6)"=="O"
|
|
#
|
|
# don't forget to have the right DEFSTAG set!
|
|
#
|
|
+$(PERL) $(COMMON_ENV_TOOLS)$/lockcidef.pl -u$(DEF6UNIQE:b) commit
|
|
+$(TMP)$/$(DEF6UNIQE:b).bat && $(RM) $(TMP)$/$(DEF6UNIQE:b).bat
|
|
.ENDIF # "$(BUILD_DRIVE6)"=="O"
|
|
.ENDIF # "$(UPDATER)"!=""
|
|
.ENDIF # "$(MWS_BUILD)"!=""
|
|
.ENDIF # "$(DEFLIB6NAME)"!=""
|
|
.IF "$(DEF6EXPORT1)"!=""
|
|
@echo $(DEF6EXPORT1) >>$@.tmpfile
|
|
.ENDIF
|
|
.IF "$(DEF6EXPORT2)"!=""
|
|
@echo $(DEF6EXPORT2) >>$@.tmpfile
|
|
.ENDIF
|
|
.IF "$(DEF6EXPORT3)"!=""
|
|
@echo $(DEF6EXPORT3) >>$@.tmpfile
|
|
.ENDIF
|
|
.IF "$(DEF6EXPORT4)"!=""
|
|
@echo $(DEF6EXPORT4) >>$@.tmpfile
|
|
.ENDIF
|
|
.IF "$(DEF6EXPORT5)"!=""
|
|
@echo $(DEF6EXPORT5) >>$@.tmpfile
|
|
.ENDIF
|
|
.IF "$(DEF6EXPORT6)"!=""
|
|
@echo $(DEF6EXPORT6) >>$@.tmpfile
|
|
.ENDIF
|
|
.IF "$(DEF6EXPORT7)"!=""
|
|
@echo $(DEF6EXPORT7) >>$@.tmpfile
|
|
.ENDIF
|
|
.IF "$(DEF6EXPORT8)"!=""
|
|
@echo $(DEF6EXPORT8) >>$@.tmpfile
|
|
.ENDIF
|
|
.IF "$(DEF6EXPORT9)"!=""
|
|
@echo $(DEF6EXPORT9) >>$@.tmpfile
|
|
.ENDIF
|
|
.IF "$(DEF6EXPORT10)"!=""
|
|
@echo $(DEF6EXPORT10) >>$@.tmpfile
|
|
.ENDIF
|
|
.IF "$(DEF6EXPORT11)"!=""
|
|
@echo $(DEF6EXPORT11) >>$@.tmpfile
|
|
.ENDIF
|
|
.IF "$(DEF6EXPORT12)"!=""
|
|
@echo $(DEF6EXPORT12) >>$@.tmpfile
|
|
.ENDIF
|
|
.IF "$(DEF6EXPORT13)"!=""
|
|
@echo $(DEF6EXPORT13) >>$@.tmpfile
|
|
.ENDIF
|
|
.IF "$(DEF6EXPORT14)"!=""
|
|
@echo $(DEF6EXPORT14) >>$@.tmpfile
|
|
.ENDIF
|
|
.IF "$(DEF6EXPORT15)"!=""
|
|
@echo $(DEF6EXPORT15) >>$@.tmpfile
|
|
.ENDIF
|
|
.IF "$(DEF6EXPORT16)"!=""
|
|
@echo $(DEF6EXPORT16) >>$@.tmpfile
|
|
.ENDIF
|
|
.IF "$(DEF6EXPORT17)"!=""
|
|
@echo $(DEF6EXPORT17) >>$@.tmpfile
|
|
.ENDIF
|
|
.IF "$(DEF6EXPORT18)"!=""
|
|
@echo $(DEF6EXPORT18) >>$@.tmpfile
|
|
.ENDIF
|
|
.IF "$(DEF6EXPORT19)"!=""
|
|
@echo $(DEF6EXPORT19) >>$@.tmpfile
|
|
.ENDIF
|
|
.IF "$(DEF6EXPORT20)"!=""
|
|
@echo $(DEF6EXPORT20) >>$@.tmpfile
|
|
.ENDIF
|
|
.IF "$(DEF6EXPORTFILE)"!=""
|
|
+$(TYPE) $(DEF6EXPORTFILE) >> $@.tmpfile
|
|
.ENDIF
|
|
@+-$(RM) $@
|
|
@+$(RENAME) $@.tmpfile $@
|
|
.ENDIF # "$(GUI)"=="WNT"
|
|
|
|
.IF "$(GUI)"=="UNX"
|
|
$(DEF6TARGETN): \
|
|
$(DEF6DEPN) \
|
|
$(DEF6EXPORTFILE)
|
|
@echo ------------------------------
|
|
@echo Making Module-Definitionfile : $@
|
|
@echo just a dummy for UNIX
|
|
@echo > $@
|
|
.ENDIF
|
|
.ENDIF # "$(DEF6TARGETN)"!=""
|
|
|
|
|
|
# Anweisungen fuer das Linken
|
|
# unroll begin
|
|
|
|
.IF "$(DEF7TARGETN)"!=""
|
|
|
|
#to make intuitiv naming work
|
|
.IF "$(DEF7LIBNAME)"!=""
|
|
DEFLIB7NAME*=$(DEF7LIBNAME)
|
|
.ENDIF # "$(DEF7LIBNAME)"!=""
|
|
|
|
.IF "$(DEFLIB7NAME)"!=""
|
|
.IF "$(UPDATER)"!=""
|
|
DEF7DEPN+=$(SLB)$/$(DEFLIB7NAME).lib
|
|
.ENDIF # "$(UPDATER)"!=""
|
|
.ENDIF
|
|
|
|
.IF "$(SHL7VERSIONMAP)"!=""
|
|
.IF "$(DEF7EXPORTFILE)"==""
|
|
.IF "$(GUI)"=="WNT"
|
|
DEF7EXPORTFILE=$(MISC)$/$(SHL7VERSIONMAP:b)_$(SHL7TARGET).dxp
|
|
$(DEF7EXPORTFILE) : $(SHL7VERSIONMAP)
|
|
+$(TYPE) $< | $(AWK) -f $(SOLARENV)$/bin$/getcsym.awk > $@
|
|
|
|
.ENDIF # "$(GUI)"=="WNT"
|
|
.ENDIF # "$(DEF7EXPORTFILE)"==""
|
|
.ENDIF # "$(SHL7VERSIONMAP)"!=""
|
|
|
|
.IF "$(GUI)"=="WNT"
|
|
|
|
DEF7FILTER=$(SOLARENV)$/inc$/dummy.flt
|
|
|
|
.IF "$(MWS_BUILD)"!=""
|
|
.IF "$(UPDATER)"!=""
|
|
.IF "$(DEFLIB7NAME)"!=""
|
|
|
|
DEF7UNIQE:=$(mktmp $(GUI))
|
|
|
|
# %_disk is a 4nt special; don't exppect it to work in any other shell
|
|
BUILD_DRIVE7:=$(shell +echo %_disk)
|
|
#BUILD_DRIVE7:=O
|
|
|
|
.IF "$(BUILD_DRIVE7)"=="O"
|
|
# in case of RE build, protect against failed lock
|
|
EXPORT7_PROTECT=$(TMP)$/$(DEF7UNIQE:b).bat &&
|
|
.ENDIF # "$(BUILD_DRIVE7)"=="O"
|
|
|
|
.ENDIF # "$(DEFLIB7NAME)"!=""
|
|
.ENDIF # "$(UPDATER)"!=""
|
|
.ENDIF # "$(MWS_BUILD)"!=""
|
|
|
|
.IF "$(link_always)"==""
|
|
$(DEF7TARGETN) : \
|
|
$(DEF7DEPN) \
|
|
$(DEF7EXPORTFILE)
|
|
.ELSE # "$(link_always)"==""
|
|
$(DEF7TARGETN) .PHONY :
|
|
.ENDIF # "$(link_always)"==""
|
|
.IF "$(MWS_BUILD)"!=""
|
|
.IF "$(UPDATER)"!=""
|
|
.IF "$(DEFLIB7NAME)"!=""
|
|
.IF "$(BUILD_DRIVE7)"=="O"
|
|
#
|
|
# don't forget to have the right DEFSTAG set!
|
|
#
|
|
+$(PERL) $(COMMON_ENV_TOOLS)$/lockcidef.pl -u$(DEF7UNIQE:b) update $(DEFSTAG)
|
|
.ENDIF # "$(BUILD_DRIVE7)"=="O"
|
|
.ENDIF # "$(DEFLIB7NAME)"!=""
|
|
.ENDIF # "$(UPDATER)"!=""
|
|
.ENDIF # "$(MWS_BUILD)"!=""
|
|
# +-attrib -r defs$/$(OUTPATH)
|
|
@+-$(RM) $@.tmpfile
|
|
@echo ------------------------------
|
|
@echo Making Module-Definitionfile : $@
|
|
@echo LIBRARY $(SHL7TARGETN:f) >$@.tmpfile
|
|
@echo HEAPSIZE 0 >>$@.tmpfile
|
|
@echo EXPORTS >>$@.tmpfile
|
|
# getversioninfo fuer alle!!
|
|
@echo GetVersionInfo >>$@.tmpfile
|
|
.IF "$(NO_SHL7DESCRIPTION)"==""
|
|
@echo component_getDescriptionFunc >>$@.tmpfile
|
|
.ENDIF # "$(NO_SHL7DESCRIPTION)"==""
|
|
.IF "$(DEFLIB7NAME)"!=""
|
|
.IF "$(SHL7USE_EXPORTS)"!="ordinal"
|
|
@-+$(EXPORT7_PROTECT) $(RM) $(MISC)$/$(SHL7TARGET).exp
|
|
@+$(EXPORT7_PROTECT) $(LIBMGR) -EXTRACT:/ /OUT:$(MISC)$/$(SHL7TARGET).exp $(SLB)$/$(DEFLIB7NAME).lib
|
|
.IF "$(DEF7CEXP)"!=""
|
|
@+$(EXPORT7_PROTECT) $(LDUMP2) -A $(DEF7CEXP) -E 20 -F $(MISC)$/$(SHL7TARGET).flt $(MISC)$/$(SHL7TARGET).exp >>$@.tmpfile
|
|
.ELSE
|
|
@+$(EXPORT7_PROTECT) $(LDUMP2) -E 20 -F $(MISC)$/$(SHL7TARGET).flt $(MISC)$/$(SHL7TARGET).exp >>$@.tmpfile
|
|
.ENDIF
|
|
+$(EXPORT7_PROTECT) $(RM) $(MISC)$/$(SHL7TARGET).exp
|
|
.ELSE # "$(SHL7USE_EXPORTS)"!="ordinal"
|
|
@+$(EXPORT7_PROTECT) $(DUMPBIN) -DIRECTIVES $(SLB)$/$(DEFLIB7NAME).lib | $(GREP) EXPORT: > $(MISC)$/$(SHL7TARGET).direct
|
|
.IF "$(DEF7CEXP)"!=""
|
|
@+$(EXPORT7_PROTECT) $(LDUMP2) -D -A $(DEF7CEXP) -E 20 -F $(DEF7FILTER) $(MISC)$/$(SHL7TARGET).direct >>$@.tmpfile
|
|
.ELSE
|
|
@+$(EXPORT7_PROTECT) $(LDUMP2) -D -E 20 -F $(DEF7FILTER) $(MISC)$/$(SHL7TARGET).direct >>$@.tmpfile
|
|
.ENDIF
|
|
.ENDIF # "$(SHL7USE_EXPORTS)"!="ordinal"
|
|
# now *\defs\$(OUTPATH) exists, commit it
|
|
.IF "$(MWS_BUILD)"!=""
|
|
.IF "$(UPDATER)"!=""
|
|
.IF "$(BUILD_DRIVE7)"=="O"
|
|
#
|
|
# don't forget to have the right DEFSTAG set!
|
|
#
|
|
+$(PERL) $(COMMON_ENV_TOOLS)$/lockcidef.pl -u$(DEF7UNIQE:b) commit
|
|
+$(TMP)$/$(DEF7UNIQE:b).bat && $(RM) $(TMP)$/$(DEF7UNIQE:b).bat
|
|
.ENDIF # "$(BUILD_DRIVE7)"=="O"
|
|
.ENDIF # "$(UPDATER)"!=""
|
|
.ENDIF # "$(MWS_BUILD)"!=""
|
|
.ENDIF # "$(DEFLIB7NAME)"!=""
|
|
.IF "$(DEF7EXPORT1)"!=""
|
|
@echo $(DEF7EXPORT1) >>$@.tmpfile
|
|
.ENDIF
|
|
.IF "$(DEF7EXPORT2)"!=""
|
|
@echo $(DEF7EXPORT2) >>$@.tmpfile
|
|
.ENDIF
|
|
.IF "$(DEF7EXPORT3)"!=""
|
|
@echo $(DEF7EXPORT3) >>$@.tmpfile
|
|
.ENDIF
|
|
.IF "$(DEF7EXPORT4)"!=""
|
|
@echo $(DEF7EXPORT4) >>$@.tmpfile
|
|
.ENDIF
|
|
.IF "$(DEF7EXPORT5)"!=""
|
|
@echo $(DEF7EXPORT5) >>$@.tmpfile
|
|
.ENDIF
|
|
.IF "$(DEF7EXPORT6)"!=""
|
|
@echo $(DEF7EXPORT6) >>$@.tmpfile
|
|
.ENDIF
|
|
.IF "$(DEF7EXPORT7)"!=""
|
|
@echo $(DEF7EXPORT7) >>$@.tmpfile
|
|
.ENDIF
|
|
.IF "$(DEF7EXPORT8)"!=""
|
|
@echo $(DEF7EXPORT8) >>$@.tmpfile
|
|
.ENDIF
|
|
.IF "$(DEF7EXPORT9)"!=""
|
|
@echo $(DEF7EXPORT9) >>$@.tmpfile
|
|
.ENDIF
|
|
.IF "$(DEF7EXPORT10)"!=""
|
|
@echo $(DEF7EXPORT10) >>$@.tmpfile
|
|
.ENDIF
|
|
.IF "$(DEF7EXPORT11)"!=""
|
|
@echo $(DEF7EXPORT11) >>$@.tmpfile
|
|
.ENDIF
|
|
.IF "$(DEF7EXPORT12)"!=""
|
|
@echo $(DEF7EXPORT12) >>$@.tmpfile
|
|
.ENDIF
|
|
.IF "$(DEF7EXPORT13)"!=""
|
|
@echo $(DEF7EXPORT13) >>$@.tmpfile
|
|
.ENDIF
|
|
.IF "$(DEF7EXPORT14)"!=""
|
|
@echo $(DEF7EXPORT14) >>$@.tmpfile
|
|
.ENDIF
|
|
.IF "$(DEF7EXPORT15)"!=""
|
|
@echo $(DEF7EXPORT15) >>$@.tmpfile
|
|
.ENDIF
|
|
.IF "$(DEF7EXPORT16)"!=""
|
|
@echo $(DEF7EXPORT16) >>$@.tmpfile
|
|
.ENDIF
|
|
.IF "$(DEF7EXPORT17)"!=""
|
|
@echo $(DEF7EXPORT17) >>$@.tmpfile
|
|
.ENDIF
|
|
.IF "$(DEF7EXPORT18)"!=""
|
|
@echo $(DEF7EXPORT18) >>$@.tmpfile
|
|
.ENDIF
|
|
.IF "$(DEF7EXPORT19)"!=""
|
|
@echo $(DEF7EXPORT19) >>$@.tmpfile
|
|
.ENDIF
|
|
.IF "$(DEF7EXPORT20)"!=""
|
|
@echo $(DEF7EXPORT20) >>$@.tmpfile
|
|
.ENDIF
|
|
.IF "$(DEF7EXPORTFILE)"!=""
|
|
+$(TYPE) $(DEF7EXPORTFILE) >> $@.tmpfile
|
|
.ENDIF
|
|
@+-$(RM) $@
|
|
@+$(RENAME) $@.tmpfile $@
|
|
.ENDIF # "$(GUI)"=="WNT"
|
|
|
|
.IF "$(GUI)"=="UNX"
|
|
$(DEF7TARGETN): \
|
|
$(DEF7DEPN) \
|
|
$(DEF7EXPORTFILE)
|
|
@echo ------------------------------
|
|
@echo Making Module-Definitionfile : $@
|
|
@echo just a dummy for UNIX
|
|
@echo > $@
|
|
.ENDIF
|
|
.ENDIF # "$(DEF7TARGETN)"!=""
|
|
|
|
|
|
# Anweisungen fuer das Linken
|
|
# unroll begin
|
|
|
|
.IF "$(DEF8TARGETN)"!=""
|
|
|
|
#to make intuitiv naming work
|
|
.IF "$(DEF8LIBNAME)"!=""
|
|
DEFLIB8NAME*=$(DEF8LIBNAME)
|
|
.ENDIF # "$(DEF8LIBNAME)"!=""
|
|
|
|
.IF "$(DEFLIB8NAME)"!=""
|
|
.IF "$(UPDATER)"!=""
|
|
DEF8DEPN+=$(SLB)$/$(DEFLIB8NAME).lib
|
|
.ENDIF # "$(UPDATER)"!=""
|
|
.ENDIF
|
|
|
|
.IF "$(SHL8VERSIONMAP)"!=""
|
|
.IF "$(DEF8EXPORTFILE)"==""
|
|
.IF "$(GUI)"=="WNT"
|
|
DEF8EXPORTFILE=$(MISC)$/$(SHL8VERSIONMAP:b)_$(SHL8TARGET).dxp
|
|
$(DEF8EXPORTFILE) : $(SHL8VERSIONMAP)
|
|
+$(TYPE) $< | $(AWK) -f $(SOLARENV)$/bin$/getcsym.awk > $@
|
|
|
|
.ENDIF # "$(GUI)"=="WNT"
|
|
.ENDIF # "$(DEF8EXPORTFILE)"==""
|
|
.ENDIF # "$(SHL8VERSIONMAP)"!=""
|
|
|
|
.IF "$(GUI)"=="WNT"
|
|
|
|
DEF8FILTER=$(SOLARENV)$/inc$/dummy.flt
|
|
|
|
.IF "$(MWS_BUILD)"!=""
|
|
.IF "$(UPDATER)"!=""
|
|
.IF "$(DEFLIB8NAME)"!=""
|
|
|
|
DEF8UNIQE:=$(mktmp $(GUI))
|
|
|
|
# %_disk is a 4nt special; don't exppect it to work in any other shell
|
|
BUILD_DRIVE8:=$(shell +echo %_disk)
|
|
#BUILD_DRIVE8:=O
|
|
|
|
.IF "$(BUILD_DRIVE8)"=="O"
|
|
# in case of RE build, protect against failed lock
|
|
EXPORT8_PROTECT=$(TMP)$/$(DEF8UNIQE:b).bat &&
|
|
.ENDIF # "$(BUILD_DRIVE8)"=="O"
|
|
|
|
.ENDIF # "$(DEFLIB8NAME)"!=""
|
|
.ENDIF # "$(UPDATER)"!=""
|
|
.ENDIF # "$(MWS_BUILD)"!=""
|
|
|
|
.IF "$(link_always)"==""
|
|
$(DEF8TARGETN) : \
|
|
$(DEF8DEPN) \
|
|
$(DEF8EXPORTFILE)
|
|
.ELSE # "$(link_always)"==""
|
|
$(DEF8TARGETN) .PHONY :
|
|
.ENDIF # "$(link_always)"==""
|
|
.IF "$(MWS_BUILD)"!=""
|
|
.IF "$(UPDATER)"!=""
|
|
.IF "$(DEFLIB8NAME)"!=""
|
|
.IF "$(BUILD_DRIVE8)"=="O"
|
|
#
|
|
# don't forget to have the right DEFSTAG set!
|
|
#
|
|
+$(PERL) $(COMMON_ENV_TOOLS)$/lockcidef.pl -u$(DEF8UNIQE:b) update $(DEFSTAG)
|
|
.ENDIF # "$(BUILD_DRIVE8)"=="O"
|
|
.ENDIF # "$(DEFLIB8NAME)"!=""
|
|
.ENDIF # "$(UPDATER)"!=""
|
|
.ENDIF # "$(MWS_BUILD)"!=""
|
|
# +-attrib -r defs$/$(OUTPATH)
|
|
@+-$(RM) $@.tmpfile
|
|
@echo ------------------------------
|
|
@echo Making Module-Definitionfile : $@
|
|
@echo LIBRARY $(SHL8TARGETN:f) >$@.tmpfile
|
|
@echo HEAPSIZE 0 >>$@.tmpfile
|
|
@echo EXPORTS >>$@.tmpfile
|
|
# getversioninfo fuer alle!!
|
|
@echo GetVersionInfo >>$@.tmpfile
|
|
.IF "$(NO_SHL8DESCRIPTION)"==""
|
|
@echo component_getDescriptionFunc >>$@.tmpfile
|
|
.ENDIF # "$(NO_SHL8DESCRIPTION)"==""
|
|
.IF "$(DEFLIB8NAME)"!=""
|
|
.IF "$(SHL8USE_EXPORTS)"!="ordinal"
|
|
@-+$(EXPORT8_PROTECT) $(RM) $(MISC)$/$(SHL8TARGET).exp
|
|
@+$(EXPORT8_PROTECT) $(LIBMGR) -EXTRACT:/ /OUT:$(MISC)$/$(SHL8TARGET).exp $(SLB)$/$(DEFLIB8NAME).lib
|
|
.IF "$(DEF8CEXP)"!=""
|
|
@+$(EXPORT8_PROTECT) $(LDUMP2) -A $(DEF8CEXP) -E 20 -F $(MISC)$/$(SHL8TARGET).flt $(MISC)$/$(SHL8TARGET).exp >>$@.tmpfile
|
|
.ELSE
|
|
@+$(EXPORT8_PROTECT) $(LDUMP2) -E 20 -F $(MISC)$/$(SHL8TARGET).flt $(MISC)$/$(SHL8TARGET).exp >>$@.tmpfile
|
|
.ENDIF
|
|
+$(EXPORT8_PROTECT) $(RM) $(MISC)$/$(SHL8TARGET).exp
|
|
.ELSE # "$(SHL8USE_EXPORTS)"!="ordinal"
|
|
@+$(EXPORT8_PROTECT) $(DUMPBIN) -DIRECTIVES $(SLB)$/$(DEFLIB8NAME).lib | $(GREP) EXPORT: > $(MISC)$/$(SHL8TARGET).direct
|
|
.IF "$(DEF8CEXP)"!=""
|
|
@+$(EXPORT8_PROTECT) $(LDUMP2) -D -A $(DEF8CEXP) -E 20 -F $(DEF8FILTER) $(MISC)$/$(SHL8TARGET).direct >>$@.tmpfile
|
|
.ELSE
|
|
@+$(EXPORT8_PROTECT) $(LDUMP2) -D -E 20 -F $(DEF8FILTER) $(MISC)$/$(SHL8TARGET).direct >>$@.tmpfile
|
|
.ENDIF
|
|
.ENDIF # "$(SHL8USE_EXPORTS)"!="ordinal"
|
|
# now *\defs\$(OUTPATH) exists, commit it
|
|
.IF "$(MWS_BUILD)"!=""
|
|
.IF "$(UPDATER)"!=""
|
|
.IF "$(BUILD_DRIVE8)"=="O"
|
|
#
|
|
# don't forget to have the right DEFSTAG set!
|
|
#
|
|
+$(PERL) $(COMMON_ENV_TOOLS)$/lockcidef.pl -u$(DEF8UNIQE:b) commit
|
|
+$(TMP)$/$(DEF8UNIQE:b).bat && $(RM) $(TMP)$/$(DEF8UNIQE:b).bat
|
|
.ENDIF # "$(BUILD_DRIVE8)"=="O"
|
|
.ENDIF # "$(UPDATER)"!=""
|
|
.ENDIF # "$(MWS_BUILD)"!=""
|
|
.ENDIF # "$(DEFLIB8NAME)"!=""
|
|
.IF "$(DEF8EXPORT1)"!=""
|
|
@echo $(DEF8EXPORT1) >>$@.tmpfile
|
|
.ENDIF
|
|
.IF "$(DEF8EXPORT2)"!=""
|
|
@echo $(DEF8EXPORT2) >>$@.tmpfile
|
|
.ENDIF
|
|
.IF "$(DEF8EXPORT3)"!=""
|
|
@echo $(DEF8EXPORT3) >>$@.tmpfile
|
|
.ENDIF
|
|
.IF "$(DEF8EXPORT4)"!=""
|
|
@echo $(DEF8EXPORT4) >>$@.tmpfile
|
|
.ENDIF
|
|
.IF "$(DEF8EXPORT5)"!=""
|
|
@echo $(DEF8EXPORT5) >>$@.tmpfile
|
|
.ENDIF
|
|
.IF "$(DEF8EXPORT6)"!=""
|
|
@echo $(DEF8EXPORT6) >>$@.tmpfile
|
|
.ENDIF
|
|
.IF "$(DEF8EXPORT7)"!=""
|
|
@echo $(DEF8EXPORT7) >>$@.tmpfile
|
|
.ENDIF
|
|
.IF "$(DEF8EXPORT8)"!=""
|
|
@echo $(DEF8EXPORT8) >>$@.tmpfile
|
|
.ENDIF
|
|
.IF "$(DEF8EXPORT9)"!=""
|
|
@echo $(DEF8EXPORT9) >>$@.tmpfile
|
|
.ENDIF
|
|
.IF "$(DEF8EXPORT10)"!=""
|
|
@echo $(DEF8EXPORT10) >>$@.tmpfile
|
|
.ENDIF
|
|
.IF "$(DEF8EXPORT11)"!=""
|
|
@echo $(DEF8EXPORT11) >>$@.tmpfile
|
|
.ENDIF
|
|
.IF "$(DEF8EXPORT12)"!=""
|
|
@echo $(DEF8EXPORT12) >>$@.tmpfile
|
|
.ENDIF
|
|
.IF "$(DEF8EXPORT13)"!=""
|
|
@echo $(DEF8EXPORT13) >>$@.tmpfile
|
|
.ENDIF
|
|
.IF "$(DEF8EXPORT14)"!=""
|
|
@echo $(DEF8EXPORT14) >>$@.tmpfile
|
|
.ENDIF
|
|
.IF "$(DEF8EXPORT15)"!=""
|
|
@echo $(DEF8EXPORT15) >>$@.tmpfile
|
|
.ENDIF
|
|
.IF "$(DEF8EXPORT16)"!=""
|
|
@echo $(DEF8EXPORT16) >>$@.tmpfile
|
|
.ENDIF
|
|
.IF "$(DEF8EXPORT17)"!=""
|
|
@echo $(DEF8EXPORT17) >>$@.tmpfile
|
|
.ENDIF
|
|
.IF "$(DEF8EXPORT18)"!=""
|
|
@echo $(DEF8EXPORT18) >>$@.tmpfile
|
|
.ENDIF
|
|
.IF "$(DEF8EXPORT19)"!=""
|
|
@echo $(DEF8EXPORT19) >>$@.tmpfile
|
|
.ENDIF
|
|
.IF "$(DEF8EXPORT20)"!=""
|
|
@echo $(DEF8EXPORT20) >>$@.tmpfile
|
|
.ENDIF
|
|
.IF "$(DEF8EXPORTFILE)"!=""
|
|
+$(TYPE) $(DEF8EXPORTFILE) >> $@.tmpfile
|
|
.ENDIF
|
|
@+-$(RM) $@
|
|
@+$(RENAME) $@.tmpfile $@
|
|
.ENDIF # "$(GUI)"=="WNT"
|
|
|
|
.IF "$(GUI)"=="UNX"
|
|
$(DEF8TARGETN): \
|
|
$(DEF8DEPN) \
|
|
$(DEF8EXPORTFILE)
|
|
@echo ------------------------------
|
|
@echo Making Module-Definitionfile : $@
|
|
@echo just a dummy for UNIX
|
|
@echo > $@
|
|
.ENDIF
|
|
.ENDIF # "$(DEF8TARGETN)"!=""
|
|
|
|
|
|
# Anweisungen fuer das Linken
|
|
# unroll begin
|
|
|
|
.IF "$(DEF9TARGETN)"!=""
|
|
|
|
#to make intuitiv naming work
|
|
.IF "$(DEF9LIBNAME)"!=""
|
|
DEFLIB9NAME*=$(DEF9LIBNAME)
|
|
.ENDIF # "$(DEF9LIBNAME)"!=""
|
|
|
|
.IF "$(DEFLIB9NAME)"!=""
|
|
.IF "$(UPDATER)"!=""
|
|
DEF9DEPN+=$(SLB)$/$(DEFLIB9NAME).lib
|
|
.ENDIF # "$(UPDATER)"!=""
|
|
.ENDIF
|
|
|
|
.IF "$(SHL9VERSIONMAP)"!=""
|
|
.IF "$(DEF9EXPORTFILE)"==""
|
|
.IF "$(GUI)"=="WNT"
|
|
DEF9EXPORTFILE=$(MISC)$/$(SHL9VERSIONMAP:b)_$(SHL9TARGET).dxp
|
|
$(DEF9EXPORTFILE) : $(SHL9VERSIONMAP)
|
|
+$(TYPE) $< | $(AWK) -f $(SOLARENV)$/bin$/getcsym.awk > $@
|
|
|
|
.ENDIF # "$(GUI)"=="WNT"
|
|
.ENDIF # "$(DEF9EXPORTFILE)"==""
|
|
.ENDIF # "$(SHL9VERSIONMAP)"!=""
|
|
|
|
.IF "$(GUI)"=="WNT"
|
|
|
|
DEF9FILTER=$(SOLARENV)$/inc$/dummy.flt
|
|
|
|
.IF "$(MWS_BUILD)"!=""
|
|
.IF "$(UPDATER)"!=""
|
|
.IF "$(DEFLIB9NAME)"!=""
|
|
|
|
DEF9UNIQE:=$(mktmp $(GUI))
|
|
|
|
# %_disk is a 4nt special; don't exppect it to work in any other shell
|
|
BUILD_DRIVE9:=$(shell +echo %_disk)
|
|
#BUILD_DRIVE9:=O
|
|
|
|
.IF "$(BUILD_DRIVE9)"=="O"
|
|
# in case of RE build, protect against failed lock
|
|
EXPORT9_PROTECT=$(TMP)$/$(DEF9UNIQE:b).bat &&
|
|
.ENDIF # "$(BUILD_DRIVE9)"=="O"
|
|
|
|
.ENDIF # "$(DEFLIB9NAME)"!=""
|
|
.ENDIF # "$(UPDATER)"!=""
|
|
.ENDIF # "$(MWS_BUILD)"!=""
|
|
|
|
.IF "$(link_always)"==""
|
|
$(DEF9TARGETN) : \
|
|
$(DEF9DEPN) \
|
|
$(DEF9EXPORTFILE)
|
|
.ELSE # "$(link_always)"==""
|
|
$(DEF9TARGETN) .PHONY :
|
|
.ENDIF # "$(link_always)"==""
|
|
.IF "$(MWS_BUILD)"!=""
|
|
.IF "$(UPDATER)"!=""
|
|
.IF "$(DEFLIB9NAME)"!=""
|
|
.IF "$(BUILD_DRIVE9)"=="O"
|
|
#
|
|
# don't forget to have the right DEFSTAG set!
|
|
#
|
|
+$(PERL) $(COMMON_ENV_TOOLS)$/lockcidef.pl -u$(DEF9UNIQE:b) update $(DEFSTAG)
|
|
.ENDIF # "$(BUILD_DRIVE9)"=="O"
|
|
.ENDIF # "$(DEFLIB9NAME)"!=""
|
|
.ENDIF # "$(UPDATER)"!=""
|
|
.ENDIF # "$(MWS_BUILD)"!=""
|
|
# +-attrib -r defs$/$(OUTPATH)
|
|
@+-$(RM) $@.tmpfile
|
|
@echo ------------------------------
|
|
@echo Making Module-Definitionfile : $@
|
|
@echo LIBRARY $(SHL9TARGETN:f) >$@.tmpfile
|
|
@echo HEAPSIZE 0 >>$@.tmpfile
|
|
@echo EXPORTS >>$@.tmpfile
|
|
# getversioninfo fuer alle!!
|
|
@echo GetVersionInfo >>$@.tmpfile
|
|
.IF "$(NO_SHL9DESCRIPTION)"==""
|
|
@echo component_getDescriptionFunc >>$@.tmpfile
|
|
.ENDIF # "$(NO_SHL9DESCRIPTION)"==""
|
|
.IF "$(DEFLIB9NAME)"!=""
|
|
.IF "$(SHL9USE_EXPORTS)"!="ordinal"
|
|
@-+$(EXPORT9_PROTECT) $(RM) $(MISC)$/$(SHL9TARGET).exp
|
|
@+$(EXPORT9_PROTECT) $(LIBMGR) -EXTRACT:/ /OUT:$(MISC)$/$(SHL9TARGET).exp $(SLB)$/$(DEFLIB9NAME).lib
|
|
.IF "$(DEF9CEXP)"!=""
|
|
@+$(EXPORT9_PROTECT) $(LDUMP2) -A $(DEF9CEXP) -E 20 -F $(MISC)$/$(SHL9TARGET).flt $(MISC)$/$(SHL9TARGET).exp >>$@.tmpfile
|
|
.ELSE
|
|
@+$(EXPORT9_PROTECT) $(LDUMP2) -E 20 -F $(MISC)$/$(SHL9TARGET).flt $(MISC)$/$(SHL9TARGET).exp >>$@.tmpfile
|
|
.ENDIF
|
|
+$(EXPORT9_PROTECT) $(RM) $(MISC)$/$(SHL9TARGET).exp
|
|
.ELSE # "$(SHL9USE_EXPORTS)"!="ordinal"
|
|
@+$(EXPORT9_PROTECT) $(DUMPBIN) -DIRECTIVES $(SLB)$/$(DEFLIB9NAME).lib | $(GREP) EXPORT: > $(MISC)$/$(SHL9TARGET).direct
|
|
.IF "$(DEF9CEXP)"!=""
|
|
@+$(EXPORT9_PROTECT) $(LDUMP2) -D -A $(DEF9CEXP) -E 20 -F $(DEF9FILTER) $(MISC)$/$(SHL9TARGET).direct >>$@.tmpfile
|
|
.ELSE
|
|
@+$(EXPORT9_PROTECT) $(LDUMP2) -D -E 20 -F $(DEF9FILTER) $(MISC)$/$(SHL9TARGET).direct >>$@.tmpfile
|
|
.ENDIF
|
|
.ENDIF # "$(SHL9USE_EXPORTS)"!="ordinal"
|
|
# now *\defs\$(OUTPATH) exists, commit it
|
|
.IF "$(MWS_BUILD)"!=""
|
|
.IF "$(UPDATER)"!=""
|
|
.IF "$(BUILD_DRIVE9)"=="O"
|
|
#
|
|
# don't forget to have the right DEFSTAG set!
|
|
#
|
|
+$(PERL) $(COMMON_ENV_TOOLS)$/lockcidef.pl -u$(DEF9UNIQE:b) commit
|
|
+$(TMP)$/$(DEF9UNIQE:b).bat && $(RM) $(TMP)$/$(DEF9UNIQE:b).bat
|
|
.ENDIF # "$(BUILD_DRIVE9)"=="O"
|
|
.ENDIF # "$(UPDATER)"!=""
|
|
.ENDIF # "$(MWS_BUILD)"!=""
|
|
.ENDIF # "$(DEFLIB9NAME)"!=""
|
|
.IF "$(DEF9EXPORT1)"!=""
|
|
@echo $(DEF9EXPORT1) >>$@.tmpfile
|
|
.ENDIF
|
|
.IF "$(DEF9EXPORT2)"!=""
|
|
@echo $(DEF9EXPORT2) >>$@.tmpfile
|
|
.ENDIF
|
|
.IF "$(DEF9EXPORT3)"!=""
|
|
@echo $(DEF9EXPORT3) >>$@.tmpfile
|
|
.ENDIF
|
|
.IF "$(DEF9EXPORT4)"!=""
|
|
@echo $(DEF9EXPORT4) >>$@.tmpfile
|
|
.ENDIF
|
|
.IF "$(DEF9EXPORT5)"!=""
|
|
@echo $(DEF9EXPORT5) >>$@.tmpfile
|
|
.ENDIF
|
|
.IF "$(DEF9EXPORT6)"!=""
|
|
@echo $(DEF9EXPORT6) >>$@.tmpfile
|
|
.ENDIF
|
|
.IF "$(DEF9EXPORT7)"!=""
|
|
@echo $(DEF9EXPORT7) >>$@.tmpfile
|
|
.ENDIF
|
|
.IF "$(DEF9EXPORT8)"!=""
|
|
@echo $(DEF9EXPORT8) >>$@.tmpfile
|
|
.ENDIF
|
|
.IF "$(DEF9EXPORT9)"!=""
|
|
@echo $(DEF9EXPORT9) >>$@.tmpfile
|
|
.ENDIF
|
|
.IF "$(DEF9EXPORT10)"!=""
|
|
@echo $(DEF9EXPORT10) >>$@.tmpfile
|
|
.ENDIF
|
|
.IF "$(DEF9EXPORT11)"!=""
|
|
@echo $(DEF9EXPORT11) >>$@.tmpfile
|
|
.ENDIF
|
|
.IF "$(DEF9EXPORT12)"!=""
|
|
@echo $(DEF9EXPORT12) >>$@.tmpfile
|
|
.ENDIF
|
|
.IF "$(DEF9EXPORT13)"!=""
|
|
@echo $(DEF9EXPORT13) >>$@.tmpfile
|
|
.ENDIF
|
|
.IF "$(DEF9EXPORT14)"!=""
|
|
@echo $(DEF9EXPORT14) >>$@.tmpfile
|
|
.ENDIF
|
|
.IF "$(DEF9EXPORT15)"!=""
|
|
@echo $(DEF9EXPORT15) >>$@.tmpfile
|
|
.ENDIF
|
|
.IF "$(DEF9EXPORT16)"!=""
|
|
@echo $(DEF9EXPORT16) >>$@.tmpfile
|
|
.ENDIF
|
|
.IF "$(DEF9EXPORT17)"!=""
|
|
@echo $(DEF9EXPORT17) >>$@.tmpfile
|
|
.ENDIF
|
|
.IF "$(DEF9EXPORT18)"!=""
|
|
@echo $(DEF9EXPORT18) >>$@.tmpfile
|
|
.ENDIF
|
|
.IF "$(DEF9EXPORT19)"!=""
|
|
@echo $(DEF9EXPORT19) >>$@.tmpfile
|
|
.ENDIF
|
|
.IF "$(DEF9EXPORT20)"!=""
|
|
@echo $(DEF9EXPORT20) >>$@.tmpfile
|
|
.ENDIF
|
|
.IF "$(DEF9EXPORTFILE)"!=""
|
|
+$(TYPE) $(DEF9EXPORTFILE) >> $@.tmpfile
|
|
.ENDIF
|
|
@+-$(RM) $@
|
|
@+$(RENAME) $@.tmpfile $@
|
|
.ENDIF # "$(GUI)"=="WNT"
|
|
|
|
.IF "$(GUI)"=="UNX"
|
|
$(DEF9TARGETN): \
|
|
$(DEF9DEPN) \
|
|
$(DEF9EXPORTFILE)
|
|
@echo ------------------------------
|
|
@echo Making Module-Definitionfile : $@
|
|
@echo just a dummy for UNIX
|
|
@echo > $@
|
|
.ENDIF
|
|
.ENDIF # "$(DEF9TARGETN)"!=""
|
|
|
|
|
|
# Anweisungen fuer das Linken
|
|
# unroll begin
|
|
|
|
.IF "$(DEF10TARGETN)"!=""
|
|
|
|
#to make intuitiv naming work
|
|
.IF "$(DEF10LIBNAME)"!=""
|
|
DEFLIB10NAME*=$(DEF10LIBNAME)
|
|
.ENDIF # "$(DEF10LIBNAME)"!=""
|
|
|
|
.IF "$(DEFLIB10NAME)"!=""
|
|
.IF "$(UPDATER)"!=""
|
|
DEF10DEPN+=$(SLB)$/$(DEFLIB10NAME).lib
|
|
.ENDIF # "$(UPDATER)"!=""
|
|
.ENDIF
|
|
|
|
.IF "$(SHL10VERSIONMAP)"!=""
|
|
.IF "$(DEF10EXPORTFILE)"==""
|
|
.IF "$(GUI)"=="WNT"
|
|
DEF10EXPORTFILE=$(MISC)$/$(SHL10VERSIONMAP:b)_$(SHL10TARGET).dxp
|
|
$(DEF10EXPORTFILE) : $(SHL10VERSIONMAP)
|
|
+$(TYPE) $< | $(AWK) -f $(SOLARENV)$/bin$/getcsym.awk > $@
|
|
|
|
.ENDIF # "$(GUI)"=="WNT"
|
|
.ENDIF # "$(DEF10EXPORTFILE)"==""
|
|
.ENDIF # "$(SHL10VERSIONMAP)"!=""
|
|
|
|
.IF "$(GUI)"=="WNT"
|
|
|
|
DEF10FILTER=$(SOLARENV)$/inc$/dummy.flt
|
|
|
|
.IF "$(MWS_BUILD)"!=""
|
|
.IF "$(UPDATER)"!=""
|
|
.IF "$(DEFLIB10NAME)"!=""
|
|
|
|
DEF10UNIQE:=$(mktmp $(GUI))
|
|
|
|
# %_disk is a 4nt special; don't exppect it to work in any other shell
|
|
BUILD_DRIVE10:=$(shell +echo %_disk)
|
|
#BUILD_DRIVE10:=O
|
|
|
|
.IF "$(BUILD_DRIVE10)"=="O"
|
|
# in case of RE build, protect against failed lock
|
|
EXPORT10_PROTECT=$(TMP)$/$(DEF10UNIQE:b).bat &&
|
|
.ENDIF # "$(BUILD_DRIVE10)"=="O"
|
|
|
|
.ENDIF # "$(DEFLIB10NAME)"!=""
|
|
.ENDIF # "$(UPDATER)"!=""
|
|
.ENDIF # "$(MWS_BUILD)"!=""
|
|
|
|
.IF "$(link_always)"==""
|
|
$(DEF10TARGETN) : \
|
|
$(DEF10DEPN) \
|
|
$(DEF10EXPORTFILE)
|
|
.ELSE # "$(link_always)"==""
|
|
$(DEF10TARGETN) .PHONY :
|
|
.ENDIF # "$(link_always)"==""
|
|
.IF "$(MWS_BUILD)"!=""
|
|
.IF "$(UPDATER)"!=""
|
|
.IF "$(DEFLIB10NAME)"!=""
|
|
.IF "$(BUILD_DRIVE10)"=="O"
|
|
#
|
|
# don't forget to have the right DEFSTAG set!
|
|
#
|
|
+$(PERL) $(COMMON_ENV_TOOLS)$/lockcidef.pl -u$(DEF10UNIQE:b) update $(DEFSTAG)
|
|
.ENDIF # "$(BUILD_DRIVE10)"=="O"
|
|
.ENDIF # "$(DEFLIB10NAME)"!=""
|
|
.ENDIF # "$(UPDATER)"!=""
|
|
.ENDIF # "$(MWS_BUILD)"!=""
|
|
# +-attrib -r defs$/$(OUTPATH)
|
|
@+-$(RM) $@.tmpfile
|
|
@echo ------------------------------
|
|
@echo Making Module-Definitionfile : $@
|
|
@echo LIBRARY $(SHL10TARGETN:f) >$@.tmpfile
|
|
@echo HEAPSIZE 0 >>$@.tmpfile
|
|
@echo EXPORTS >>$@.tmpfile
|
|
# getversioninfo fuer alle!!
|
|
@echo GetVersionInfo >>$@.tmpfile
|
|
.IF "$(NO_SHL10DESCRIPTION)"==""
|
|
@echo component_getDescriptionFunc >>$@.tmpfile
|
|
.ENDIF # "$(NO_SHL10DESCRIPTION)"==""
|
|
.IF "$(DEFLIB10NAME)"!=""
|
|
.IF "$(SHL10USE_EXPORTS)"!="ordinal"
|
|
@-+$(EXPORT10_PROTECT) $(RM) $(MISC)$/$(SHL10TARGET).exp
|
|
@+$(EXPORT10_PROTECT) $(LIBMGR) -EXTRACT:/ /OUT:$(MISC)$/$(SHL10TARGET).exp $(SLB)$/$(DEFLIB10NAME).lib
|
|
.IF "$(DEF10CEXP)"!=""
|
|
@+$(EXPORT10_PROTECT) $(LDUMP2) -A $(DEF10CEXP) -E 20 -F $(MISC)$/$(SHL10TARGET).flt $(MISC)$/$(SHL10TARGET).exp >>$@.tmpfile
|
|
.ELSE
|
|
@+$(EXPORT10_PROTECT) $(LDUMP2) -E 20 -F $(MISC)$/$(SHL10TARGET).flt $(MISC)$/$(SHL10TARGET).exp >>$@.tmpfile
|
|
.ENDIF
|
|
+$(EXPORT10_PROTECT) $(RM) $(MISC)$/$(SHL10TARGET).exp
|
|
.ELSE # "$(SHL10USE_EXPORTS)"!="ordinal"
|
|
@+$(EXPORT10_PROTECT) $(DUMPBIN) -DIRECTIVES $(SLB)$/$(DEFLIB10NAME).lib | $(GREP) EXPORT: > $(MISC)$/$(SHL10TARGET).direct
|
|
.IF "$(DEF10CEXP)"!=""
|
|
@+$(EXPORT10_PROTECT) $(LDUMP2) -D -A $(DEF10CEXP) -E 20 -F $(DEF10FILTER) $(MISC)$/$(SHL10TARGET).direct >>$@.tmpfile
|
|
.ELSE
|
|
@+$(EXPORT10_PROTECT) $(LDUMP2) -D -E 20 -F $(DEF10FILTER) $(MISC)$/$(SHL10TARGET).direct >>$@.tmpfile
|
|
.ENDIF
|
|
.ENDIF # "$(SHL10USE_EXPORTS)"!="ordinal"
|
|
# now *\defs\$(OUTPATH) exists, commit it
|
|
.IF "$(MWS_BUILD)"!=""
|
|
.IF "$(UPDATER)"!=""
|
|
.IF "$(BUILD_DRIVE10)"=="O"
|
|
#
|
|
# don't forget to have the right DEFSTAG set!
|
|
#
|
|
+$(PERL) $(COMMON_ENV_TOOLS)$/lockcidef.pl -u$(DEF10UNIQE:b) commit
|
|
+$(TMP)$/$(DEF10UNIQE:b).bat && $(RM) $(TMP)$/$(DEF10UNIQE:b).bat
|
|
.ENDIF # "$(BUILD_DRIVE10)"=="O"
|
|
.ENDIF # "$(UPDATER)"!=""
|
|
.ENDIF # "$(MWS_BUILD)"!=""
|
|
.ENDIF # "$(DEFLIB10NAME)"!=""
|
|
.IF "$(DEF10EXPORT1)"!=""
|
|
@echo $(DEF10EXPORT1) >>$@.tmpfile
|
|
.ENDIF
|
|
.IF "$(DEF10EXPORT2)"!=""
|
|
@echo $(DEF10EXPORT2) >>$@.tmpfile
|
|
.ENDIF
|
|
.IF "$(DEF10EXPORT3)"!=""
|
|
@echo $(DEF10EXPORT3) >>$@.tmpfile
|
|
.ENDIF
|
|
.IF "$(DEF10EXPORT4)"!=""
|
|
@echo $(DEF10EXPORT4) >>$@.tmpfile
|
|
.ENDIF
|
|
.IF "$(DEF10EXPORT5)"!=""
|
|
@echo $(DEF10EXPORT5) >>$@.tmpfile
|
|
.ENDIF
|
|
.IF "$(DEF10EXPORT6)"!=""
|
|
@echo $(DEF10EXPORT6) >>$@.tmpfile
|
|
.ENDIF
|
|
.IF "$(DEF10EXPORT7)"!=""
|
|
@echo $(DEF10EXPORT7) >>$@.tmpfile
|
|
.ENDIF
|
|
.IF "$(DEF10EXPORT8)"!=""
|
|
@echo $(DEF10EXPORT8) >>$@.tmpfile
|
|
.ENDIF
|
|
.IF "$(DEF10EXPORT9)"!=""
|
|
@echo $(DEF10EXPORT9) >>$@.tmpfile
|
|
.ENDIF
|
|
.IF "$(DEF10EXPORT10)"!=""
|
|
@echo $(DEF10EXPORT10) >>$@.tmpfile
|
|
.ENDIF
|
|
.IF "$(DEF10EXPORT11)"!=""
|
|
@echo $(DEF10EXPORT11) >>$@.tmpfile
|
|
.ENDIF
|
|
.IF "$(DEF10EXPORT12)"!=""
|
|
@echo $(DEF10EXPORT12) >>$@.tmpfile
|
|
.ENDIF
|
|
.IF "$(DEF10EXPORT13)"!=""
|
|
@echo $(DEF10EXPORT13) >>$@.tmpfile
|
|
.ENDIF
|
|
.IF "$(DEF10EXPORT14)"!=""
|
|
@echo $(DEF10EXPORT14) >>$@.tmpfile
|
|
.ENDIF
|
|
.IF "$(DEF10EXPORT15)"!=""
|
|
@echo $(DEF10EXPORT15) >>$@.tmpfile
|
|
.ENDIF
|
|
.IF "$(DEF10EXPORT16)"!=""
|
|
@echo $(DEF10EXPORT16) >>$@.tmpfile
|
|
.ENDIF
|
|
.IF "$(DEF10EXPORT17)"!=""
|
|
@echo $(DEF10EXPORT17) >>$@.tmpfile
|
|
.ENDIF
|
|
.IF "$(DEF10EXPORT18)"!=""
|
|
@echo $(DEF10EXPORT18) >>$@.tmpfile
|
|
.ENDIF
|
|
.IF "$(DEF10EXPORT19)"!=""
|
|
@echo $(DEF10EXPORT19) >>$@.tmpfile
|
|
.ENDIF
|
|
.IF "$(DEF10EXPORT20)"!=""
|
|
@echo $(DEF10EXPORT20) >>$@.tmpfile
|
|
.ENDIF
|
|
.IF "$(DEF10EXPORTFILE)"!=""
|
|
+$(TYPE) $(DEF10EXPORTFILE) >> $@.tmpfile
|
|
.ENDIF
|
|
@+-$(RM) $@
|
|
@+$(RENAME) $@.tmpfile $@
|
|
.ENDIF # "$(GUI)"=="WNT"
|
|
|
|
.IF "$(GUI)"=="UNX"
|
|
$(DEF10TARGETN): \
|
|
$(DEF10DEPN) \
|
|
$(DEF10EXPORTFILE)
|
|
@echo ------------------------------
|
|
@echo Making Module-Definitionfile : $@
|
|
@echo just a dummy for UNIX
|
|
@echo > $@
|
|
.ENDIF
|
|
.ENDIF # "$(DEF10TARGETN)"!=""
|
|
|
|
|
|
# Anweisungen fuer das Linken
|