migrate substitution keywords to SVN
[reactos.git] / reactos / lib / kernel32 / makefile
1 # $Id$
2
3 PATH_TO_TOP = ../..
4
5 TARGET_REGTESTS = yes
6
7 TARGET_TYPE = dynlink
8
9 TARGET_NAME = kernel32
10
11 TARGET_BASE = $(TARGET_BASE_LIB_KERNEL32)
12
13 # require os code to explicitly request A/W version of structs/functions
14 TARGET_CFLAGS += -D_DISABLE_TIDENTS -D_SEH_NO_NATIVE_NLG -Wall -Werror
15
16 TARGET_LFLAGS = -nostartfiles -nostdlib
17
18 TARGET_RCFLAGS += -DWINVER=0x0500
19
20 TARGET_SDKLIBS = pseh.a rosrtl.a ntdll.a kernel32.a
21
22 TARGET_GCCLIBS = gcc
23
24 TARGET_PCH = k32.h
25
26 TARGET_CLEAN = errcodes.rc $(PATH_TO_TOP)/include/reactos/errcodes.h msg?????.bin
27
28 SYNCH_OBJECTS = synch/critical.o synch/event.o synch/intrlck.o synch/mutex.o \
29 synch/sem.o synch/timer.o synch/wait.o
30
31 MISC_OBJECTS = misc/error.o misc/atom.o misc/handle.o misc/env.o \
32 misc/dllmain.o misc/comm.o misc/errormsg.o \
33 misc/console.o misc/time.o misc/timerqueue.o misc/toolhelp.o \
34 misc/stubs.o misc/lang.o misc/ldr.o misc/res.o \
35 misc/sysinfo.o misc/profile.o \
36 misc/muldiv.o misc/nls.o misc/computername.o \
37 misc/perfcnt.o misc/lzexpand_main.o misc/lcformat.o \
38 misc/chartype.o
39
40 FILE_OBJECTS = file/file.o file/curdir.o file/lfile.o file/dir.o \
41 file/iocompl.o file/volume.o file/deviceio.o file/dosdev.o \
42 file/create.o file/find.o file/copy.o file/pipe.o \
43 file/move.o file/lock.o file/rw.o file/delete.o \
44 file/npipe.o file/tape.o file/mailslot.o file/backup.o \
45 file/cnotify.o file/hardlink.o file/bintype.o
46
47 MEM_OBJECTS = mem/global.o mem/heap.o mem/isbad.o mem/local.o \
48 mem/procmem.o mem/resnotify.o mem/section.o mem/virtual.o
49
50 NLS_OBJECTS =
51
52 THREAD_OBJECTS = \
53 thread/fiber.o \
54 thread/thread.o \
55 thread/tls.o \
56 thread/fls.o
57
58 THREAD_I386_OBJECTS = \
59 thread/i386/fiber.o
60
61 PROCESS_OBJECTS = \
62 process/proc.o \
63 process/cmdline.o \
64 process/create.o \
65 process/job.o \
66 process/session.o
67
68 STRING_OBJECTS = string/lstring.o
69
70 EXCEPT_OBJECTS = except/except.o
71
72 DEBUG_OBJECTS = debug/debugger.o debug/output.o debug/break.o
73
74 ARCH_OBJECTS = $(THREAD_I386_OBJECTS)
75
76 TARGET_OBJECTS = $(MISC_OBJECTS) $(FILE_OBJECTS) $(THREAD_OBJECTS) \
77 $(PROCESS_OBJECTS) $(STRING_OBJECTS) $(MEM_OBJECTS) \
78 $(SYNCH_OBJECTS) $(EXCEPT_OBJECTS) $(DEBUG_OBJECTS) \
79 $(ARCH_OBJECTS)
80
81 DEP_OBJECTS = $(TARGET_OBJECTS)
82
83 include $(PATH_TO_TOP)/rules.mak
84
85 include $(TOOLS_PATH)/helper.mk
86
87 include $(TOOLS_PATH)/depend.mk
88
89 $(TARGET_NAME).coff: errcodes.rc
90
91 errcodes.rc: $(TARGET_NAME).mc
92 $(MC) \
93 -H $(PATH_TO_TOP)/include/reactos/errcodes.h \
94 -o errcodes.rc \
95 $(TARGET_NAME).mc
96
97 %/TAGS:
98 etags -o $(@D)/TAGS $(@D)/\*.c
99
100 etags: except/TAGS file/TAGS mem/TAGS misc/TAGS nls/TAGS process/TAGS string/TAGS synch/TAGS thread/TAGS
101 etags -i except/TAGS -i file/TAGS -i mem/TAGS -i misc/TAGS -i nls/TAGS -i process/TAGS -i string/TAGS -i synch/TAGS -i thread/TAGS