25496af3d1b32d79336f889beea37d3f7ecde2c4
[WebKit-https.git] / WebCore / Makefile.am
1 SUBDIRS = khtml kwq
2
3 all-am: previous-clean-timestamp previous-js-clean-timestamp config-timestamp
4         pbxbuild -buildstyle $(BUILDSTYLE) OBJROOT=$(SYMROOTS) SYMROOT=$(SYMROOTS) DSTROOT=$(SYMROOTS) 
5 clean-am:
6         pbxbuild clean OBJROOT=$(SYMROOTS) SYMROOT=$(SYMROOTS) DSTROOT=$(SYMROOTS) 
7         rm -rf $(SYMROOTS)/WebCore.build
8         rm -rf $(SYMROOTS)/WebCore.framework
9         rm -rf $(SYMROOTS)/Safari.app/Frameworks/WebCore.framework
10
11 WebCore-combined.exp: WebCore.exp WebCore-tests.exp previous-clean-timestamp
12         cat $^ > $@
13
14 config.h: config-timestamp
15
16 config-timestamp: ../config.h previous-clean-timestamp
17         perl -ne 'print unless /HAVE_FOUNDATION_SOURCES/ || /DLFCN/' < ../config.h > munged-config.h
18         if ! cmp -s config.h munged-config.h; then \
19             cat munged-config.h > config.h; \
20         fi
21         rm munged-config.h
22         touch $@
23
24 noinst_DATA = WebCore-combined.exp
25 noinst_HEADERS = config.h
26 BUILT_SOURCES = $(noinst_DATA) $(noinst_HEADERS)
27 CLEANFILES = $(BUILT_SOURCES) config-timestamp
28
29 previous-clean-timestamp: force-clean-timestamp
30         make clean && touch $@ && touch previous-js-clean-timestamp
31
32 previous-js-clean-timestamp: force-js-clean-timestamp
33         ../Tools/Scripts/clean-webcore-js && touch $@