update for HEAD-2003091401
[reactos.git] / lib / ntdll / Jamfile
1 SubDir ROS_TOP Lib Ntdll ;
2
3 HDRS += $(ROS_TOP)/Include ;
4 #Echo HDRS is $(HDRS) ;
5
6 #Echo AS is $(AS) ;
7
8 # for some reason DEFINES isn't coming in :(
9 #DEFINES += __NTDLL__ ;
10 CCFLAGS += -D__NTDLL__ ; # less portable :(
11
12 # This stuff should actually be moved to Jamrules
13 # in order to more easily support other compilers
14 #CCFLAGS += -Wall -Werror -fno-builtin ;
15 CCFLAGS += -Wall -fno-builtin ;
16
17 # NOTE - I'm no Jam expert, yet. This stuff should be
18 # abstracted into the Jamrules file.
19 LINKFLAGS += -Wl,--image-base,0x77f60000 ;
20 LINKFLAGS += -Wl,--file-alignment,0x1000
21         -Wl,--section-alignment,0x1000
22         -nostartfiles
23         ;
24
25 # This needs to be abstracted to Jamrules, too
26 LINKFLAGS += -Wl,--entry,_LdrInitializeThunk@16 ;
27
28 # we need to override action As here, because we're
29 # compiling except.s with gcc instead of as...
30 actions As
31 {
32         $(CC) -c -x assembler-with-cpp $(ASFLAGS) -c $(>) -o $(<)
33 }
34
35
36 CSR_SRCS = lpc capture probe thread ;
37
38 DBG_SRCS = brkpoint debug print ; #winedbg
39
40 RTL_I386_SRCS = exception.c except.s ;
41
42 RTL_SRCS = critical error heap largeint
43         math mem nls process sd
44         thread unicode env path ppb
45         bitmap time acl sid image
46         access apc callback luid misc
47         registry exception intrlck resource
48         handle atom message timezone
49         propvar security dos8dot3 compress
50         ;
51
52 STDIO_SRCS = sprintf swprintf ;
53
54 STDLIB_SRCS = abs atoi atoi64 atol
55         itoa itow labs splitp
56         strtol strtoul wcstol
57         wcstoul wtoi wtoi64 wtol
58         mbstowcs wcstombs qsort
59         ;
60
61 STRING_SRCS = ctype memccpy memchr
62         memcmp memcpy memicmp
63         memmove memset strcat
64         strchr strcmp strcspn
65         strcpy stricmp strlen
66         strlwr strncat strncmp
67         strncpy strnicmp strnlen
68         strpbrk strrchr strspn
69         strstr strupr wstring
70         ;
71
72 NTDLL_SRCS =
73         napi.c
74         ldr/startup.c
75         rtl/i386/$(RTL_I386_SRCS)
76         dbg/$(DBG_SRCS).c
77         rtl/$(RTL_SRCS).c
78         stdio/$(STDIO_SRCS).c
79         stdlib/$(STDLIB_SRCS).c
80         string/$(STRING_SRCS).c
81         stubs/stubs.c
82         ldr/res.c
83         ldr/utils.c
84         csr/$(CSR_SRCS).c
85         ;
86
87
88 SharedLibrary ntdll : $(NTDLL_SRCS) ;