1 SubDir ROS_TOP Lib Ntdll ;
3 HDRS += $(ROS_TOP)/Include ;
4 #Echo HDRS is $(HDRS) ;
8 # for some reason DEFINES isn't coming in :(
9 #DEFINES += __NTDLL__ ;
10 CCFLAGS += -D__NTDLL__ ; # less portable :(
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 ;
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
25 # This needs to be abstracted to Jamrules, too
26 LINKFLAGS += -Wl,--entry,_LdrInitializeThunk@16 ;
28 # we need to override action As here, because we're
29 # compiling except.s with gcc instead of as...
32 $(CC) -c -x assembler-with-cpp $(ASFLAGS) -c $(>) -o $(<)
36 CSR_SRCS = lpc capture probe thread ;
38 DBG_SRCS = brkpoint debug print ; #winedbg
40 RTL_I386_SRCS = exception.c except.s ;
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
52 STDIO_SRCS = sprintf swprintf ;
54 STDLIB_SRCS = abs atoi atoi64 atol
57 wcstoul wtoi wtoi64 wtol
58 mbstowcs wcstombs qsort
61 STRING_SRCS = ctype memccpy memchr
66 strlwr strncat strncmp
67 strncpy strnicmp strnlen
68 strpbrk strrchr strspn
75 rtl/i386/$(RTL_I386_SRCS)
79 stdlib/$(STDLIB_SRCS).c
80 string/$(STRING_SRCS).c
88 SharedLibrary ntdll : $(NTDLL_SRCS) ;