-# 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
VPATH = \
$(JavaScriptCore) \
$(JavaScriptCore)/parser \
- $(JavaScriptCore)/pcre \
$(JavaScriptCore)/docs \
$(JavaScriptCore)/runtime \
$(JavaScriptCore)/interpreter \
.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 \
#
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