######################################################################
# setup relative path to the microbrowser directory
######################################################################
PROJECT_TOP = ../../..

include $(PROJECT_TOP)/config/config.mak

######################################################################
# module name
######################################################################
MODULE_NAME	= WebCore

WebKitOutputDir	= ../../WebKitSilkBuild

######################################################################
# version script file name
######################################################################
#VERSION_SCRIPT_FILE  = ./WebCore-gcc.def

######################################################################
# add local includes
######################################################################
INCLUDES += \
	-I.. \
	-I../accessibility \
	-I../bridge \
	-I../bridge/c \
	-I../css \
	-I../editing \
	-I../rendering \
	-I../rendering/style \
	-I../bindings/js \
	-I../dom \
	-I../history \
	-I../html \
	-I../inspector \
	-I../loader \
	-I../loader/appcache \
	-I../loader/archive \
	-I../loader/icon \
	-I../page \
	-I../page/animation \
	-I../platform \
	-I../platform/animation \
	-I../platform/sql \
	-I../platform/network \
	-I../platform/graphics \
	-I../platform/graphics/opentype \
	-I../platform/graphics/transforms \
	-I../platform/text \
	-I../xml \
	-I$(WebKitOutputDir)/obj/WebCore/DerivedSources \
	-I../plugins \
	-I../svg/graphics \
	-I../svg/graphics/filters \
	-I../svg \
	-I../wml \
	-I../storage \
	-I../workers \
	-I$(WebKitOutputDir)/include \
	-I$(WebKitOutputDir)/include/JavaScriptCore \
	-I../ForwardingHeaders \
	-I../svg/animation \
	-I../platform/silk \
	-I../platform/graphics/silk \
	-I../platform/network/silk \
	-I../../WebKitSilkLibraries$(OUTDIR)/include \
	-I../../WebKit/silk \
	-I$(VSH_PATH)/paf_etc/sample/sandbox/sqlite3

######################################################################
# set extra defines into CFLAGS variable
######################################################################
DEFINES	+= $(WEBKIT_DEFINES)

######################################################################
# read object file list 
######################################################################
include $(MODULE_NAME)_SourceList.mk

OBJ_FILES := $(filter-out WebCorePrefix.o,$(OBJ_FILES))
OBJ_FILES += DerivedSources2.o

######################################################################
# depend modules
######################################################################
DEP_HEADER_PATHS = \


######################################################################
# source files
######################################################################
SOURCE_FILES = \


######################################################################
# setup build rules
######################################################################
include $(PROJECT_TOP)/config/build.mak

