1 # Copyright (c) 2009 Nokia Corporation and/or its subsidiary(-ies). |
1 # Copyright (c) 2009-2010 Nokia Corporation and/or its subsidiary(-ies). |
2 # All rights reserved. |
2 # All rights reserved. |
3 # This component and the accompanying materials are made available |
3 # This component and the accompanying materials are made available |
4 # under the terms of the License "Eclipse Public License v1.0" |
4 # under the terms of the License "Eclipse Public License v1.0" |
5 # which accompanies this distribution, and is available |
5 # which accompanies this distribution, and is available |
6 # at the URL "http://www.eclipse.org/legal/epl-v10.html". |
6 # at the URL "http://www.eclipse.org/legal/epl-v10.html". |
19 CREATABLEPATH:=$(EXTENSION_ROOT)/../drmengine/drmcrypto/build |
19 CREATABLEPATH:=$(EXTENSION_ROOT)/../drmengine/drmcrypto/build |
20 CLEANTARGETS:=$(CREATABLEPATH)/cmlacrypto.cpp $(CREATABLEPATH)/omacrypto.cpp |
20 CLEANTARGETS:=$(CREATABLEPATH)/cmlacrypto.cpp $(CREATABLEPATH)/omacrypto.cpp |
21 |
21 |
22 crypto_files:=$(wildcard $(EXTENSION_ROOT)/../drmengine/drmcrypto/CMLA/*.cpp) |
22 crypto_files:=$(wildcard $(EXTENSION_ROOT)/../drmengine/drmcrypto/CMLA/*.cpp) |
23 |
23 |
|
24 |
|
25 GUARD:=done_$(call sanitise,$(CLEANTARGETS)) |
|
26 ifeq ($($(GUARD)),) |
|
27 $(GUARD):=1 |
|
28 |
24 BITMAP :: $(CREATABLEPATH) |
29 BITMAP :: $(CREATABLEPATH) |
25 |
30 |
26 ifeq ($(crypto_files),) |
31 ifeq ($(crypto_files),) |
27 $(GNUCP) $(CREATABLEPATH)/../stub/CmlaCryptoStub.cpp $(CREATABLEPATH)/cmlacrypto.cpp |
32 $(GNUCP) $(CREATABLEPATH)/../stub/CmlaCryptoStub.cpp $(CREATABLEPATH)/cmlacrypto.cpp |
28 else |
33 else |
29 $(GNUCP) $(CREATABLEPATH)/../CMLA/CmlaCrypto.cpp $(CREATABLEPATH)/cmlacrypto.cpp |
34 $(GNUCP) $(CREATABLEPATH)/../CMLA/CmlaCrypto.cpp $(CREATABLEPATH)/cmlacrypto.cpp |
30 endif |
35 endif |
31 $(GNUCP) $(CREATABLEPATH)/../src/OmaCrypto.cpp $(CREATABLEPATH)/omacrypto.cpp |
36 $(GNUCP) $(CREATABLEPATH)/../src/OmaCrypto.cpp $(CREATABLEPATH)/omacrypto.cpp |
|
37 $(GNUCHMOD) u+w $(CREATABLEPATH)/cmlacrypto.cpp |
|
38 $(GNUCHMOD) u+w $(CREATABLEPATH)/omacrypto.cpp |
32 |
39 |
33 # Create dirs |
40 # Create dirs |
34 $(call makepath,$(CREATABLEPATH)) |
41 $(call makepath,$(CREATABLEPATH)) |
35 |
42 |
36 ## Clean up |
43 ## Clean up |
37 $(eval $(call GenerateStandardCleanTarget,$(CLEANTARGETS))) |
44 $(eval $(call GenerateStandardCleanTarget,$(CLEANTARGETS))) |
38 |
45 |
|
46 ## What |
|
47 $(eval $(call whatmacro,$(CLEANTARGETS))) |
|
48 |
|
49 |
|
50 else |
|
51 $(info <debug>$(PLATFORM) $(CFG), up-to-date $(CLEANTARGETS)</debug>) |
|
52 |
|
53 endif |