|
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 # |
|
18 # $Id: xrpcrt.mk,v 1.1 2005/04/06 05:36:41 slava Exp $ |
|
19 # |
|
20 # Makefile for compiling xrpcrt.dll |
|
21 # |
|
22 # It is not possible to compile this component using standard Symbian |
|
23 # development tools. |
|
24 # |
|
25 # ============================================================================ |
|
26 |
|
27 !IF "$(PLATFORM)" != "WINS" && "$(PLATFORM)" != "WINSCW" && "$(PLATFORM)" != "VC6" |
|
28 !ERROR "Not a WINS or WINSCW build!" |
|
29 !ENDIF |
|
30 |
|
31 OutDir = build |
|
32 DebugDir = $(OutDir)\debug |
|
33 ReleaseDir = $(OutDir)\release |
|
34 |
|
35 TargetName = xrpcrt |
|
36 TargetExe = $(TargetName).dll |
|
37 TargetLib = $(TargetName).lib |
|
38 |
|
39 Workspace = xrpcrt.dsw |
|
40 DebugTarget= "xrpcrt - Win32 Debug" |
|
41 ReleaseTarget = "xrpcrt - Win32 Release" |
|
42 |
|
43 WinsDebugExe = $(EPOCROOT)epoc32\release\wins\udeb\$(TargetExe) |
|
44 WinsDebugLib = $(EPOCROOT)epoc32\release\wins\udeb\$(TargetLib) |
|
45 WinsReleaseExe = $(EPOCROOT)epoc32\release\wins\urel\$(TargetExe) |
|
46 WinsReleaseLib = $(EPOCROOT)epoc32\release\wins\urel\$(TargetLib) |
|
47 WinsCwDebugExe = $(EPOCROOT)epoc32\release\winscw\udeb\$(TargetExe) |
|
48 WinsCwDebugLib = $(EPOCROOT)epoc32\release\winscw\udeb\$(TargetLib) |
|
49 WinsCwReleaseExe = $(EPOCROOT)epoc32\release\winscw\urel\$(TargetExe) |
|
50 WinsCwReleaseLib = $(EPOCROOT)epoc32\release\winscw\urel\$(TargetLib) |
|
51 |
|
52 !IFNDEF EpocRoot |
|
53 EpocRoot = \ |
|
54 !ENDIF |
|
55 |
|
56 # Targets |
|
57 |
|
58 RELEASABLES: |
|
59 !IF "$(PLATFORM)" == "WINS" |
|
60 !IF "$(CFG)" != "UREL" |
|
61 @echo $(WinsDebugExe) |
|
62 @echo $(WinsDebugLib) |
|
63 !ENDIF |
|
64 !IF "$(CFG)" != "UDEB" |
|
65 @echo $(WinsReleaseExe) |
|
66 @echo $(WinsReleaseLib) |
|
67 !ENDIF |
|
68 !ENDIF |
|
69 !IF "$(PLATFORM)" == "WINSCW" |
|
70 !IF "$(CFG)" != "UREL" |
|
71 @echo $(WinsCwDebugExe) |
|
72 @echo $(WinsCwDebugLib) |
|
73 !ENDIF |
|
74 !IF "$(CFG)" != "UDEB" |
|
75 @echo $(WinsCwReleaseExe) |
|
76 @echo $(WinsCwReleaseLib) |
|
77 !ENDIF |
|
78 !ENDIF |
|
79 |
|
80 CLEAN: |
|
81 !IF "$(PLATFORM)" == "WINS" && "$(CFG)" == "UDEB" |
|
82 if exist $(WinsDebugExe) del /F $(WinsDebugExe) |
|
83 if exist $(WinsDebugLib) del /F $(WinsDebugLib) |
|
84 !ENDIF |
|
85 !IF "$(PLATFORM)" == "WINS" && "$(CFG)" == "UREL" |
|
86 if exist $(WinsReleaseExe) del /F $(WinsReleaseExe) |
|
87 if exist $(WinsReleaseLib) del /F $(WinsReleaseLib) |
|
88 !ENDIF |
|
89 !IF "$(PLATFORM)" == "WINSCW" && "$(CFG)" == "UDEB" |
|
90 if exist $(WinsCwDebugExe) del /F $(WinsCwDebugExe) |
|
91 if exist $(WinsCwDebugLib) del /F $(WinsCwDebugLib) |
|
92 !ENDIF |
|
93 !IF "$(PLATFORM)" == "WINSCW" && "$(CFG)" == "UREL" |
|
94 if exist $(WinsCwReleaseExe) del /F $(WinsCwReleaseExe) |
|
95 if exist $(WinsCwReleaseLib) del /F $(WinsCwReleaseLib) |
|
96 !ENDIF |
|
97 msdev $(Workspace) /MAKE $(ReleaseTarget) /USEENV /CLEAN |
|
98 if exist $(ReleaseDir) rd /q /s $(ReleaseDir) |
|
99 !IF "$(CFG)" != "UREL" |
|
100 msdev $(Workspace) /MAKE $(DebugTarget) /USEENV /CLEAN |
|
101 if exist $(DebugTarget) rd /q /s $(DebugTarget) |
|
102 !ENDIF |
|
103 |
|
104 BLD: |
|
105 !IF "$(CFG)" != "UREL" |
|
106 msdev $(Workspace) /MAKE $(DebugTarget) /USEENV |
|
107 !ENDIF |
|
108 msdev $(Workspace) /MAKE $(ReleaseTarget) /USEENV |
|
109 |
|
110 MAKMAKE FINAL FREEZE LIB CLEANLIB RESOURCE SAVESPACE : |
|
111 @rem donothing |