tcharize a couple of routines
[reactos.git] / reactos / lib / crt / makefile
1 # $Id: Makefile 12852 2005-01-06 13:58:04Z mf $
2
3 PATH_TO_TOP = ../..
4
5 TARGET_DEFONLY = yes
6
7 TARGET_TYPE = library
8
9 TARGET_NAME = crt
10
11 TARGET_PCH = precomp.h
12
13 TARGET_CFLAGS = -D_MSVCRT_LIB_ -D__MSVCRT__ -Wall -Werror -I./include
14
15 #-nostdinc
16
17 # require os code to explicitly request A/W version of structs/functions
18 TARGET_CFLAGS += \
19 -D_DISABLE_TIDENTS \
20 -D__MINGW_IMPORT=extern \
21 -D__USE_W32API \
22 -D__REACTOS__ \
23 -D_WIN32_IE=0x600 \
24 -D_WIN32_WINNT=0x501 \
25 -DUSE_MSVCRT_PREFIX \
26 -D_MT
27
28 CONIO_OBJECTS = \
29 conio/cgets.o \
30 conio/cprintf.o \
31 conio/cputs.o \
32 conio/getch.o \
33 conio/getche.o \
34 conio/kbhit.o \
35 conio/putch.o \
36 conio/ungetch.o
37
38 CTYPE_OBJECTS = \
39 ctype/ctype.o \
40 ctype/isalnum.o \
41 ctype/isalpha.o \
42 ctype/isascii.o \
43 ctype/iscntrl.o \
44 ctype/isdigit.o \
45 ctype/isgraph.o \
46 ctype/islower.o \
47 ctype/isprint.o \
48 ctype/ispunct.o \
49 ctype/isspace.o \
50 ctype/isupper.o \
51 ctype/isxdigit.o \
52 ctype/toascii.o \
53 ctype/tolower.o \
54 ctype/toupper.o \
55 ctype/iscsym.o \
56 ctype/isctype.o
57
58 DIRECT_OBJECTS = \
59 direct/chdir.o \
60 direct/chdrive.o \
61 direct/getcwd.o \
62 direct/getdcwd.o \
63 direct/getdfree.o \
64 direct/getdrive.o \
65 direct/mkdir.o \
66 direct/rmdir.o \
67 direct/wchdir.o \
68 direct/wgetcwd.o \
69 direct/wgetdcwd.o \
70 direct/wmkdir.o \
71 direct/wrmdir.o
72
73 EXCEPT_OBJECTS = \
74 except/seh.o \
75 except/abnorter.o \
76 except/exhand2.o \
77 except/matherr.o \
78 except/unwind.o \
79 except/xcptfil.o
80
81 FLOAT_OBJECTS = \
82 float/chgsign.o \
83 float/clearfp.o \
84 float/cntrlfp.o \
85 float/copysign.o \
86 float/fpclass.o \
87 float/fpecode.o \
88 float/fpreset.o \
89 float/isnan.o \
90 float/logb.o \
91 float/nafter.o \
92 float/scalb.o \
93 float/statfp.o
94
95 IO_OBJECTS = \
96 io/access.o \
97 io/chmod.o \
98 io/chsize.o \
99 io/close.o \
100 io/commit.o \
101 io/create.o \
102 io/dup.o \
103 io/dup2.o \
104 io/eof.o \
105 io/filelen.o \
106 io/fileleni.o \
107 io/find.o \
108 io/fmode.o \
109 io/isatty.o \
110 io/locking.o \
111 io/lseek.o \
112 io/lseeki64.o \
113 io/mktemp.o \
114 io/open.o \
115 io/pipe.o \
116 io/read.o \
117 io/setmode.o \
118 io/sopen.o \
119 io/stubs.o \
120 io/tell.o \
121 io/telli64.o \
122 io/umask.o \
123 io/unlink.o \
124 io/utime.o \
125 io/waccess.o \
126 io/wchmod.o \
127 io/wcreate.o \
128 io/wfind.o \
129 io/wmktemp.o \
130 io/wopen.o \
131 io/write.o \
132 io/wunlink.o \
133 io/wutime.o
134
135 LOCALE_OBJECTS = \
136 locale/locale.o
137
138 MATH_OBJECTS = \
139 math/acos.o \
140 math/adjust.o \
141 math/asin.o \
142 math/atan.o \
143 math/atan2.o \
144 math/cabs.o \
145 math/ceil.o \
146 math/cos.o \
147 math/cosh.o \
148 math/exp.o \
149 math/fabs.o \
150 math/floor.o \
151 math/fmod.o \
152 math/frexp.o \
153 math/huge_val.o \
154 math/hypot.o \
155 math/j0_y0.o \
156 math/j1_y1.o \
157 math/jn_yn.o \
158 math/ldexp.o \
159 math/log.o \
160 math/log10.o \
161 math/modf.o \
162 math/pow.o \
163 math/sin.o \
164 math/sinh.o \
165 math/sqrt.o \
166 math/stubs.o \
167 math/tan.o \
168 math/tanh.o
169
170 MBSTRING_OBJECTS = \
171 mbstring/hanzen.o \
172 mbstring/ischira.o \
173 mbstring/iskana.o \
174 mbstring/iskpun.o \
175 mbstring/islead.o \
176 mbstring/islwr.o \
177 mbstring/ismbal.o \
178 mbstring/ismbaln.o \
179 mbstring/ismbc.o \
180 mbstring/ismbgra.o \
181 mbstring/ismbkaln.o \
182 mbstring/ismblead.o \
183 mbstring/ismbpri.o \
184 mbstring/ismbpun.o \
185 mbstring/ismbtrl.o \
186 mbstring/isuppr.o \
187 mbstring/jistojms.o \
188 mbstring/jmstojis.o \
189 mbstring/mbbtype.o \
190 mbstring/mbccpy.o \
191 mbstring/mbclen.o \
192 mbstring/mbscat.o \
193 mbstring/mbschr.o \
194 mbstring/mbscmp.o \
195 mbstring/mbscoll.o \
196 mbstring/mbscpy.o \
197 mbstring/mbscspn.o \
198 mbstring/mbsdec.o \
199 mbstring/mbsdup.o \
200 mbstring/mbsicmp.o \
201 mbstring/mbsicoll.o \
202 mbstring/mbsinc.o \
203 mbstring/mbslen.o \
204 mbstring/mbslwr.o \
205 mbstring/mbsncat.o \
206 mbstring/mbsnccnt.o \
207 mbstring/mbsncmp.o \
208 mbstring/mbsncoll.o \
209 mbstring/mbsncpy.o \
210 mbstring/mbsnextc.o \
211 mbstring/mbsnicmp.o \
212 mbstring/mbsnicoll.o \
213 mbstring/mbsninc.o \
214 mbstring/mbsnset.o \
215 mbstring/mbspbrk.o \
216 mbstring/mbsrchr.o \
217 mbstring/mbsrev.o \
218 mbstring/mbsset.o \
219 mbstring/mbsspn.o \
220 mbstring/mbsspnp.o \
221 mbstring/mbsstr.o \
222 mbstring/mbstok.o \
223 mbstring/mbstrlen.o \
224 mbstring/mbsupr.o
225
226 MISC_OBJECTS = \
227 misc/amsg.o \
228 misc/assert.o \
229 misc/crtmain.o \
230 misc/environ.o \
231 misc/getargs.o \
232 misc/initterm.o \
233 misc/lock.o \
234 misc/purecall.o \
235 misc/stubs.o \
236 misc/tls.o
237
238 PROCESS_OBJECTS = \
239 process/_cwait.o \
240 process/_system.o \
241 process/dll.o \
242 process/process.o \
243 process/wprocess.o \
244 process/procid.o \
245 process/thread.o \
246 process/threadid.o \
247 process/threadx.o
248
249 SEARCH_OBJECTS = \
250 search/lfind.o \
251 search/lsearch.o
252
253 SETJMP_OBJECTS = \
254 setjmp/i386/setjmp.o
255
256 SIGNAL_OBJECTS = \
257 signal/signal.o \
258 signal/xcptinfo.o
259
260 STDIO_OBJECTS = \
261 stdio/allocfil.o \
262 stdio/clearerr.o \
263 stdio/fclose.o \
264 stdio/fdopen.o \
265 stdio/feof.o \
266 stdio/ferror.o \
267 stdio/fflush.o \
268 stdio/fgetc.o \
269 stdio/fgetchar.o \
270 stdio/fgetpos.o \
271 stdio/fgets.o \
272 stdio/fgetws.o \
273 stdio/filbuf.o \
274 stdio/fileno.o \
275 stdio/flsbuf.o \
276 stdio/fopen.o \
277 stdio/wfopen.o \
278 stdio/fprintf.o \
279 stdio/fwprintf.o \
280 stdio/fputc.o \
281 stdio/fputchar.o \
282 stdio/fputs.o \
283 stdio/fputws.o \
284 stdio/fread.o \
285 stdio/freopen.o \
286 stdio/wfreopen.o \
287 stdio/fseek.o \
288 stdio/fsetpos.o \
289 stdio/fsopen.o \
290 stdio/wfsopen.o \
291 stdio/ftell.o \
292 stdio/fwalk.o \
293 stdio/fwrite.o \
294 stdio/getc.o \
295 stdio/getchar.o \
296 stdio/gets.o \
297 stdio/getw.o \
298 stdio/perror.o \
299 stdio/popen.o \
300 stdio/wpopen.o \
301 stdio/printf.o \
302 stdio/wprintf.o \
303 stdio/putc.o \
304 stdio/putchar.o \
305 stdio/putwchar.o \
306 stdio/puts.o \
307 stdio/putw.o \
308 stdio/remove.o \
309 stdio/wremove.o \
310 stdio/rename.o \
311 stdio/rewind.o \
312 stdio/rmtmp.o \
313 stdio/setbuf.o \
314 stdio/setvbuf.o \
315 stdio/sprintf.o \
316 stdio/swprintf.o \
317 stdio/stdhnd.o \
318 stdio/tempnam.o \
319 stdio/tmpfile.o \
320 stdio/tmpnam.o \
321 stdio/ungetc.o \
322 stdio/ungetwc.o \
323 stdio/vfprintf.o \
324 stdio/vfwprint.o \
325 stdio/vprintf.o \
326 stdio/vwprintf.o \
327 stdio/vsprintf.o \
328 stdio/vswprintf.o \
329 stdio/wfdopen.o \
330 stdio/wrename.o \
331 stdio/wtempnam.o \
332 stdio/wtmpnam.o
333
334 STDLIB_OBJECTS = \
335 stdlib/_exit.o \
336 stdlib/abort.o \
337 stdlib/abs.o \
338 stdlib/atexit.o \
339 stdlib/atof.o \
340 stdlib/atoi.o \
341 stdlib/atoi64.o \
342 stdlib/atol.o \
343 stdlib/wtol.o \
344 stdlib/bsearch.o \
345 stdlib/div.o \
346 stdlib/ecvt.o \
347 stdlib/ecvtbuf.o \
348 stdlib/errno.o \
349 stdlib/fcvt.o \
350 stdlib/fcvtbuf.o \
351 stdlib/fullpath.o \
352 stdlib/gcvt.o \
353 stdlib/getenv.o \
354 stdlib/itoa.o \
355 stdlib/itow.o \
356 stdlib/labs.o \
357 stdlib/ldiv.o \
358 stdlib/makepath.o \
359 stdlib/malloc.o \
360 stdlib/mbstowcs.o \
361 stdlib/mbtowc.o \
362 stdlib/obsol.o \
363 stdlib/putenv.o \
364 stdlib/qsort.o \
365 stdlib/rand.o \
366 stdlib/rot.o \
367 stdlib/senv.o \
368 stdlib/splitp.o \
369 stdlib/strtod.o \
370 stdlib/strtol.o \
371 stdlib/strtoul.o \
372 stdlib/swab.o \
373 stdlib/wcstod.o \
374 stdlib/wcstol.o \
375 stdlib/wcstombs.o \
376 stdlib/wcstoul.o \
377 stdlib/wctomb.o \
378 stdlib/wfulpath.o \
379 stdlib/witoa.o \
380 stdlib/witow.o \
381 stdlib/wputenv.o \
382 stdlib/wsenv.o \
383 stdlib/wsplitp.o \
384 stdlib/wmakpath.o \
385 stdlib/wtoi.o \
386 stdlib/wtoi64.o
387
388 STRING_OBJECTS = \
389 string/lasttok.o \
390 string/memicmp.o \
391 string/strcoll.o \
392 string/strdup.o \
393 string/strerror.o \
394 string/stricmp.o \
395 string/strlwr.o \
396 string/strncoll.o \
397 string/strnicmp.o \
398 string/strpbrk.o \
399 string/strrev.o\
400 string/strset.o \
401 string/strstr.o \
402 string/strtok.o \
403 string/strupr.o \
404 string/strxfrm.o
405
406 SYS_STAT_OBJECTS = \
407 sys_stat/fstat.o \
408 sys_stat/fstati64.o \
409 sys_stat/futime.o \
410 sys_stat/stat.o \
411 sys_stat/wstat.o \
412 sys_stat/systime.o
413
414 TIME_OBJECTS = \
415 time/clock.o \
416 time/ctime.o \
417 time/difftime.o \
418 time/ftime.o \
419 time/strdate.o \
420 time/strftime.o \
421 time/strtime.o \
422 time/time.o \
423 time/tz_vars.o \
424 time/wctime.o \
425 time/wstrdate.o \
426 time/wstrtime.o
427
428
429
430 WSTRING_OBJECTS = \
431 wstring/wcscoll.o \
432 wstring/wcscspn.o \
433 wstring/wcsdup.o \
434 wstring/wcsicmp.o \
435 wstring/wcslwr.o \
436 wstring/wcsnicmp.o \
437 wstring/wcspbrk.o \
438 wstring/wcsrev.o \
439 wstring/wcsset.o \
440 wstring/wcsspn.o \
441 wstring/wcsstr.o \
442 wstring/wcstok.o \
443 wstring/wcsupr.o \
444 wstring/wcsxfrm.o \
445 wstring/wlasttok.o
446
447 WINE_OBJECTS = \
448 wine/cpp.o \
449 wine/cppexcept.o \
450 wine/heap.o \
451 wine/thread.o \
452 wine/scanf.o
453
454 TARGET_OBJECTS = \
455 $(CONIO_OBJECTS) \
456 $(CTYPE_OBJECTS) \
457 $(DIRECT_OBJECTS) \
458 $(EXCEPT_OBJECTS) \
459 $(FLOAT_OBJECTS) \
460 $(IO_OBJECTS) \
461 $(LOCALE_OBJECTS) \
462 $(MATH_OBJECTS) \
463 $(MBSTRING_OBJECTS) \
464 $(MISC_OBJECTS) \
465 $(PROCESS_OBJECTS) \
466 $(SEARCH_OBJECTS) \
467 $(SETJMP_OBJECTS) \
468 $(SIGNAL_OBJECTS) \
469 $(STDIO_OBJECTS) \
470 $(STDLIB_OBJECTS) \
471 $(STRING_OBJECTS) \
472 $(SYS_STAT_OBJECTS) \
473 $(TIME_OBJECTS) \
474 $(WSTRING_OBJECTS) \
475 $(WINE_OBJECTS)
476
477 include $(PATH_TO_TOP)/rules.mak
478
479 include $(TOOLS_PATH)/helper.mk
480
481 DEP_OBJECTS := $(TARGET_OBJECTS)
482
483 TARGET_CLEAN = $(DEP_FILES)
484
485 include $(PATH_TO_TOP)/tools/depend.mk
486
487 # EOF