Skip to content

Commit

Permalink
Check dependencies for src/pmc/pipp_group.so
Browse files Browse the repository at this point in the history
  • Loading branch information
bschmalhofer committed Mar 5, 2009
1 parent 2596f5b commit 6181f54
Show file tree
Hide file tree
Showing 2 changed files with 21 additions and 14 deletions.
31 changes: 20 additions & 11 deletions build/templates/Makefile.in
Expand Up @@ -20,6 +20,18 @@ NQP = $(BUILD_DIR)/compilers/nqp/nqp.pbc
PCT = $(BUILD_DIR)/runtime/parrot/library/PCT.pbc
PBC_TO_EXE = $(BUILD_DIR)/pbc_to_exe$(EXE)

PIPP_GROUP = $(PMC_DIR)/pipp_group$(LOAD_EXT)

PMC_DEPS = \
$(PMC_DIR)/php.pmc \
$(PMC_DIR)/phparray.pmc \
$(PMC_DIR)/phpboolean.pmc \
$(PMC_DIR)/phpfloat.pmc \
$(PMC_DIR)/phpinteger.pmc \
$(PMC_DIR)/phpresource.pmc \
$(PMC_DIR)/phpstring.pmc \
$(PMC_DIR)/phpnull.pmc

INTERNALS_PIR = \
src/classes/Object.pir

Expand Down Expand Up @@ -95,8 +107,6 @@ help:
@echo " all: Build pipp.pbc"
@echo " This is the default."
@echo " pipp$(EXE): A fancy executable."
@echo " build Same as 'all'."
@echo " build-pmc Build all PMCs."
@echo ""
@echo "Testing:"
@echo " test: Run the test suite for Pipp."
Expand All @@ -119,14 +129,16 @@ help:
Makefile: build/templates/Makefile.in
$(PERL) Configure.pl

build: pipp$(EXE)


# Target for building a standalone Pipp.
#pipp$(EXE): build-pmc library/pipplib.pbc pipp.pbc $(PHP_EXT) Test.pir
pipp$(EXE): build-pmc library/pipplib.pbc pipp.pbc $(PHP_EXT)
#pipp$(EXE): library/pipplib.pbc pipp.pbc $(PHP_EXT) Test.pir
pipp.pbc: $(PIPP_GROUP) library/pipplib.pbc $(PHP_EXT)

pipp$(EXE): pipp.pbc
$(PBC_TO_EXE) pipp.pbc

$(PIPP_GROUP): $(PMC_DEPS)
$(MAKE) $(PMC_DIR) build

library/pipplib.pbc: \
src/common/builtins.pir \
src/common/guts.pir \
Expand Down Expand Up @@ -165,9 +177,6 @@ Test.pir: Test.php pipp.pbc
$(PARROT) pipp.pbc --target=pir --output=Test.pir Test.php


build-pmc:
$(MAKE) $(PMC_DIR) build

test: all
- $(PERL) t/harness

Expand All @@ -178,7 +187,7 @@ test-php:

# run the test suite, create a TAP archive and send it off to smolder
smolder_test : smoke
smoke : build
smoke : all
- $(PERL) t/harness --archive --send-to-smolder


Expand Down
4 changes: 1 addition & 3 deletions build/templates/src/pmc/Makefile.in
Expand Up @@ -3,7 +3,6 @@
# Set up commands
PERL = @perl@
RM_F = @rm_f@
TOUCH = @touch@
PMCBUILD = $(PERL) @build_dir@/tools/build/dynpmc.pl
CC = @cc@
CFLAGS = @ccflags@ @cc_shared@ @cc_debug@ @ccwarn@ @cc_hasjit@ @cg_flag@ @gc_flag@
Expand All @@ -17,10 +16,9 @@ PARROT_DYNEXT = $(BUILD_DIR)/runtime/parrot/dynext
LOAD_EXT = @load_ext@
O = @o@


PIPP_GROUP = pipp_group$(LOAD_EXT)

PMCS = \
PMCS = \
php \
phparray \
phpboolean \
Expand Down

0 comments on commit 6181f54

Please sign in to comment.