Skip to content

Commit

Permalink
Add fakecutable creation and cleanup.
Browse files Browse the repository at this point in the history
  • Loading branch information
darbelo committed Oct 16, 2009
1 parent 3477a94 commit 3cd2dac
Showing 1 changed file with 13 additions and 10 deletions.
23 changes: 13 additions & 10 deletions config/makefiles/root.in
Expand Up @@ -17,6 +17,7 @@ CP = @cp@
CAT = @cat@
PARROT = @bindir@/parrot@exe@
NQP = @bindir@/parrot_nqp@exe@
PBC_TO_EXE = @bindir@/pbc_to_exe

#IF(darwin):# MACOSX_DEPLOYMENT_TARGET must be defined for OS X compilation/linking
#IF(darwin):export MACOSX_DEPLOYMENT_TARGET := @osx_version@
Expand All @@ -28,7 +29,7 @@ PCT = $(LIB_DIR)/PCT.pbc

PMC_DIR = src/pmc

all: matrixy.pbc
all: matrixy@exe@

SOURCES = \
matrixy.pir src/gen_grammar.pir \
Expand All @@ -40,7 +41,10 @@ BUILTINS_PIR = src/builtins/*.pir
INTERNALS_PIR = src/internals/*.pir

# the default target
matrixy.pbc: $(PARROT) $(SOURCES)
matrixy@exe@: matrixy.pbc
$(PBC_TO_EXE) matrixy.pbc

matrixy.pbc: $(SOURCES)
$(PARROT) $(PARROT_ARGS) -o matrixy.pbc matrixy.pir

src/gen_grammar.pir: $(PERL6GRAMMAR) src/parser/grammar.pg src/parser/grammar-oper.pg
Expand All @@ -50,7 +54,8 @@ src/gen_grammar.pir: $(PERL6GRAMMAR) src/parser/grammar.pg src/parser/grammar-op
src/parser/grammar-oper.pg \

src/gen_actions.pir: src/parser/actions.pm
$(NQP) --output=src/gen_actions.pir --target=pir src/parser/actions.pm
$(NQP) --output=src/gen_actions.pir \
--target=pir src/parser/actions.pm

src/gen_builtins.pir: $(BUILTINS_PIR)
$(CAT) $(BUILTINS_PIR) >src/gen_builtins.pir
Expand All @@ -71,7 +76,6 @@ help:
@echo " This is the default."
@echo "Testing:"
@echo " test: Run the test suite."
@echo " testclean: Clean up test results."
@echo ""
@echo "Cleaning:"
@echo " clean: Basic cleaning up."
Expand All @@ -85,14 +89,13 @@ help:
test: all
$(PERL) t/harness

# this target has nothing to do
testclean:

CLEANUPS = \
matrixy.pbc \
"src/gen_*.pir"
matrixy.pbc \
matrixy$(O) \
matrixy@exe@ \
src/gen_*.pir

clean: testclean
clean:
$(RM_F) $(CLEANUPS)

realclean: clean
Expand Down

0 comments on commit 3cd2dac

Please sign in to comment.