postbuild ::
	$(MKDIR) $(WebKitOutputDir)/include/WebCore
	$(MKDIR) $(WebKitOutputDir)/include/WebCore/ForwardingHeaders
	$(MKDIR) $(WebKitOutputDir)/include/WebCore/ForwardingHeaders/bindings
	$(MKDIR) $(WebKitOutputDir)/include/WebCore/ForwardingHeaders/parser
	$(MKDIR) $(WebKitOutputDir)/include/WebCore/ForwardingHeaders/runtime
	$(MKDIR) $(WebKitOutputDir)/include/WebCore/ForwardingHeaders/masm
	$(MKDIR) $(WebKitOutputDir)/include/WebCore/ForwardingHeaders/pcre
	$(MKDIR) $(WebKitOutputDir)/include/WebCore/ForwardingHeaders/profiler
	$(MKDIR) $(WebKitOutputDir)/include/WebCore/ForwardingHeaders/wrec
	$(MKDIR) $(WebKitOutputDir)/include/WebCore/ForwardingHeaders/wtf
	$(MKDIR) $(WebKitOutputDir)/include/WebCore/ForwardingHeaders/wtf/unicode
	$(MKDIR) $(WebKitOutputDir)/include/WebCore/ForwardingHeaders/wtf/unicode/icu
	$(CP) -fu ../config.h $(WebKitOutputDir)/include/WebCore
	$(CP) -fu $(WebKitOutputDir)/obj/WebCore/DerivedSources/*.h $(WebKitOutputDir)/include/WebCore
	$(CP) -fu ../inspector/*.h $(WebKitOutputDir)/include/WebCore
	$(CP) -fu ../loader/*.h $(WebKitOutputDir)/include/WebCore
	$(CP) -fu ../loader/appcache/*.h $(WebKitOutputDir)/include/WebCore
	$(CP) -fu ../loader/archive/*.h $(WebKitOutputDir)/include/WebCore
	$(CP) -fu ../loader/icon/*.h $(WebKitOutputDir)/include/WebCore
	$(CP) -fu ../history/*.h $(WebKitOutputDir)/include/WebCore
	$(CP) -fu ../html/*.h $(WebKitOutputDir)/include/WebCore
	$(CP) -fu ../css/*.h $(WebKitOutputDir)/include/WebCore
	$(CP) -fu ../platform/*.h $(WebKitOutputDir)/include/WebCore
	$(CP) -fu ../platform/animation/*.h $(WebKitOutputDir)/include/WebCore
	$(CP) -fu ../platform/silk/*.h $(WebKitOutputDir)/include/WebCore
	$(CP) -fu ../platform/graphics/*.h $(WebKitOutputDir)/include/WebCore
	$(CP) -fu ../platform/graphics/silk/*.h $(WebKitOutputDir)/include/WebCore
	$(CP) -fu ../platform/graphics/transforms/*.h $(WebKitOutputDir)/include/WebCore
	$(CP) -fu ../platform/graphics/opentype/*.h $(WebKitOutputDir)/include/WebCore
	$(CP) -fu ../platform/text/*.h $(WebKitOutputDir)/include/WebCore
	$(CP) -fu ../platform/network/*.h $(WebKitOutputDir)/include/WebCore
	$(CP) -fu ../platform/network/silk/*.h $(WebKitOutputDir)/include/WebCore
	$(CP) -fu ../platform/sql/*.h $(WebKitOutputDir)/include/WebCore
	$(CP) -fu ../bindings/js/*.h $(WebKitOutputDir)/include/WebCore
	$(CP) -fu ../page/*.h $(WebKitOutputDir)/include/WebCore
	$(CP) -fu ../page/animation/*.h $(WebKitOutputDir)/include/WebCore
	$(CP) -fu ../bridge/*.h $(WebKitOutputDir)/include/WebCore
	$(CP) -fu ../plugins/*.h $(WebKitOutputDir)/include/WebCore
	$(CP) -fu ../rendering/*.h $(WebKitOutputDir)/include/WebCore
	$(CP) -fu ../rendering/style/*.h $(WebKitOutputDir)/include/WebCore
	$(CP) -fu ../editing/*.h $(WebKitOutputDir)/include/WebCore
	$(CP) -fu ../dom/*.h $(WebKitOutputDir)/include/WebCore
	$(CP) -fu ../xml/*.h $(WebKitOutputDir)/include/WebCore
	$(CP) -fu ../svg/*.h $(WebKitOutputDir)/include/WebCore
	$(CP) -fu ../storage/*.h $(WebKitOutputDir)/include/WebCore
	$(CP) -fu ../workers/*.h $(WebKitOutputDir)/include/WebCore
	$(CP) -fu ../ForwardingHeaders/parser/*.h $(WebKitOutputDir)/include/WebCore/ForwardingHeaders/parser
	$(CP) -fu ../ForwardingHeaders/runtime/*.h $(WebKitOutputDir)/include/WebCore/ForwardingHeaders/runtime
	$(CP) -fu ../ForwardingHeaders/masm/*.h $(WebKitOutputDir)/include/WebCore/ForwardingHeaders/masm
	$(CP) -fu ../ForwardingHeaders/pcre/*.h $(WebKitOutputDir)/include/WebCore/ForwardingHeaders/pcre
	$(CP) -fu ../ForwardingHeaders/profiler/*.h $(WebKitOutputDir)/include/WebCore/ForwardingHeaders/profiler
	$(CP) -fu ../ForwardingHeaders/wrec/*.h $(WebKitOutputDir)/include/WebCore/ForwardingHeaders/wrec
	$(CP) -fu ../ForwardingHeaders/wtf/*.h $(WebKitOutputDir)/include/WebCore/ForwardingHeaders/wtf
	$(CP) -fu ../ForwardingHeaders/wtf/unicode/*.h $(WebKitOutputDir)/include/WebCore/ForwardingHeaders/wtf/unicode
	$(CP) -fu ../ForwardingHeaders/wtf/unicode/icu/*.h $(WebKitOutputDir)/include/WebCore/ForwardingHeaders/wtf/unicode/icu
	$(MKDIR) $(WebKitOutputDir)/bin/WebKit.resources/inspector
	$(CP) -fru ../inspector/front-end/* $(WebKitOutputDir)/bin/WebKit.resources/inspector
	$(MKDIR) $(WebKitOutputDir)/bin/WebKit.resources/en.lproj
	$(CP) -fu ../English.lproj/localizedStrings.js $(WebKitOutputDir)/bin/WebKit.resources/en.lproj
	$(RM) $(WebKitOutputDir)/buildfailed
