| 1 | |
| 2 | PERL = ../miniperl |
| 3 | REALPERL = ../perl |
| 4 | |
| 5 | # Files to be built with variable substitution after miniperl is |
| 6 | # available. Dependencies handled manually below (for now). |
| 7 | |
| 8 | pl = c2ph.PL h2ph.PL h2xs.PL perlbug.PL perldoc.PL pl2pm.PL splain.PL perlcc.PL dprofpp.PL |
| 9 | plextract = c2ph h2ph h2xs perlbug perldoc pl2pm splain perlcc dprofpp |
| 10 | plextractexe = c2ph.exe h2ph.exe h2xs.exe perlbug.exe perldoc.exe pl2pm.exe splain.exe perlcc.exe dprofpp.exe |
| 11 | |
| 12 | all: $(plextract) |
| 13 | |
| 14 | compile: all |
| 15 | $(REALPERL) -I../lib perlcc -opt -regex 's/$$/.exe/' $(plextract) -prog -verbose dcf -log ../compilelog; |
| 16 | |
| 17 | $(plextract): |
| 18 | $(PERL) -I../lib $@.PL |
| 19 | |
| 20 | c2ph: c2ph.PL ../config.sh |
| 21 | |
| 22 | h2ph: h2ph.PL ../config.sh |
| 23 | |
| 24 | h2xs: h2xs.PL ../config.sh |
| 25 | |
| 26 | perlbug: perlbug.PL ../config.sh ../patchlevel.h |
| 27 | |
| 28 | perldoc: perldoc.PL ../config.sh |
| 29 | |
| 30 | pl2pm: pl2pm.PL ../config.sh |
| 31 | |
| 32 | splain: splain.PL ../config.sh ../lib/diagnostics.pm |
| 33 | |
| 34 | perlcc: perlcc.PL ../config.sh |
| 35 | |
| 36 | dprofpp: dprofpp.PL ../config.sh |
| 37 | |
| 38 | clean: |
| 39 | |
| 40 | realclean: |
| 41 | rm -rf $(plextract) pstruct $(plextractexe) |
| 42 | rm -f ../t/_h2ph_pre.ph |
| 43 | |
| 44 | clobber: realclean |
| 45 | |
| 46 | distclean: clobber |