5 # ** |
5 # ** |
6 # ** This file is part of symbian-sbsv2 mkspec. |
6 # ** This file is part of symbian-sbsv2 mkspec. |
7 # ** |
7 # ** |
8 # ****************************************************************************/ |
8 # ****************************************************************************/ |
9 |
9 |
10 include $(FLMHOME)/metaflm.mk |
|
11 |
10 |
12 SINGLETON:=$(call sanitise,TARGET_$(PREDEP_TARGET)) |
11 SINGLETON:=$(call sanitise,TARGET_$(PREDEP_TARGET)) |
13 |
12 |
|
13 MY_CMD:=$(COMMAND) |
|
14 |
14 # If the command has a drive letter, don't prepend EPOCROOT |
15 # If the command has a drive letter, don't prepend EPOCROOT |
15 ifeq ($(findstring :,$(firstword $(COMMAND))), :) |
16 ifneq ($(findstring :,$(firstword $(COMMAND))), :) |
16 MY_CMD:=$(COMMAND) |
17 # Additional checking is necessary for the Linux compilation |
17 else |
18 ifneq ($(findstring $(EPOCROOT), $(firstword $(COMMAND))), $(EPOCROOT)) |
18 #Additional checking is necessary for the Linux compilation |
19 ifeq ($(findstring /epoc32, $(firstword $(COMMAND))), /epoc32) |
19 ifeq ($(findstring $(EPOCROOT), $(firstword $(COMMAND))), $(EPOCROOT)) |
20 MY_CMD:=$(EPOCROOT)$(COMMAND) |
20 MY_CMD:=$(COMMAND) |
21 endif |
21 else |
|
22 MY_CMD:=$(EPOCROOT)$(COMMAND) |
|
23 endif |
22 endif |
24 endif |
23 endif |
25 |
24 |
26 define qmake_extra_pre_targetdep |
25 define qmake_extra_pre_targetdep |
27 $(ALLTARGET):: $(PREDEP_TARGET) |
|
28 EXPORT:: $(PREDEP_TARGET) |
26 EXPORT:: $(PREDEP_TARGET) |
29 LIBRARY:: $(PREDEP_TARGET) |
|
30 TARGET:: $(PREDEP_TARGET) |
|
31 |
27 |
32 # Prevent duplicate targets from being created |
28 # Prevent duplicate targets from being created |
33 $(SINGLETON):=1 |
29 $(SINGLETON):=1 |
34 |
30 |
35 $(PREDEP_TARGET): $(DEPS) |
31 $(PREDEP_TARGET): $(DEPS) |
36 $(call startrule,qmake_extra_pre_targetdep) \ |
32 $(call startrule,qmake_extra_pre_targetdep,FORCESUCCESS) \ |
37 $(MY_CMD) \ |
33 $(MY_CMD) \ |
38 $(call endrule,qmake_extra_pre_targetdep) |
34 $(call endrule,qmake_extra_pre_targetdep) |
39 endef |
35 endef |
40 |
36 |
41 ifeq ($($(SINGLETON)),) |
37 ifeq ($($(SINGLETON)),) |