update for HEAD-2003050101
[reactos.git] / lib / ntdll / makefile
1 # $Id$
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__
12
13 TARGET_ASFLAGS = -I $(PATH_TO_TOP)/include
14
15 TARGET_LFLAGS = -Wl,--file-alignment,0x1000 \
16   -Wl,--section-alignment,0x1000 \
17   -nostartfiles
18
19 TARGET_SDKLIBS = rosrtl.a
20
21 TARGET_GCCLIBS = gcc
22
23 TARGET_BASE = 0x77f60000
24
25 TARGET_PATH = def
26
27 TARGET_ENTRY = _LdrInitializeThunk@16
28
29 CSR_OBJECTS = csr/lpc.o csr/capture.o csr/probe.o csr/thread.o
30
31 DBG_OBJECTS = dbg/brkpoint.o dbg/debug.o dbg/print.o #dbg/winedbg.o
32
33 RTL_I386_OBJECTS = \
34         rtl/i386/exception.o \
35         rtl/i386/except.o \
36         rtl/i386/ftol.o
37
38 RTL_OBJECTS = rtl/critical.o rtl/error.o rtl/heap.o rtl/largeint.o \
39               rtl/math.o rtl/mem.o rtl/nls.o rtl/process.o rtl/sd.o \
40               rtl/thread.o rtl/unicode.o rtl/env.o rtl/path.o rtl/ppb.o \
41               rtl/bitmap.o rtl/time.o rtl/acl.o rtl/sid.o rtl/image.o \
42               rtl/access.o rtl/apc.o rtl/callback.o rtl/luid.o rtl/misc.o \
43               rtl/registry.o rtl/exception.o rtl/intrlck.o rtl/resource.o \
44               rtl/handle.o rtl/atom.o rtl/message.o rtl/timezone.o \
45               rtl/propvar.o rtl/security.o rtl/dos8dot3.o rtl/compress.o \
46               rtl/encode.o
47
48 STDIO_OBJECTS = stdio/sprintf.o stdio/swprintf.o
49
50 STDLIB_OBJECTS = stdlib/abs.o stdlib/atoi.o stdlib/atoi64.o stdlib/atol.o \
51                  stdlib/itoa.o stdlib/itow.o stdlib/labs.o stdlib/splitp.o \
52                  stdlib/strtol.o stdlib/strtoul.o stdlib/wcstol.o \
53                  stdlib/wcstoul.o stdlib/wtoi.o stdlib/wtoi64.o stdlib/wtol.o \
54                  stdlib/mbstowcs.o stdlib/wcstombs.o stdlib/qsort.o
55
56 STRING_OBJECTS = string/ctype.o string/memccpy.o string/memchr.o \
57                  string/memcmp.o string/memcpy.o string/memicmp.o\
58                  string/memmove.o string/memset.o string/strcat.o \
59                  string/strchr.o string/strcmp.o string/strcspn.o \
60                  string/strcpy.o string/stricmp.o string/strlen.o \
61                  string/strlwr.o string/strncat.o string/strncmp.o \
62                  string/strncpy.o string/strnicmp.o string/strnlen.o \
63                  string/strpbrk.o string/strrchr.o string/strspn.o \
64                  string/strstr.o string/strupr.o string/wstring.o
65
66 ARCH_OBJECTS = \
67         $(RTL_I386_OBJECTS)
68
69 TARGET_OBJECTS = \
70   napi.o \
71   ldr/entry.o \
72   ldr/startup.o \
73   $(ARCH_OBJECTS) \
74   $(DBG_OBJECTS) \
75   $(RTL_OBJECTS) \
76   $(STDIO_OBJECTS) \
77   $(STDLIB_OBJECTS) \
78   $(STRING_OBJECTS) \
79   stubs/stubs.o \
80   ldr/res.o \
81   ldr/utils.o \
82   $(CSR_OBJECTS)
83
84 DEP_OBJECTS = $(TARGET_OBJECTS)
85 DEP_EXCLUDE_FILTER = napi.%
86
87 include $(PATH_TO_TOP)/rules.mak
88
89 include $(TOOLS_PATH)/helper.mk
90
91 include $(TOOLS_PATH)/depend.mk
92
93 %/TAGS:
94         etags -o $(@D)/TAGS $(@D)/\*.c
95
96 etags: csr/TAGS dbg/TAGS ldr/TAGS main/TAGS rtl/TAGS stdio/TAGS stdlib/TAGS string/TAGS stubs/TAGS
97         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