-
Notifications
You must be signed in to change notification settings - Fork 18
/
Makefile
103 lines (75 loc) · 2.7 KB
/
Makefile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
# Build WOCE goodness
WOCE_TOOLCHAIN=arm-2009q1
WOCE_ARCH=armv7
LEVEL = .
.PHONY: woce-toolchain woce-headers clobber
.PHONY: qt4 luna-sysmgr webkit-depends webkit
.PHONY: default woce webos-ports custom
include $(LEVEL)/Makefile.common
# To build packages, we need the toolchain and the staging dir setup
# For now, just list packages to be built here, in a working order.
build:: linkdirs
$(MAKE) woce-toolchain woce-headers
$(MAKE) isis
$(MAKE) luna-sysmgr
@echo
@echo "Build Success! New LunaSysMgr available at:"
@echo `readlink -f packages/sysmgr/luna-sysmgr/build/$(CONFIG)/armv7-stage/release-topaz/LunaSysMgr`
@echo
# For now, manually create phony targets for building each package,
# and also manually manage dependencies.
# Grabbing WIDK's DEPENDS and automatic target creation support
# should be done once this gets non-trivial to do by hand.
qt4:
$(MAKE) -C packages/sysmgr/qt4
luna-sysmgr: qt4
$(MAKE) -C packages/sysmgr/luna-sysmgr
webkit-depends: downloads/.zlib downloads/.freetype qt4 npapi
# This is a mess... Need to clean it up...
downloads/.zlib:
scripts/get_zlib.sh $(LEVEL)
touch $@
downloads/.freetype:
scripts/get_freetype.sh $(LEVEL)
touch $@
$(call DL,ISIS)
### Unpack the software and build it
packages/isis/build/$(CONFIG)/.unpacked: $(ISIS_DL)
-rm -rf packages/isis/build/$(CONFIG)
mkdir -p packages/isis/build/$(CONFIG)/src
$(call EXTRACT,ISIS,packages/isis/build/$(CONFIG)/src,--strip=1)
touch $@
isis-download: packages/isis/build/$(CONFIG)/.unpacked
adapterbase:
$(MAKE) -C packages/isis -f Makefile.AdapterBase
npapi:
$(MAKE) -C packages/isis -f Makefile.npapi
cmakemodules:
$(MAKE) -C packages/isis -f Makefile.cmakemodules
pbnjson: cmakemodules
$(MAKE) -C packages/isis -f Makefile.pbnjson
pmcertificatemgr: cmakemodules
$(MAKE) -C packages/isis -f Makefile.pmcertmgr
browseradapter: npapi pbnjson adapterbase browserserver
$(MAKE) -C packages/isis -f Makefile.BrowserAdapter
browserserver: webkitsupplemental pmcertificatemgr
$(MAKE) -C packages/isis -f Makefile.BrowserServer
webkit: webkit-depends
$(MAKE) -C packages/isis -f Makefile.WebKit
webkitsupplemental: webkit
$(MAKE) -C packages/isis -f Makefile.WebKitSupplemental
enyo1:
echo "Need to do something about enyo1"
webview: enyo1
echo "Need to do something about webview"
isis: isis-download browseradapter browserserver webview
echo "We'll need to run a palm-package"
# Download and extract the toolchain
woce-toolchain: toolchain/$(WOCE_TOOLCHAIN)/.unpacked
# Grab the rootfs, stage it, and add our required headers
woce-headers: staging/$(WOCE_ARCH)/usr/include/.staged
# Cleanup everything other than the downloads (which are sacred)
clobber::
rm -rf rootfs
rm -rf staging
rm -rf packages/sysmgr/*/build