wait for button release after save load
[picodrive.git] / platform / s60 / PICODRIVES60.SUP.MAKE
... / ...
CommitLineData
1\r
2PATH=\s60v1\epoc32\tools\;\s60v1\epoc32\gcc\bin\;C:\winnt\system32;C:\winnt;C:\winnt\System32\Wbem;C:\Program Files\ATI Technologies\ATI Control Panel;C:\Program Files\Common Files\Adaptec Shared\System;C:\Perl\bin;\s60v1\epoc32\tools;c:\MSVC6\VC98\Bin;C:\s60v1\epoc32\tools\nokia_compiler\Symbian_Tools\Command_Line_Tools;C:\Program Files\CSL Arm Toolchain\arm-none-symbianelf\bin;C:\Program Files\CSL Arm Toolchain\bin\r
3\r
4# EPOC DEFINITIONS\r
5\r
6EPOCBLD = \s60v1\EPOC32\BUILD\PICODRIVE\S60\PICODRIVES60\WINS\ #\r
7EPOCTRG = \s60v1\EPOC32\RELEASE\WINS\ #\r
8EPOCLIB = \s60v1\EPOC32\RELEASE\WINS\ #\r
9EPOCLINK = \s60v1\EPOC32\RELEASE\WINS\ #\r
10EPOCSTATLINK = \s60v1\EPOC32\RELEASE\WINS\ #\r
11\r
12EPOCBLDUDEB = $(EPOCBLD)UDEB\r
13EPOCTRGUDEB = $(EPOCTRG)UDEB\r
14EPOCLIBUDEB = $(EPOCLIB)UDEB\r
15EPOCLINKUDEB = $(EPOCLINK)UDEB\r
16EPOCSTATLINKUDEB = $(EPOCSTATLINK)UDEB\r
17\r
18EPOCBLDUREL = $(EPOCBLD)UREL\r
19EPOCTRGUREL = $(EPOCTRG)UREL\r
20EPOCLIBUREL = $(EPOCLIB)UDEB\r
21EPOCLINKUREL = $(EPOCLINK)UDEB\r
22EPOCSTATLINKUREL = $(EPOCSTATLINK)UREL\r
23\r
24\r
25TRGDIR = Z\SYSTEM\APPS\PICODRIVES60\r
26\r
27DATADIR = Z\SYSTEM\DATA\r
28\r
29LIBRARY :\r
30 @echo WARNING: Not attempting to create "$(EPOCLIB)UDEB\PICODRIVE.LIB".\r
31 @echo When exports are frozen in "\PICODRIVE\BWINS\PICODRIVEU.DEF", regenerate Makefile.\r
32\r
33\r
34# REAL TARGET - IMPORT LIBRARY\r
35\r
36"$(EPOCLIB)UDEB\PICODRIVE.LIB" : "\PICODRIVE\BWINS\PICODRIVEU.DEF" MAKEWORKLIBRARY\r
37 lib.exe /nologo /machine:i386 /nodefaultlib /name:"PICODRIVE.DLL" /def:"\PICODRIVE\BWINS\PICODRIVEU.DEF" /out:"$(EPOCLIB)UDEB\PICODRIVE.LIB"\r
38 del "$(EPOCLIB)UDEB\PICODRIVE.exp"\r
39\r
40\r
41MAKEWORKLIBRARY : "\s60v1\EPOC32\RELEASE\WINS\UDEB"\r
42\r
43"\s60v1\EPOC32\RELEASE\WINS\UDEB" :\r
44 @perl -S emkdir.pl "\s60v1\EPOC32\RELEASE\WINS\UDEB"\r
45\r
46\r
47# BUILD - UDEB\r
48\r
49LIBS= \\r
50 "$(EPOCSTATLINKUDEB)\PICO.LIB" \\r
51 "$(EPOCSTATLINKUDEB)\A68K.OBJ" \\r
52 "$(EPOCSTATLINKUDEB)\MZ80_ASM.OBJ" \\r
53 "$(EPOCLINKUDEB)\CONE.LIB" \\r
54 "$(EPOCLINKUDEB)\EIKCORE.LIB" \\r
55 "$(EPOCLINKUDEB)\MEDIACLIENTAUDIOSTREAM.LIB" \\r
56 "$(EPOCLINKUDEB)\EUSER.LIB" \\r
57 "$(EPOCLINKUDEB)\ZLIB.LIB" \\r
58 "$(EPOCLINKUDEB)\EFSRV.LIB" \\r
59 "$(EPOCLINKUDEB)\ESTLIB.LIB" \\r
60 "$(EPOCLINKUDEB)\FBSCLI.LIB" \\r
61 "$(EPOCLINKUDEB)\ESTOR.LIB" \\r
62 "$(EPOCLINKUDEB)\EIKCOCTL.LIB" \\r
63 "$(EPOCLINKUDEB)\WS32.LIB" \\r
64 "$(EPOCLINKUDEB)\AVKON.LIB" \\r
65 "$(EPOCLINKUDEB)\BAFL.LIB" \\r
66 "$(EPOCLINKUDEB)\BITGDI.LIB" \\r
67 "$(EPOCLINKUDEB)\EIKDLG.LIB"\r
68\r
69LINK_OBJS= \\r
70 "$(EPOCBLDUDEB)\PICODRIVE.UID.obj" \\r
71 "$(EPOCBLDUDEB)\PICODRIVEEXE.obj" \\r
72 "$(EPOCBLDUDEB)\UNZIP.obj"\r
73\r
74STAGE1_LINK_FLAGS="$(EPOCSTATLINKUDEB)\EDLL.LIB" \\r
75 $(LIBS) /nologo /entry:"_E32Dll" /subsystem:windows /dll /debug \\r
76 /incremental:no /machine:IX86 /nodefaultlib /include:"?_E32Dll@@YGHPAXI0@Z" /out:"$(EPOCBLDUDEB)\PICODRIVE.DLL" /WARN:3\r
77\r
78PRELINKUDEB : $(LINK_OBJS) "$(EPOCSTATLINKUDEB)\EDLL.LIB" $(LIBS)\r
79 link.exe @<<\r
80 $(STAGE1_LINK_FLAGS) $(LINK_OBJS)\r
81<<\r
82 del "$(EPOCBLDUDEB)\PICODRIVE.DLL"\r
83 del "$(EPOCBLDUDEB)\PICODRIVE.exp"\r
84 dumpbin /exports /out:"$(EPOCBLDUDEB)\PICODRIVE.inf" "$(EPOCBLDUDEB)\PICODRIVE.lib"\r
85 del "$(EPOCBLDUDEB)\PICODRIVE.lib"\r
86 perl -S makedef.pl -Inffile "$(EPOCBLDUDEB)\PICODRIVE.inf" "$(EPOCBLD)PICODRIVE.def" \r
87 del "$(EPOCBLDUDEB)\PICODRIVE.inf"\r
88 lib.exe /nologo /machine:i386 /nodefaultlib /name:"PICODRIVE.DLL" /def:"$(EPOCBLD)PICODRIVE.def" /out:"$(EPOCBLDUDEB)\PICODRIVE.lib"\r
89 del "$(EPOCBLDUDEB)\PICODRIVE.lib"\r
90 @echo First-stage link successful\r
91\r
92\r
93STOPLINKUDEB : DELEXPOBJUDEB\r
94 @echo Stopped the build by removing the export object,\r
95 @echo if present, because the pre-link stage failed\r
96\r
97\r
98POSTBUILDUDEB : DELEXPOBJUDEB LIBRARY\r
99\r
100\r
101DELEXPOBJUDEB :\r
102 if exist "$(EPOCBLDUDEB)\PICODRIVE.exp" del "$(EPOCBLDUDEB)\PICODRIVE.exp"\r
103\r
104\r
105\r
106# BUILD - UREL\r
107\r
108LIBS= \\r
109 "$(EPOCSTATLINKUREL)\PICO.LIB" \\r
110 "$(EPOCSTATLINKUREL)\A68K.OBJ" \\r
111 "$(EPOCSTATLINKUREL)\MZ80_ASM.OBJ" \\r
112 "$(EPOCLINKUREL)\CONE.LIB" \\r
113 "$(EPOCLINKUREL)\EIKCORE.LIB" \\r
114 "$(EPOCLINKUREL)\MEDIACLIENTAUDIOSTREAM.LIB" \\r
115 "$(EPOCLINKUREL)\EUSER.LIB" \\r
116 "$(EPOCLINKUREL)\ZLIB.LIB" \\r
117 "$(EPOCLINKUREL)\EFSRV.LIB" \\r
118 "$(EPOCLINKUREL)\ESTLIB.LIB" \\r
119 "$(EPOCLINKUREL)\FBSCLI.LIB" \\r
120 "$(EPOCLINKUREL)\ESTOR.LIB" \\r
121 "$(EPOCLINKUREL)\EIKCOCTL.LIB" \\r
122 "$(EPOCLINKUREL)\WS32.LIB" \\r
123 "$(EPOCLINKUREL)\AVKON.LIB" \\r
124 "$(EPOCLINKUREL)\BAFL.LIB" \\r
125 "$(EPOCLINKUREL)\BITGDI.LIB" \\r
126 "$(EPOCLINKUREL)\EIKDLG.LIB"\r
127\r
128LINK_OBJS= \\r
129 "$(EPOCBLDUREL)\PICODRIVE.UID.obj" \\r
130 "$(EPOCBLDUREL)\PICODRIVEEXE.obj" \\r
131 "$(EPOCBLDUREL)\UNZIP.obj"\r
132\r
133STAGE1_LINK_FLAGS="$(EPOCSTATLINKUREL)\EDLL.LIB" \\r
134 $(LIBS) /nologo /entry:"_E32Dll" /subsystem:windows /dll \\r
135 /incremental:no /machine:IX86 /nodefaultlib /include:"?_E32Dll@@YGHPAXI0@Z" /out:"$(EPOCBLDUREL)\PICODRIVE.DLL" /WARN:3\r
136\r
137PRELINKUREL : $(LINK_OBJS) "$(EPOCSTATLINKUREL)\EDLL.LIB" $(LIBS)\r
138 link.exe @<<\r
139 $(STAGE1_LINK_FLAGS) $(LINK_OBJS)\r
140<<\r
141 del "$(EPOCBLDUREL)\PICODRIVE.DLL"\r
142 del "$(EPOCBLDUREL)\PICODRIVE.exp"\r
143 dumpbin /exports /out:"$(EPOCBLDUREL)\PICODRIVE.inf" "$(EPOCBLDUREL)\PICODRIVE.lib"\r
144 del "$(EPOCBLDUREL)\PICODRIVE.lib"\r
145 perl -S makedef.pl -Inffile "$(EPOCBLDUREL)\PICODRIVE.inf" "$(EPOCBLD)PICODRIVE.def" \r
146 del "$(EPOCBLDUREL)\PICODRIVE.inf"\r
147 lib.exe /nologo /machine:i386 /nodefaultlib /name:"PICODRIVE.DLL" /def:"$(EPOCBLD)PICODRIVE.def" /out:"$(EPOCBLDUREL)\PICODRIVE.lib"\r
148 del "$(EPOCBLDUREL)\PICODRIVE.lib"\r
149 @echo First-stage link successful\r
150\r
151\r
152STOPLINKUREL : DELEXPOBJUREL\r
153 @echo Stopped the build by removing the export object,\r
154 @echo if present, because the pre-link stage failed\r
155\r
156\r
157POSTBUILDUREL : DELEXPOBJUREL LIBRARY\r
158\r
159\r
160DELEXPOBJUREL :\r
161 if exist "$(EPOCBLDUREL)\PICODRIVE.exp" del "$(EPOCBLDUREL)\PICODRIVE.exp"\r
162\r
163\r
164\r
165\r
166RECREATEWORKSPACE :\r
167 cd \PICODRIVE\S60\r
168 perl -S makmake.pl -D \PICODRIVE\S60\PICODRIVES60.MMP VC6\r
169\r