Major update of the build system:
[reactos.git] / reactos / lib / ntdll / makefile
1 # $Id: makefile,v 1.65 2001/08/21 20:13:06 chorns Exp $
2
3 PATH_TO_TOP = ../..
4
5 TARGET_TYPE = dynlink
6
7 TARGET_NAME = ntdll
8
9 TARGET_CFLAGS = -D__NTDLL__
10
11 TARGET_LFLAGS = -Wl,--file-alignment,0x1000 \
12 -Wl,--section-alignment,0x1000
13
14 TARGET_GCCLIBS = gcc
15
16 TARGET_BASE = 0x77f60000
17
18 TARGET_PATH = def
19
20 TARGET_ENTRY = _LdrInitializeThunk@16
21
22 CSR_OBJECTS = csr/lpc.o csr/capture.o csr/probe.o csr/thread.o
23
24 DBG_OBJECTS = dbg/brkpoint.o dbg/debug.o dbg/print.o
25
26 RTL_OBJECTS = rtl/critical.o rtl/error.o rtl/heap.o rtl/largeint.o \
27 rtl/math.o rtl/mem.o rtl/nls.o rtl/process.o rtl/sd.o \
28 rtl/thread.o rtl/unicode.o rtl/env.o rtl/path.o rtl/ppb.o \
29 rtl/bitmap.o rtl/time.o rtl/acl.o rtl/sid.o rtl/image.o \
30 rtl/access.o rtl/apc.o rtl/callback.o rtl/luid.o rtl/misc.o \
31 rtl/registry.o rtl/exception.o rtl/intrlck.o rtl/resource.o \
32 rtl/handle.o rtl/atom.o rtl/message.o rtl/timezone.o \
33 rtl/propvar.o
34
35 STDIO_OBJECTS = stdio/sprintf.o stdio/swprintf.o
36
37 STDLIB_OBJECTS = stdlib/abs.o stdlib/atoi.o stdlib/atoi64.o stdlib/atol.o \
38 stdlib/itoa.o stdlib/itow.o stdlib/labs.o stdlib/splitp.o \
39 stdlib/strtol.o stdlib/strtoul.o stdlib/wcstol.o \
40 stdlib/wcstoul.o stdlib/wtoi.o stdlib/wtoi64.o stdlib/wtol.o \
41 stdlib/mbstowcs.o stdlib/wcstombs.o stdlib/qsort.o
42
43 STRING_OBJECTS = string/ctype.o string/memccpy.o string/memchr.o \
44 string/memcmp.o string/memcpy.o string/memicmp.o\
45 string/memmove.o string/memset.o string/strcat.o \
46 string/strchr.o string/strcmp.o string/strcspn.o \
47 string/strcpy.o string/stricmp.o string/strlen.o \
48 string/strlwr.o string/strncat.o string/strncmp.o \
49 string/strncpy.o string/strnicmp.o string/strnlen.o \
50 string/strpbrk.o string/strrchr.o string/strspn.o \
51 string/strstr.o string/strupr.o string/wstring.o
52
53 TARGET_OBJECTS = \
54 napi.o \
55 ldr/startup.o \
56 $(DBG_OBJECTS) \
57 $(RTL_OBJECTS) \
58 $(STDIO_OBJECTS) \
59 $(STDLIB_OBJECTS) \
60 $(STRING_OBJECTS) \
61 stubs/stubs.o \
62 ldr/utils.o \
63 $(CSR_OBJECTS)
64
65 include $(PATH_TO_TOP)/rules.mak
66
67 include $(TOOLS_PATH)/helper.mk
68
69 %/TAGS:
70 etags -o $(@D)/TAGS $(@D)/\*.c
71
72 etags: csr/TAGS dbg/TAGS ldr/TAGS main/TAGS rtl/TAGS stdio/TAGS stdlib/TAGS string/TAGS stubs/TAGS
73 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>>>>>>> 1.64