X-Git-Url: https://git.saurik.com/apple/javascriptcore.git/blobdiff_plain/9dae56ea45a0f5f8136a5c93d6f3a7f99399ca73..1981f5dfe8d77d97469d20652f712a09400c48ed:/DerivedSources.make diff --git a/DerivedSources.make b/DerivedSources.make index 4b33682..90e099d 100644 --- a/DerivedSources.make +++ b/DerivedSources.make @@ -1,4 +1,4 @@ -# Copyright (C) 2006, 2007, 2008, 2009 Apple Inc. All rights reserved. +# Copyright (C) 2006, 2007, 2008, 2009, 2011 Apple Inc. All rights reserved. # # Redistribution and use in source and binary forms, with or without # modification, are permitted provided that the following conditions @@ -27,7 +27,6 @@ VPATH = \ $(JavaScriptCore) \ $(JavaScriptCore)/parser \ - $(JavaScriptCore)/pcre \ $(JavaScriptCore)/docs \ $(JavaScriptCore)/runtime \ $(JavaScriptCore)/interpreter \ @@ -36,15 +35,27 @@ VPATH = \ .PHONY : all all : \ + ArrayConstructor.lut.h \ ArrayPrototype.lut.h \ - chartables.c \ + BooleanPrototype.lut.h \ + DateConstructor.lut.h \ DatePrototype.lut.h \ - Grammar.cpp \ + ErrorPrototype.lut.h \ + HeaderDetection.h \ + JSONObject.lut.h \ + JSGlobalObject.lut.h \ + KeywordLookup.h \ Lexer.lut.h \ MathObject.lut.h \ NumberConstructor.lut.h \ + NumberPrototype.lut.h \ + ObjectConstructor.lut.h \ + ObjectPrototype.lut.h \ RegExpConstructor.lut.h \ + RegExpPrototype.lut.h \ + RegExpJitTables.h \ RegExpObject.lut.h \ + StringConstructor.lut.h \ StringPrototype.lut.h \ docs/bytecode.html \ # @@ -56,20 +67,29 @@ all : \ Lexer.lut.h: create_hash_table Keywords.table $^ > $@ -# JavaScript language grammar +docs/bytecode.html: make-bytecode-docs.pl Interpreter.cpp + perl $^ $@ -Grammar.cpp: Grammar.y - bison -d -p jscyy $< -o $@ > bison_out.txt 2>&1 - perl -p -e 'END { if ($$conflict) { unlink "Grammar.cpp"; die; } } $$conflict ||= /conflict/' < bison_out.txt - touch Grammar.cpp.h - touch Grammar.hpp - cat Grammar.cpp.h Grammar.hpp > Grammar.h - rm -f Grammar.cpp.h Grammar.hpp bison_out.txt +# character tables for Yarr -# character tables for PCRE +RegExpJitTables.h: create_regex_tables + python $^ > $@ -chartables.c : dftables - $^ $@ +KeywordLookup.h: KeywordLookupGenerator.py Keywords.table + python $^ > $@ -docs/bytecode.html: make-bytecode-docs.pl Interpreter.cpp - perl $^ $@ +# header detection + +ifeq ($(OS),MACOS) + +HeaderDetection.h : DerivedSources.make /System/Library/CoreServices/SystemVersion.plist + rm -f $@ + echo "/* This is a generated file. Do not edit. */" > $@ + if [ -f $(SDKROOT)/System/Library/Frameworks/System.framework/PrivateHeaders/pthread_machdep.h ]; then echo "#define HAVE_PTHREAD_MACHDEP_H 1" >> $@; else echo >> $@; fi + +else + +HeaderDetection.h : + echo > $@ + +endif