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