diff options
author | Tanaka Akira <akr@users.sourceforge.net> | 1999-04-15 18:06:33 +0000 |
---|---|---|
committer | Tanaka Akira <akr@users.sourceforge.net> | 1999-04-15 18:06:33 +0000 |
commit | a61dc2074ae6cd00f1c166dc0102c491db056060 (patch) | |
tree | b5661a235ec55353b97c617554baf14158c91ea8 /Src/mkmakemod.sh | |
parent | 32c2ebbaa5d7927f33ee0ecf98472a71cf902cf3 (diff) | |
download | zsh-a61dc2074ae6cd00f1c166dc0102c491db056060.tar.gz zsh-a61dc2074ae6cd00f1c166dc0102c491db056060.tar.xz zsh-a61dc2074ae6cd00f1c166dc0102c491db056060.zip |
zsh-3.1.5-pws-1 zsh-3.1.5-pws-1
Diffstat (limited to 'Src/mkmakemod.sh')
-rw-r--r-- | Src/mkmakemod.sh | 15 |
1 files changed, 12 insertions, 3 deletions
diff --git a/Src/mkmakemod.sh b/Src/mkmakemod.sh index b088929fa..9c90b75e5 100644 --- a/Src/mkmakemod.sh +++ b/Src/mkmakemod.sh @@ -145,6 +145,11 @@ if $first_stage; then echo "PROTOS =$all_proto" echo "SUBDIRS =$all_subdirs" echo + echo "ENTRYOBJ = \$(dir_src)/modentry..o" + echo "NNTRYOBJ =" + echo "ENTRYOPT = -emodentry" + echo "NNTRYOPT =" + echo echo "##### ===== INCLUDING Makemod.in.in ===== #####" echo @@ -161,7 +166,7 @@ if $first_stage; then remote_mdhs= for module in $here_modules; do - unset moddeps nozshdep alwayslink + unset moddeps nozshdep alwayslink hasexport unset autobins unset objects proto headers hdrdeps otherincs . $top_srcdir/$the_subdir/${module}.mdd @@ -172,8 +177,10 @@ if $first_stage; then dobjects=`echo $objects '' | sed 's,\.o ,..o ,g'` modhdeps= + imports= for dep in $moddeps; do eval "loc=\$loc_$dep" + imports="$imports \$(IMPOPT)\$(sdir_top)/$loc/$dep.export" case $the_subdir in $loc) mdh="${dep}.mdh" @@ -199,9 +206,11 @@ if $first_stage; then echo "##### ===== DEPENDENCIES GENERATED FROM ${module}.mdd ===== #####" echo echo "MODOBJS_${module} = $objects" - echo "MODDOBJS_${module} = $dobjects" + echo "MODDOBJS_${module} = $dobjects \$(@E@NTRYOBJ)" echo "PROTO_${module} = $proto" echo "INCS_${module} = \$(PROTO_${module}) $otherincs" + echo "EXPIMP_${module} = $imports ${hasexport+\$(EXPOPT)\$(sdir)/$module.export}" + echo "NXPIMP_${module} =" echo echo "proto.${module}: \$(PROTO_${module})" echo "\$(PROTO_${module}): \$(PROTODEPS)" @@ -212,7 +221,7 @@ if $first_stage; then if test -z "$alwayslink"; then echo "${module}.\$(DL_EXT): \$(MODDOBJS_${module})" echo ' rm -f $@' - echo " \$(DLLINK) \$(MODDOBJS_${module}) \$(LIBS)" + echo " \$(DLLINK) \$(@E@XPIMP_$module) \$(@E@NTRYOPT) \$(MODDOBJS_${module}) \$(LIBS)" echo fi echo "${module}.mdhi: ${module}.mdhs \$(INCS_${module})" |