- Moved the definition of all dll base addresses to baseaddress.cfg.
[reactos.git] / reactos / lib / ntdll / makefile
1 # $Id: makefile,v 1.101 2004/05/29 21:55:09 hbirr Exp $
2
3 PATH_TO_TOP = ../..
4
5 TARGET_BOOTSTRAP = yes
6
7 TARGET_TYPE = dynlink
8
9 TARGET_NAME = ntdll
10
11 TARGET_CFLAGS = -g -D__NTDLL__ -Werror -Wall
12
13 # require os code to explicitly request A/W version of structs/functions
14 TARGET_CFLAGS += -D_DISABLE_TIDENTS
15
16 TARGET_ASFLAGS = -I $(PATH_TO_TOP)/include
17
18 TARGET_LFLAGS = -Wl,--file-alignment,0x1000 \
19 -Wl,--section-alignment,0x1000 \
20 -nostartfiles -nostdlib
21
22 TARGET_SDKLIBS = string.a rosrtl.a
23
24 TARGET_GCCLIBS = gcc
25
26 TARGET_BASE = $(TARGET_BASE_LIB_NTDLL)
27
28 TARGET_PATH = def
29
30 TARGET_ENTRY = 0x0
31
32 CSR_OBJECTS = \
33 csr/capture.o \
34 csr/lpc.o \
35 csr/probe.o \
36 csr/thread.o
37
38 DBG_OBJECTS = \
39 dbg/brkpoint.o \
40 dbg/debug.o \
41 dbg/print.o
42 # dbg/winedbg.o
43
44 LDR_OBJECTS = \
45 ldr/entry.o \
46 ldr/res.o \
47 ldr/startup.o \
48 ldr/utils.o
49
50 RTL_I386_OBJECTS = \
51 rtl/i386/alldiv.o \
52 rtl/i386/allmul.o \
53 rtl/i386/allrem.o \
54 rtl/i386/allshl.o \
55 rtl/i386/allshr.o \
56 rtl/i386/aulldiv.o \
57 rtl/i386/aullrem.o \
58 rtl/i386/aullshr.o \
59 rtl/i386/chkstk.o \
60 rtl/i386/exception.o \
61 rtl/i386/except.o \
62 rtl/i386/float.o \
63 rtl/i386/ftol.o
64
65 RTL_OBJECTS = \
66 rtl/access.o \
67 rtl/acl.o \
68 rtl/apc.o \
69 rtl/atom.o \
70 rtl/bitmap.o \
71 rtl/callback.o \
72 rtl/compress.o \
73 rtl/crc32.o \
74 rtl/critical.o \
75 rtl/dos8dot3.o \
76 rtl/error.o \
77 rtl/encode.o \
78 rtl/env.o \
79 rtl/exception.o \
80 rtl/handle.o \
81 rtl/heap.o \
82 rtl/image.o \
83 rtl/intrlck.o \
84 rtl/largeint.o \
85 rtl/luid.o \
86 rtl/math.o \
87 rtl/mem.o \
88 rtl/message.o \
89 rtl/misc.o \
90 rtl/nls.o \
91 rtl/path.o \
92 rtl/ppb.o \
93 rtl/process.o \
94 rtl/propvar.o \
95 rtl/random.o \
96 rtl/rangelist.o \
97 rtl/registry.o \
98 rtl/resource.o \
99 rtl/sd.o \
100 rtl/security.o \
101 rtl/sid.o \
102 rtl/splaytree.o \
103 rtl/teb.o \
104 rtl/thread.o \
105 rtl/time.o \
106 rtl/timezone.o \
107 rtl/unicode.o \
108 rtl/version.o
109
110 STDIO_OBJECTS = \
111 stdio/sprintf.o \
112 stdio/sscanf.o \
113 stdio/swprintf.o
114
115 STDLIB_OBJECTS = \
116 stdlib/abs.o \
117 stdlib/atoi.o \
118 stdlib/atoi64.o \
119 stdlib/atol.o \
120 stdlib/bsearch.o \
121 stdlib/itoa.o \
122 stdlib/itow.o \
123 stdlib/labs.o \
124 stdlib/lfind.o \
125 stdlib/mbstowcs.o \
126 stdlib/splitp.o \
127 stdlib/strtol.o \
128 stdlib/strtoul.o \
129 stdlib/wcstol.o \
130 stdlib/wcstombs.o \
131 stdlib/wcstoul.o \
132 stdlib/wtoi.o \
133 stdlib/wtoi64.o \
134 stdlib/wtol.o
135
136 STRING_OBJECTS = \
137 string/ctype.o \
138 string/memicmp.o \
139 string/stricmp.o \
140 string/strlwr.o \
141 string/strnicmp.o \
142 string/strpbrk.o \
143 string/strstr.o \
144 string/strupr.o \
145 string/wstring.o
146
147 ARCH_OBJECTS = \
148 $(RTL_I386_OBJECTS)
149
150 TARGET_OBJECTS = \
151 napi.o \
152 $(ARCH_OBJECTS) \
153 $(CSR_OBJECTS) \
154 $(DBG_OBJECTS) \
155 $(LDR_OBJECTS) \
156 $(RTL_OBJECTS) \
157 $(STDIO_OBJECTS) \
158 $(STDLIB_OBJECTS) \
159 $(STRING_OBJECTS)
160
161 DEP_OBJECTS = $(TARGET_OBJECTS)
162 DEP_EXCLUDE_FILTER = napi.%
163
164 include $(PATH_TO_TOP)/rules.mak
165
166 include $(TOOLS_PATH)/helper.mk
167
168 include $(TOOLS_PATH)/depend.mk
169
170 %/TAGS:
171 etags -o $(@D)/TAGS $(@D)/\*.c
172
173 etags: csr/TAGS dbg/TAGS ldr/TAGS main/TAGS rtl/TAGS stdio/TAGS stdlib/TAGS string/TAGS stubs/TAGS
174 etags -i csr/TAGS -i dbg/TAGS -i ldr/TAGS -i main/TAGS -i rtl/TAGS -i stdio/TAGS -i stdlib/TAGS -i string/TAGS -i stubs/TAGS
175
176
177 docu:
178 doxygen Doxyfile
179
180 .PHONY: docu
181
182
183 # EOF