Changeset 3220 for trunk/essentials/dev-lang/perl/os2
- Timestamp:
- Apr 29, 2007, 3:34:20 PM (18 years ago)
- Location:
- trunk/essentials/dev-lang/perl/os2
- Files:
-
- 1 deleted
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/essentials/dev-lang/perl/os2/Makefile.SHs
r3200 r3220 4 4 # Rerun `sh Makefile.SH; make depend' after making any change. 5 5 6 # Additional rules supported: perl_, aout_test, aout_install, use them 7 # for a.out style perl (which may fork). 6 # Additional rules supported: perl_ 8 7 9 8 perl_fullversion="5.00${PERL_VERSION}_$PERL_SUBVERSION" … … 14 13 dll_post="`echo $perl_fullversion | sum | sed -e 's/^0*//' | awk '{print $1}'`" 15 14 dll_post="`printf '%x' $dll_post | tr '[a-z]' '[A-Z]'`" 16 17 aout_extra_libs='' 18 aout_extra_sep='' 19 for xxx in $aout_extra_static_ext; do 20 aout_extra_dir=`echo "$xxx" | sed -e 's/::/\//g'` 21 aout_extra_lib="lib/auto/$aout_extra_dir/"`basename "$aout_extra_dir"` 22 aout_extra_libs="$aout_extra_libs$aout_extra_sep$aout_extra_lib$aout_lib_ext" 23 aout_extra_sep=' ' 24 done 15 if test -z "dll_post"; then 16 echo "error: dll_post is emtpy."; 17 exit 1; 18 fi 25 19 26 20 $spitshell >>Makefile <<!GROK!THIS! 27 21 28 22 PERL_FULLVERSION = $perl_fullversion 29 30 AOUT_OPTIMIZE = \$(OPTIMIZE)31 AOUT_CCCMD = \$(CC) -DPERL_CORE $aout_ccflags \$(AOUT_OPTIMIZE)32 AOUT_AR = $aout_ar33 AOUT_OBJ_EXT = $aout_obj_ext34 AOUT_LIB_EXT = $aout_lib_ext35 AOUT_LIBPERL = libperl$aout_lib_ext36 AOUT_CLDFLAGS = $aout_ldflags37 38 AOUT_LIBPERL_DLL = libperl_dll$aout_lib_ext39 AOUT_CCCMD_DLL = \$(CC) -DDOSISH -DOS2=2 -DEMBED -I. -DPACK_MALLOC -DDEBUGGING_MSTATS -DTWO_POT_OPTIMIZE -DPERL_EMERGENCY_SBRK40 AOUT_CLDFLAGS_DLL = -Zexe -Zmt -Zcrtdll -Zstack 3200041 23 42 24 # No -DPERL_CORE … … 44 26 45 27 LD_OPT = 46 PERL_DLL_LD_OPT = -Zdll -Z map -Zargs-wild28 PERL_DLL_LD_OPT = -Zdll -Zomf -Zhigh-mem -Zmap 47 29 48 30 PERL_DLL_BASE = perl$dll_post … … 50 32 TEST_PERL_DLL = perl_dll_t 51 33 CONFIG_ARGS = $config_args 52 AOUT_EXTRA_LIBS = $aout_extra_libs53 34 54 35 !GROK!THIS! … … 56 37 $spitshell >>Makefile <<'!NO!SUBS!' 57 38 PREPLIBRARY_LIBPERL = $(LIBPERL) 58 $(LIBPERL) : perl.imp perl5.def libperl_override.lib59 emximp -o $ (LIBPERL)perl.imp60 cp $ (LIBPERL)perl.lib61 62 imp_version: $(FIRSTMAKEFILE)39 $(LIBPERL) perl.lib: perl.imp perl5.def libperl_override.a 40 emximp -o $@ perl.imp 41 cp $@ perl.lib 42 43 imp_version: #$(FIRSTMAKEFILE) -crap 63 44 echo $(PERL_DLL_BASE) > $@ 64 45 65 libperl_override.imp: os2/os2add.sym miniperl imp_version66 ./miniperl -wnle 'print "$$_\t$(PERL_DLL_BASE)\t$$_\t?"' os2/os2add.sym > $@46 libperl_override.imp: os2/os2add.sym miniperl$(EXE_EXT) imp_version 47 ./miniperl$(EXE_EXT) -wnle 'print "$$_\t$(PERL_DLL_BASE)\t$$_\t?"' os2/os2add.sym > $@ 67 48 echo 'strdup $(PERL_DLL_BASE) Perl_strdup ?' >> $@ 68 49 echo 'putenv $(PERL_DLL_BASE) Perl_putenv ?' >> $@ 69 50 70 libperl_override. lib: libperl_override.imp51 libperl_override.a: libperl_override.imp 71 52 emximp -o $@ libperl_override.imp 72 53 … … 74 55 echo '_main $(PERL_DLL_BASE) _dll_perlmain ?' > $@ 75 56 76 libperl_dllmain .lib: libperl_dllmain.imp57 libperl_dllmain$(LIB_EXT): libperl_dllmain.imp 77 58 emximp -o $@ libperl_dllmain.imp 78 59 79 libperl_dllmain.a: libperl_dllmain.imp80 emximp -o $@ libperl_dllmain.imp81 82 $(AOUT_LIBPERL_DLL): perl.imp $(PERL_DLL) perl5.def83 emximp -o $(AOUT_LIBPERL_DLL) perl.imp84 85 60 perl.imp: perl5.def imp_version 86 emximp -o perl.imp perl5.def 87 # echo 'emx_calloc emxlibcm 400 ?' >> $@ 88 # echo 'emx_free emxlibcm 401 ?' >> $@ 89 # echo 'emx_malloc emxlibcm 402 ?' >> $@ 90 # echo 'emx_realloc emxlibcm 403 ?' >> $@ 91 92 .PHONY: perl_dll installcmd aout_clean aout_install aout_install.perl \ 93 perlrexx test_prep_perl_ test_prep_perl_sys test_prep_perl_stat \ 94 test_prep_perl_stat_aout test_prep_various \ 95 stat_aout_harness aout_harness stat_harness sys_harness all_harness \ 96 stat_aout_test aout_test stat_test sys_test all_test \ 97 perl___harness test_harness_redir 61 emximp -o $@ perl5.def 62 63 64 .PHONY: perl_dll installcmd perlrexx test_prep_perl_ test_prep_various all_harness \ 65 all_test test_harness_redir 98 66 99 67 perl_dll: $(PERL_DLL) … … 102 70 103 71 t/$(PERL_DLL): $(PERL_DLL) 104 $(LNS)$(PERL_DLL) t/$(PERL_DLL)72 cp -f $(PERL_DLL) t/$(PERL_DLL) 105 73 106 74 $(PERL_DLL): $(obj) perl5.def perl$(OBJ_EXT) perlmain$(OBJ_EXT) $(DYNALOADER) … … 139 107 # We link miniperl statically, since .DLL depends on $(DYNALOADER) 140 108 141 miniperl.map: miniperl 142 143 miniperl.exe: miniperl 144 145 miniperl: $(obj) perl$(OBJ_EXT) miniperlmain$(OBJ_EXT) opmini$(OBJ_EXT) 146 $(CC) $(CLDFLAGS) -o miniperl miniperlmain$(OBJ_EXT) perl$(OBJ_EXT) `echo $(obj)|sed -e 's/\bop\./opmini./g'` $(libs) -Zmap -Zargs-wild 147 @./miniperl -w -Ilib -MExporter -e '<?>' || $(MAKE) minitest 148 149 depend: os2ish.h dlfcn.h os2thread.h os2.c 150 151 # Stupid make? Needed... 152 os2$(OBJ_EXT) : os2.c 153 154 os2.c: os2/os2.c os2ish.h 155 cp -f $< $@ 156 157 dl_os2.c: os2/dl_os2.c os2ish.h 158 cp -f $< $@ 109 miniperl.map: miniperl$(EXE_EXT) 110 111 miniperl$(EXE_EXT): $(obj) perl$(OBJ_EXT) miniperlmain$(OBJ_EXT) opmini$(OBJ_EXT) 112 $(CC) $(CLDFLAGS) -o $@ miniperlmain$(OBJ_EXT) perl$(OBJ_EXT) `echo $(obj)|sed -e 's/\bop\./opmini./g'` $(libs) -Zmap -Zargs-wild 113 @./miniperl$(EXE_EXT) -w -Ilib -MExporter -e '<?>' || $(MAKE) minitest 114 115 depend: os2ish.h os2thread.h 116 117 # Deal with os2/* stuff 118 os2$(OBJ_EXT): os2.c os2ish.h os2thread.h 119 os2.c: 120 ln -s os2/$@ $@ 121 dl_os2.c: os2/dl_os2.c 122 ln -s os2/$@ $@ 123 perlrexx$(OBJ_EXT): perlrexx.c os2ish.h os2thread.h 124 perlrexx.c: 125 ln -s os2/$@ $@ 159 126 160 127 os2ish.h: os2/os2ish.h 161 cp -f $<$@128 ln -s os2/$@ $@ 162 129 163 130 os2thread.h: os2/os2thread.h 164 cp -f $< $@ 165 166 dlfcn.h: os2/dlfcn.h 167 cp -f $< $@ 168 169 # Non-Forking dynamically loaded perl 170 # Make many: they are useful in low-memory conditions (floppy boot? Lot of shared memory used?) 171 172 perl___$(EXE_EXT) perl___: $& libperl_dllmain$(LIB_EXT) 173 $(SHRPENV) $(CC) $(CLDFLAGS) $(CCDLFLAGS) -o perl___ libperl_dllmain$(LIB_EXT) 174 $(SHRPENV) $(CC) $(CLDFLAGS) $(CCDLFLAGS) -Zstack 8192 -o perl___8 libperl_dllmain$(LIB_EXT) 175 $(SHRPENV) $(CC) $(CLDFLAGS) $(CCDLFLAGS) -Zstack 4096 -o perl___4 libperl_dllmain$(LIB_EXT) 176 $(SHRPENV) $(CC) $(CLDFLAGS) $(CCDLFLAGS) -Zstack 2048 -o perl___2 libperl_dllmain$(LIB_EXT) 177 $(SHRPENV) $(CC) $(CLDFLAGS) $(CCDLFLAGS) -Zstack 1024 -o perl___1 libperl_dllmain$(LIB_EXT) 178 $(SHRPENV) $(CC) $(CLDFLAGS) $(CCDLFLAGS) -Zstack 512 -o perl___05 libperl_dllmain$(LIB_EXT) 179 $(SHRPENV) $(CC) $(CLDFLAGS) $(CCDLFLAGS) -Zstack 320 -o perl___03 libperl_dllmain$(LIB_EXT) 180 181 # This one is compiled -Zsys, so cannot do many things: 182 183 # Remove -Zcrtdll 184 STAT_CLDFLAGS = -Zexe -Zomf -Zmt -Zstack 32000 185 186 # Non-forking dynamically loaded perl with a wrong CRT library: 187 188 perl_stat perl_stat$(EXE_EXT): $& libperl_dllmain$(LIB_EXT) 189 $(SHRPENV) $(CC) $(STAT_CLDFLAGS) $(CCDLFLAGS) -o perl_stat libperl_dllmain$(LIB_EXT) 190 191 # Remove -Zcrtdll, add -Zsys 192 SYS_CLDFLAGS = $(STAT_CLDFLAGS) -Zsys 193 194 # Non-Forking dynamically loaded perl without EMX - so with wrong CRT library 195 196 perl_sys perl_sys$(EXE_EXT): $& libperl_dllmain$(LIB_EXT) 197 $(SHRPENV) $(CC) $(SYS_CLDFLAGS) $(CCDLFLAGS) -o perl_sys libperl_dllmain$(LIB_EXT) 131 ln -s os2/$@ $@ 198 132 199 133 installcmd : 200 134 @perl -e 'die qq{Give the option INSTALLCMDDIR=... to make!} if $$ARGV[0] eq ""' $(INSTALLCMDDIR) 201 ./miniperl -Ilib os2/perl2cmd.pl $(INSTALLCMDDIR) 202 203 # Aout section: 204 205 aout_obj = $(addsuffix $(AOUT_OBJ_EXT),$(basename $(obj))) 206 AOUT_DYNALOADER = $(addsuffix $(AOUT_LIB_EXT),$(basename $(DYNALOADER))) 207 aout_ext = $(static_ext) $(dynamic_ext) $(AOUT_EXTRA_LIBS) 208 aout_static_ext = $(addsuffix $(AOUT_LIB_EXT),$(basename $(aout_ext))) 209 aout_static_lib = $(addsuffix $(LIB_EXT),$(basename $(aout_ext))) 210 211 aout_static_ext_dll = $(addsuffix $(AOUT_LIB_EXT),$(basename $(static_ext))) 212 DYNALOADER_OBJ = ext/DynaLoader/DynaLoader$(OBJ_EXT) 213 aout_static_ext_dll = $(addsuffix $(AOUT_LIB_EXT),$(basename $(static_ext))) 214 AOUT_DYNALOADER_OBJ = $(addsuffix $(AOUT_OBJ_EXT),$(basename $(DYNALOADER_OBJ))) 215 216 ifneq ($(OBJ_EXT),$(AOUT_OBJ_EXT)) 217 $(AOUT_DYNALOADER_OBJ) : $(DYNALOADER_OBJ) 218 emxaout -o $@ $< 219 endif 220 221 $(DYNALOADER_OBJ) : $(DYNALOADER) 222 @sh -c true 223 224 $(AOUT_LIBPERL) : $(aout_obj) perl$(AOUT_OBJ_EXT) 225 rm -f $@ 226 $(AOUT_AR) rcu $@ perl$(AOUT_OBJ_EXT) $(aout_obj) 227 cp $@ perl$(AOUT_LIB_EXT) 228 229 ifneq ($(OBJ_EXT),$(AOUT_OBJ_EXT)) 230 231 .c$(AOUT_OBJ_EXT): 232 $(AOUT_CCCMD) $(PLDLFLAGS) -c $*.c 233 234 opmini$(AOUT_OBJ_EXT): op.c 235 $(AOUT_CCCMD) $(PLDLFLAGS) -DPERL_EXTERNAL_GLOB -o opmini$(AOUT_OBJ_EXT) -c op.c 236 237 perlmain(AOUT_OBJ_EXT): perlmain.c 238 $(AOUT_CCCMD_DLL) $(PLDLFLAGS) -c perlmain.c 239 240 endif 241 242 # Assume that extensions are at most 4 deep (this is so with 5.8.1) 243 aout_extlist: $(aout_static_ext) $(AOUT_DYNALOADER) 244 echo lib/auto/*.a lib/auto/*/*.a lib/auto/*/*/*.a lib/auto/*/*/*/*.a | tr ' ' '\n' | grep -v '\*' > $@ 245 246 aout_perlmain.c: miniperlmain.c config.sh makefile $(static_ext_autoinit) $(aout_static_ext) writemain aout_extlist 247 sh writemain `cat aout_extlist` > aout_perlmain.c 248 249 _preplibrary = miniperl lib/Config.pm lib/lib.pm lib/re.pm 250 251 miniperl_: $& miniperlmain$(AOUT_OBJ_EXT) $(AOUT_LIBPERL) opmini$(AOUT_OBJ_EXT) $(_preplibrary) 252 $(CC) $(AOUT_CLDFLAGS) $(CCDLFLAGS) -o miniperl_ miniperlmain$(AOUT_OBJ_EXT) opmini$(AOUT_OBJ_EXT) $(AOUT_LIBPERL) $(libs) 253 254 # Forking statically loaded perl 255 256 # Need a miniperl_ dependency, since $(AOUT_DYNALOADER) is build via implicit 257 # rules, thus would not rebuild miniperl_ via an explicit rule 258 259 perl_$(EXE_EXT) perl_: $& miniperl_ aout_perlmain$(AOUT_OBJ_EXT) $(AOUT_LIBPERL) $(AOUT_DYNALOADER) $(aout_static_ext) ext.libs aout_extlist 260 $(CC) $(AOUT_CLDFLAGS) $(CCDLFLAGS) $(OPTIMIZE) -o perl_ aout_perlmain$(AOUT_OBJ_EXT) `cat aout_extlist` $(AOUT_LIBPERL) `cat ext.libs` $(libs) 261 262 # Remove -Zcrtdll 263 STAT_AOUT_CLDFLAGS = -Zexe -Zmt -Zstack 32000 264 265 # Forking dynamically loaded perl with a wrong CRT library: 266 267 perl_stat_aout$(EXE_EXT) perl_stat_aout: $& libperl_dllmain$(AOUT_LIB_EXT) 268 $(SHRPENV) $(CC) $(STAT_AOUT_CLDFLAGS) $(CCDLFLAGS) $(OPTIMIZE) -o perl_stat_aout libperl_dllmain$(AOUT_LIB_EXT) 135 ./miniperl$(EXE_EXT) -Ilib os2/perl2cmd.pl $(INSTALLCMDDIR) 136 137 _preplibrary = miniperl$(EXE_EXT) lib/Config.pm lib/lib.pm lib/re.pm 269 138 270 139 PERLREXX_DLL = perlrexx.dll 271 140 272 perl perl$(EXE_EXT) : perl__ perl___ $(PERLREXX_DLL) $(PERL_DLL)273 274 141 # Dynamically loaded PM-application perl: 275 276 perl__$(EXE_EXT) perl__: $& libperl_dllmain$(LIB_EXT) 277 $(CC) $(CLDFLAGS) $(CCDLFLAGS) -o perl__ libperl_dllmain$(LIB_EXT) -Zlinker /PM:PM 142 perl__$(EXE_EXT): $& $(PERL_DLL) libperl_dllmain$(LIB_EXT) 143 $(CC) $(CLDFLAGS) $(CCDLFLAGS) -o $@ libperl_dllmain$(LIB_EXT) -Zlinker /PM:PM 278 144 279 145 # Forking dynamically loaded perl: 280 281 perl$(EXE_EXT) perl: $& libperl_dllmain$(AOUT_LIB_EXT) 282 $(CC) $(AOUT_CLDFLAGS_DLL) $(CCDLFLAGS) -o perl libperl_dllmain$(AOUT_LIB_EXT) 283 284 clean: aout_clean 285 286 aout_clean: 287 -rm *perl_.* *.o *.a lib/auto/*/*.a lib/auto/*/*/*.a lib/auto/*/*/*/*.a ext/*/Makefile.aout ext/*/*/Makefile.aout ext/*/*/*/Makefile.aout 288 289 aout_install: perl_ aout_install.perl 290 291 aout_install.perl: perl_ installperl 292 ./perl_ installperl --destdir="$(DESTDIR)" 146 perl$(EXE_EXT): $& $(PERLREXX_DLL) $(PERL_DLL) libperl_dllmain$(LIB_EXT) 147 $(CC) $(CLDFLAGS_DLL) $(CCDLFLAGS) -o $@ libperl_dllmain$(LIB_EXT) 148 149 clean: os2_clean 150 151 os2_clean: 152 rm -f *.map perlrexx.dll perl___[0-9]* 293 153 294 154 perlrexx: $(PERLREXX_DLL) 295 155 @sh -c true 296 156 297 perlrexx.c: os2/perlrexx.c298 @cp -f os2/$@ $@299 300 157 # Remove -Zexe, add -Zdll -Zso. No stack needed 301 158 SO_CLDFLAGS = -Zdll -Zomf … … 306 163 $(SHRPENV) $(CC) $(SO_CLDFLAGS) $(CCDLFLAGS) -o $@ perlrexx$(OBJ_EXT) $(DYNALOADER) $(static_ext) $(LIBPERL) `cat ext.libs` $(libs) perlrexx.def 307 164 308 perlrexx.def: miniperl $(_preplibrary)165 perlrexx.def: miniperl$(EXE_EXT) $(_preplibrary) 309 166 echo "LIBRARY 'perlrexx' INITINSTANCE TERMINSTANCE" > $@ 310 echo "DESCRIPTION '@#perl5-porters@perl.org:`miniperl -Ilib -MConfig -e 'print \$$]'`#@ REXX to Perl `miniperl-Ilib -MConfig -e 'print \$$Config{version}'` interface'" >> $@167 echo "DESCRIPTION '@#perl5-porters@perl.org:`miniperl$(EXE_EXT) -Ilib -MConfig -e 'print \$$]'`#@ REXX to Perl `miniperl$(EXE_EXT) -Ilib -MConfig -e 'print \$$Config{version}'` interface'" >> $@ 311 168 echo "EXPORTS" >> $@ 312 169 echo ' "_PERL"' >> $@ … … 325 182 $(SO_CCCMD) $(PLDLFLAGS) -c perlrexx.c 326 183 184 327 185 # To test with harness, one needed to HARNESS_IGNORE_EXITCODE=2 328 186 … … 330 188 REDIR_TEST = 2>&1 | tee 00_$@ 331 189 332 test_prep_perl_: test_prep_pre miniperl_ ./perl_$(EXE_EXT)190 test_prep_perl_: test_prep_pre miniperl_$(EXE_EXT) ./perl_$(EXE_EXT) 333 191 PERL=./perl_ $(MAKE) _test_prep 334 192 335 test_prep_various: test_prep_pre miniperl $(dynamic_ext) $(TEST_PERL_DLL) 336 337 test_prep_perl_sys: test_prep_various ./perl_sys$(EXE_EXT) 338 PERL=./perl_sys $(MAKE) _test_prep 339 340 test_prep_perl___: test_prep_various ./perl___$(EXE_EXT) 341 PERL=./perl___ $(MAKE) _test_prep 342 343 test_prep_perl_stat: test_prep_various ./perl_stat$(EXE_EXT) 344 PERL=./perl_stat $(MAKE) _test_prep 345 346 test_prep_perl_stat_aout: test_prep_various ./perl_stat_aout$(EXE_EXT) 347 PERL=./perl_stat_aout $(MAKE) _test_prep 348 349 aout_test: test_prep_perl_ 350 PERL=./perl_ $(MAKE) _test 351 352 aout_harness: test_prep_perl_ 353 -PERL=./perl_ $(MAKE) TESTFILE=harness _test $(REDIR_TEST) 354 355 sys_test: test_prep_perl_sys 356 PERL=./perl_sys $(MAKE) _test 357 358 sys_harness: test_prep_perl_sys 359 -PERL=./perl_sys $(MAKE) TESTFILE=harness _test $(REDIR_TEST) 360 361 stat_test: test_prep_perl_stat 362 PERL=./perl_stat $(MAKE) _test 363 364 stat_harness: test_prep_perl_stat 365 -PERL=./perl_stat $(MAKE) TESTFILE=harness _test $(REDIR_TEST) 366 367 stat_aout_test: test_prep_perl_stat_aout 368 PERL=./perl_stat_aout $(MAKE) _test 369 370 stat_aout_harness: test_prep_perl_stat_aout 371 -PERL=./perl_stat_aout $(MAKE) TESTFILE=harness _test $(REDIR_TEST) 372 373 perl___test: test_prep_perl___ 374 PERL=./perl___ $(MAKE) _test 375 376 perl___harness: test_prep_perl___ 377 -PERL=./perl___ $(MAKE) TESTFILE=harness _test $(REDIR_TEST) 378 379 all_test: test aout_test perl___test sys_test stat_test stat_aout_test 193 test_prep_various: test_prep_pre miniperl$(EXE_EXT) $(dynamic_ext) $(TEST_PERL_DLL) 194 195 all_test: test 380 196 381 197 test_harness_redir: test_prep 382 198 -PERL=./perl $(MAKE) TESTFILE=harness _test $(REDIR_TEST) 383 199 384 all_harness: test_harness_redir aout_harness perl___harness sys_harness stat_harness stat_aout_harness200 all_harness: test_harness_redir 385 201 386 202 !NO!SUBS! 387 203 388 # Now we need to find directories in ./ext/ which are up to 3 level deep389 # Currently (2001/06) there is no directories 4 levels deep.390 # (Only directories so that there is no Makefile.PL some levels up matter.)391 392 dirs=''393 ddirs=''394 preci='ext/%/Makefile.aout '395 for d in ext/*396 do397 # echo "...Checking '$d'..."398 # skip the kid if the parent exists: cmp SDBFile/sdbm, done by MakeMaker399 if test ! -e "$d/Makefile.PL"; then400 # Need to treat subdirectories manually401 # echo "...Checking subdirs of '$d'..."402 d_treated=''403 for dd in $d/*404 do405 if test ! -d $dd; then406 continue407 fi408 if test -e "$dd/Makefile.PL"; then409 if test "X$d_treated" = "X"; then410 d_treated=1411 # echo "...Found parentless 2-level deep Makefile.PL's in $d/*/:" $d/*/Makefile.PL412 dirs="$dirs $d"413 preci="$preci $d/%/Makefile.aout"414 fi415 else416 # Need to treat subsubdirectories manually417 dd_treated=''418 for ddd in $dd/* # ext/*/*/*/Makefile.PL419 do420 if test ! -d $ddd; then421 continue422 fi423 if test -e "$ddd/Makefile.PL"; then424 if test "X$dd_treated" = "X"; then425 dd_treated=1426 # echo "...Found parentless 3-level deep Makefile.PL's in $dd/*/:" $dd/*/Makefile.PL427 ddirs="$ddirs $dd"428 preci="$preci $dd/%/Makefile.aout"429 fi430 fi431 done432 fi433 done434 fi435 done436 437 # ext/threads is marked as NORECURS, so we need to specialcase it438 if echo "$static_ext $dynamic_ext" | grep -q threads/shared ; then439 preci="$preci ext/threads/%/Makefile.aout"440 dirs="$dirs ext/threads"441 fi442 443 $spitshell >>Makefile <<!GROK!THIS!444 .PRECIOUS : $preci445 446 # Set this to FORCE to force a rebuilt of aout extensions447 448 AOUT_EXTENSIONS_FORCE =449 450 !GROK!THIS!451 452 for d in $ddirs453 do454 # Remove the leading component ext/455 dd=`dirname $d`456 pp=`basename $dd`457 p=$pp/`basename $d`458 $spitshell >>Makefile <<!GROK!THIS!459 lib/auto/$p/*/%.a : $d/%/Makefile.aout460 @cd $d/\$(basename \$(notdir \$@)) ; make -f Makefile.aout config || echo "\$(MAKE) config failed, continuing anyway..."461 cd $d/\$(basename \$(notdir \$@)) ; make -f Makefile.aout LINKTYPE=static CCCDLFLAGS=462 463 $d/%/Makefile.aout : miniperl_ \$(_preplibrary) \$(AOUT_EXTENSIONS_FORCE)464 cd \$(dir \$@) ; ../../../../miniperl_ -I ../../../../lib Makefile.PL FIRST_MAKEFILE=Makefile.aout INSTALLDIRS=perl PERL_CORE=1465 466 !GROK!THIS!467 468 done469 470 for d in $dirs471 do472 p=`basename $d`473 $spitshell >>Makefile <<!GROK!THIS!474 lib/auto/$p/*/%.a : $d/%/Makefile.aout475 @cd $d/\$(basename \$(notdir \$@)) ; make -f Makefile.aout config || echo "\$(MAKE) config failed, continuing anyway..."476 cd $d/\$(basename \$(notdir \$@)) ; make -f Makefile.aout LINKTYPE=static CCCDLFLAGS=477 478 $d/%/Makefile.aout : miniperl_ \$(_preplibrary) \$(AOUT_EXTENSIONS_FORCE)479 cd \$(dir \$@) ; ../../../miniperl_ -I ../../../lib Makefile.PL FIRST_MAKEFILE=Makefile.aout INSTALLDIRS=perl PERL_CORE=1480 481 !GROK!THIS!482 483 done484 485 # We need to special-case OS2/DLL/DLL.a, since the recipe above will486 # try to find it in ext/OS2/DLL487 488 $spitshell >>Makefile <<'!NO!SUBS!'489 lib/auto/OS2/DLL/DLL.a : lib/auto/OS2/REXX/REXX.a490 @sh -c true491 492 lib/auto/*/%.a : ext/%/Makefile.aout493 @cd ext/$(basename $(notdir $@)) ; make -f Makefile.aout config || echo "\$(MAKE) config failed, continuing anyway..."494 cd ext/$(basename $(notdir $@)) ; make -f Makefile.aout LINKTYPE=static CCCDLFLAGS=495 496 ext/%/Makefile.aout : miniperl_ $(_preplibrary) $(AOUT_EXTENSIONS_FORCE)497 cd $(dir $@) ; ../../miniperl_ -I ../../lib Makefile.PL FIRST_MAKEFILE=Makefile.aout INSTALLDIRS=perl PERL_CORE=1498 499 !NO!SUBS! -
trunk/essentials/dev-lang/perl/os2/dl_os2.c
r3206 r3220 165 165 } 166 166 167 c har *167 const char * 168 168 dlerror(void) 169 169 {
Note:
See TracChangeset
for help on using the changeset viewer.