Added targets for getting new import libraries built.
[reactos.git] / reactos / dk / w32 / Makefile
1 # $Id: Makefile,v 1.2 2002/09/24 14:44:15 robd Exp $
2 #
3 # PROJECT : ReactOS Operating System
4 # FILE : reactos/dk/w32/Makefile
5 # DESCRIPTION: Build the development kit for user mode application
6 # DESCRIPTION: to be run in the subsystems 2 (WINDOWS_GUI)
7 # DESCRIPTION: and 3 (WINDOWS_CUI).
8 # LICENSE : GNU GPL V2.0
9 #
10 PATH_TO_TOP=../..
11
12 SHELL32_ALIAS = roshel32
13 COMCTL32_ALIAS = rosctl32
14
15
16 include $(PATH_TO_TOP)/rules.mak
17
18
19 TARGET_FOLDER_LIB=lib
20 TARGET_FOLDER_INC=include
21
22 DTFLAGS = -k -l $@
23
24 MODULES_CORE=\
25 $(TARGET_FOLDER_LIB)/kernel32.a\
26 $(TARGET_FOLDER_LIB)/gdi32.a\
27 $(TARGET_FOLDER_LIB)/user32.a
28
29 MODULES_ADVANCED=\
30 $(TARGET_FOLDER_LIB)/advapi32.a\
31 $(TARGET_FOLDER_LIB)/secur32.a
32
33 MODULES_SHELL=\
34 $(TARGET_FOLDER_LIB)/comctl32.a\
35 $(TARGET_FOLDER_LIB)/shell32.a\
36 $(TARGET_FOLDER_LIB)/$(COMCTL32_ALIAS).a\
37 $(TARGET_FOLDER_LIB)/$(SHELL32_ALIAS).a
38
39 MODULES_NET=\
40 $(TARGET_FOLDER_LIB)/iphlpapi.a\
41 $(TARGET_FOLDER_LIB)/msafd.a\
42 $(TARGET_FOLDER_LIB)/snmpapi.a\
43 $(TARGET_FOLDER_LIB)/ws2_32.a\
44 $(TARGET_FOLDER_LIB)/wshirda.a\
45 $(TARGET_FOLDER_LIB)/wsock32.a
46
47 MODULES_COM=\
48 $(TARGET_FOLDER_LIB)/ole32.a\
49 $(TARGET_FOLDER_LIB)/oleaut32.a
50 # $(TARGET_FOLDER_LIB)/rpcrt4.a
51
52 MODULES_CRT=\
53 $(TARGET_FOLDER_LIB)/crtdll.a\
54 $(TARGET_FOLDER_LIB)/msvcrt.a
55
56 MODULES_MISC=\
57 $(TARGET_FOLDER_LIB)/version.a
58
59 MODULES =\
60 $(MODULES_CORE)\
61 $(MODULES_ADVANCED)\
62 $(MODULES_SHELL)\
63 $(MODULES_NET)\
64 $(MODULES_COM)\
65 $(MODULES_CRT)\
66 $(MODULES_MISC)
67
68 # --- Rules ---
69
70 all: $(MODULES)
71
72 # --- CORE ---
73
74
75
76 $(TARGET_FOLDER_LIB)/kernel32.a: $(PATH_TO_TOP)/lib/kernel32/kernel32.def
77 $(DLLTOOL) \
78 $(DTFLAGS)\
79 -D kernel32.dll\
80 -d $(PATH_TO_TOP)/lib/kernel32/kernel32.def
81
82 $(TARGET_FOLDER_LIB)/gdi32.a: $(PATH_TO_TOP)/lib/gdi32/gdi32.def
83 $(DLLTOOL) \
84 $(DTFLAGS)\
85 -D gdi32.dll\
86 -d $(PATH_TO_TOP)/lib/gdi32/gdi32.def
87
88 $(TARGET_FOLDER_LIB)/user32.a: $(PATH_TO_TOP)/lib/user32/user32.def
89 $(DLLTOOL) \
90 $(DTFLAGS)\
91 -D user32.dll\
92 -d $(PATH_TO_TOP)/lib/user32/user32.def
93
94 # --- ADVANCED ---
95
96 $(TARGET_FOLDER_LIB)/advapi32.a: $(PATH_TO_TOP)/lib/advapi32/advapi32.def
97 $(DLLTOOL) \
98 $(DTFLAGS)\
99 -D advapi32.dll\
100 -d $(PATH_TO_TOP)/lib/advapi32/advapi32.def
101
102 $(TARGET_FOLDER_LIB)/secur32.a: $(PATH_TO_TOP)/lib/secur32/secur32.def
103 $(DLLTOOL) \
104 $(DTFLAGS)\
105 -D secur32.dll\
106 -d $(PATH_TO_TOP)/lib/secur32/secur32.def
107
108 # --- SHELL ---
109
110 $(TARGET_FOLDER_LIB)/shell32.a: $(PATH_TO_TOP)/lib/shell32/shell32.def
111 $(DLLTOOL) \
112 $(DTFLAGS)\
113 -D shell32.dll\
114 -d $(PATH_TO_TOP)/lib/shell32/shell32.def
115
116 $(TARGET_FOLDER_LIB)/comctl32.a: $(PATH_TO_TOP)/../wine/dlls/comctl32/comctl32.def
117 $(DLLTOOL) \
118 $(DTFLAGS)\
119 -D comctl32.dll\
120 -d $(PATH_TO_TOP)/../wine/dlls/comctl32/comctl32.def
121
122
123 $(TARGET_FOLDER_LIB)/$(SHELL32_ALIAS).a: $(PATH_TO_TOP)/lib/shell32/shell32.def
124 $(DLLTOOL) \
125 $(DTFLAGS)\
126 -D $(SHELL32_ALIAS).dll\
127 -d $(PATH_TO_TOP)/lib/shell32/shell32.def
128
129 $(TARGET_FOLDER_LIB)/$(COMCTL32_ALIAS).a: $(PATH_TO_TOP)/../wine/dlls/comctl32/comctl32.def
130 $(DLLTOOL) \
131 $(DTFLAGS)\
132 -D $(COMCTL32_ALIAS).dll\
133 -d $(PATH_TO_TOP)/../wine/dlls/comctl32/comctl32.def
134
135 #$(TARGET_FOLDER_LIB)/$(COMCTL32_ALIAS).a: $(PATH_TO_TOP)/lib/comctl32/comctl32.def
136 # -d $(PATH_TO_TOP)/lib/comctl32/comctl32.def
137
138 # --- NET ---
139
140 $(TARGET_FOLDER_LIB)/iphlpapi.a: $(PATH_TO_TOP)/lib/iphlpapi/iphlpapi.def
141 $(DLLTOOL) \
142 $(DTFLAGS)\
143 -D iphlpapi.dll\
144 -d $(PATH_TO_TOP)/lib/iphlpapi/iphlpapi.def
145
146 $(TARGET_FOLDER_LIB)/msafd.a: $(PATH_TO_TOP)/lib/msafd/msafd.def
147 $(DLLTOOL) \
148 $(DTFLAGS)\
149 -D msafd.dll\
150 -d $(PATH_TO_TOP)/lib/msafd/msafd.def
151
152 $(TARGET_FOLDER_LIB)/snmpapi.a: $(PATH_TO_TOP)/lib/snmpapi/snmpapi.def
153 $(DLLTOOL) \
154 $(DTFLAGS)\
155 -D snmpapi.dll\
156 -d $(PATH_TO_TOP)/lib/snmpapi/snmpapi.def
157
158 $(TARGET_FOLDER_LIB)/ws2_32.a: $(PATH_TO_TOP)/lib/ws2_32/ws2_32.def
159 $(DLLTOOL) \
160 $(DTFLAGS)\
161 -D ws2_32.dll\
162 -d $(PATH_TO_TOP)/lib/ws2_32/ws2_32.def
163
164 $(TARGET_FOLDER_LIB)/wshirda.a: $(PATH_TO_TOP)/lib/wshirda/wshirda.def
165 $(DLLTOOL) \
166 $(DTFLAGS)\
167 -D wshirda.dll\
168 -d $(PATH_TO_TOP)/lib/wshirda/wshirda.def
169
170 $(TARGET_FOLDER_LIB)/wsock32.a: $(PATH_TO_TOP)/lib/wsock32/wsock32.def
171 $(DLLTOOL) \
172 $(DTFLAGS)\
173 -D wsock32.dll\
174 -d $(PATH_TO_TOP)/lib/wsock32/wsock32.def
175
176 # --- COM ---
177
178 $(TARGET_FOLDER_LIB)/ole32.a: $(PATH_TO_TOP)/lib/ole32/ole32.def
179 $(DLLTOOL) \
180 $(DTFLAGS)\
181 -D ole32.dll\
182 -d $(PATH_TO_TOP)/lib/ole32/ole32.def
183
184 $(TARGET_FOLDER_LIB)/oleaut32.a: $(PATH_TO_TOP)/lib/oleaut32/oleaut32.def
185 $(DLLTOOL) \
186 $(DTFLAGS)\
187 -D oleaut32.dll\
188 -d $(PATH_TO_TOP)/lib/oleaut32/oleaut32.def
189
190 $(TARGET_FOLDER_LIB)/rpcrt4.a: $(PATH_TO_TOP)/lib/rpcrt4/rpcrt4.def
191 $(DLLTOOL) \
192 $(DTFLAGS)\
193 -D rpcrt4.dll\
194 -d $(PATH_TO_TOP)/lib/rpcrt4/rpcrt4.def
195
196 # --- CRT ---
197
198 $(TARGET_FOLDER_LIB)/crtdll.a: $(PATH_TO_TOP)/lib/crtdll/crtdll.def
199 $(DLLTOOL) \
200 $(DTFLAGS)\
201 -D crtdll.dll\
202 -d $(PATH_TO_TOP)/lib/crtdll/crtdll.def
203
204 $(TARGET_FOLDER_LIB)/msvcrt.a: $(PATH_TO_TOP)/lib/msvcrt/msvcrt.def
205 $(DLLTOOL) \
206 $(DTFLAGS)\
207 -D msvcrt.dll\
208 -d $(PATH_TO_TOP)/lib/msvcrt/msvcrt.def
209
210 # --- MISC ---
211
212 $(TARGET_FOLDER_LIB)/version.a: $(PATH_TO_TOP)/lib/version/version.def
213 $(DLLTOOL) \
214 $(DTFLAGS)\
215 -D version.dll\
216 -d $(PATH_TO_TOP)/lib/version/version.def
217
218 # --- Service rules ---
219
220 clean:
221 - $(RM) $(TARGET_FOLDER_LIB)/$(MODULES)
222
223 # - $(RM) $(TARGET_FOLDER_LIB)/*.a
224 # - $(RM) $(TARGET_FOLDER_INC)/*.h
225
226 install:
227
228 dist:
229
230 #EOF
231