|
1 # |
|
2 # Copyright (c) 2009 Nokia Corporation and/or its subsidiary(-ies). |
|
3 # All rights reserved. |
|
4 # This component and the accompanying materials are made available |
|
5 # under the terms of "Eclipse Public License v1.0" |
|
6 # which accompanies this distribution, and is available |
|
7 # at the URL "http://www.eclipse.org/legal/epl-v10.html". |
|
8 # |
|
9 # Initial Contributors: |
|
10 # Nokia Corporation - initial contribution. |
|
11 # |
|
12 # Contributors: |
|
13 # |
|
14 # Description: |
|
15 # |
|
16 |
|
17 ifndef JAVA_SRC_ROOT |
|
18 $(error JAVA_SRC_ROOT variable not defined!) |
|
19 endif |
|
20 |
|
21 include $(JAVA_SRC_ROOT)/build/Makefile.defs |
|
22 |
|
23 .PHONY: export makemake java nativelib native clean cleanexport reallyclean |
|
24 |
|
25 # Common --------------------------------- |
|
26 |
|
27 java qmakefix configure_qmake: |
|
28 |
|
29 clean: clean_native clean_java |
|
30 |
|
31 reallyclean: clean cleanexport |
|
32 |
|
33 clean_generated: |
|
34 |
|
35 clean_configure: |
|
36 |
|
37 test: |
|
38 $(PHASEINFO) |
|
39 $(EXEC_NONQT) |
|
40 |
|
41 # Symbian ---------------------------------- |
|
42 ifeq ($(BUILDENV),symbian) |
|
43 |
|
44 all: native |
|
45 |
|
46 javareleasables: |
|
47 |
|
48 makestubs: |
|
49 |
|
50 # Symbian SBS ------------------------------ |
|
51 ifdef USESBS |
|
52 |
|
53 # BUILD combines commands EXPORT MAKEFILE BITMAP RESOURCE LIBRARY TARGET FINAL |
|
54 native: |
|
55 $(PHASEINFO) |
|
56 $(SBS) -c $(PLATFORM)_$(CFG) BUILD |
|
57 |
|
58 clean_java: |
|
59 |
|
60 clean_native: |
|
61 $(PHASEINFO) |
|
62 $(SBS) -c $(PLATFORM)_$(CFG) clean |
|
63 |
|
64 reallyclean: |
|
65 $(PHASEINFO) |
|
66 $(SBS) -c $(PLATFORM)_$(CFG) reallyclean |
|
67 |
|
68 export: |
|
69 $(PHASEINFO) |
|
70 $(SBS) -c $(PLATFORM)_$(CFG) EXPORT |
|
71 |
|
72 cleanexport: |
|
73 $(PHASEINFO) |
|
74 -$(SBS) -c $(PLATFORM)_$(CFG) CLEANEXPORT |
|
75 |
|
76 |
|
77 # Symbian ABLD MAKEFILE -------------------- |
|
78 else |
|
79 |
|
80 native: |
|
81 $(PHASEINFO) |
|
82 $(BLDMAKE) bldfiles |
|
83 $(ABLDMAKE) -f $(BUILDDIR)/EXPORT.make EXPORT |
|
84 $(ABLDMAKE) -f $(BUILDDIR)/$(PLATFORM).make MAKEFILE $(VERBOSE) |
|
85 $(ABLDMAKE) -f $(BUILDDIR)/$(PLATFORM).make LIBRARY $(VERBOSE) |
|
86 $(ABLDMAKE) -f $(BUILDDIR)/$(PLATFORM).make RESOURCE CFG=$(CFG) $(VERBOSE) |
|
87 $(ABLDMAKE) -f $(BUILDDIR)/$(PLATFORM).make TARGET CFG=$(CFG) $(VERBOSE) |
|
88 $(ABLDMAKE) -f $(BUILDDIR)/$(PLATFORM).make FINAL CFG=$(CFG) $(VERBOSE) |
|
89 |
|
90 clean_java: |
|
91 |
|
92 clean_native: |
|
93 $(PHASEINFO) |
|
94 -$(ABLDMAKE) -f $(BUILDDIR)/$(PLATFORM).make CLEAN CFG=$(CFG) $(VERBOSE) |
|
95 |
|
96 reallyclean: |
|
97 $(PHASEINFO) |
|
98 -$(ABLDMAKE) -f $(BUILDDIR)/$(PLATFORM).make CLEAN CFG=$(CFG) $(VERBOSE) |
|
99 -$(ABLDMAKE) -f $(BUILDDIR)/$(PLATFORM).make CLEANALL CFG=$(CFG) $(VERBOSE) |
|
100 -$(BLDMAKE) clean |
|
101 |
|
102 export: |
|
103 $(PHASEINFO) |
|
104 $(BLDMAKE) bldfiles $(PLATFORM) |
|
105 $(ABLDMAKE) -f $(BUILDDIR)/EXPORT.make EXPORT |
|
106 |
|
107 cleanexport: |
|
108 $(PHASEINFO) |
|
109 $(BLDMAKE) bldfiles $(PLATFORM) |
|
110 $(ABLDMAKE) -f $(BUILDDIR)/EXPORT.make CLEANEXPORT |
|
111 |
|
112 endif |
|
113 |
|
114 |
|
115 # Linux ----------------------------------- |
|
116 else |
|
117 |
|
118 all: export native |
|
119 |
|
120 EXPORTCMD = python ${JAVA_SRC_ROOT}/build/buildutils/export.py -DJAVA_SRC_ROOT=$(JAVA_SRC_ROOT) -DJAVA_BIN_ROOT=$(JAVA_BIN_ROOT) $(addprefix -D,$(PROJECT_DEFINES)) |
|
121 |
|
122 export: |
|
123 $(EXPORTCMD) BUILD exports.inf |
|
124 |
|
125 cleanexport: |
|
126 $(EXPORTCMD) CLEAN exports.inf |
|
127 |
|
128 makemake: |
|
129 |
|
130 nativelib: |
|
131 |
|
132 native: |
|
133 ifneq ($(wildcard Makefile makefile),) |
|
134 make |
|
135 endif |
|
136 |
|
137 fastbuild: export |
|
138 ifneq ($(wildcard Makefile makefile),) |
|
139 make |
|
140 endif |
|
141 |
|
142 clean_java clean_native reallyclean: cleanexport |
|
143 ifneq ($(wildcard Makefile makefile),) |
|
144 make clean |
|
145 endif |
|
146 |
|
147 endif |