Protect GlobalAddAtomA string handling by exception handler (for
[wine] / dlls / kernel / Makefile.in
1 EXTRADEFS = -D_KERNEL32_ -DETCDIR="\"$(sysconfdir)\""
2 TOPSRCDIR = @top_srcdir@
3 TOPOBJDIR = ../..
4 SRCDIR    = @srcdir@
5 VPATH     = @srcdir@
6 MODULE    = kernel32.dll
7 IMPORTLIB = libkernel32.$(IMPLIBEXT)
8 IMPORTS   = ntdll
9 EXTRALIBS = $(LIBUNICODE) @COREFOUNDATIONLIB@
10 BASEADDRESS = 0x7b800000
11
12 SPEC_SRCS16 = \
13         comm.drv.spec \
14         krnl386.exe.spec \
15         stress.spec \
16         system.drv.spec \
17         toolhelp.spec \
18         win87em.spec \
19         windebug.spec
20
21 C_SRCS = \
22         actctx.c \
23         atom.c \
24         change.c \
25         comm.c \
26         computername.c \
27         console.c \
28         cpu.c \
29         debugger.c \
30         dosmem.c \
31         editline.c \
32         environ.c \
33         except.c \
34         fiber.c \
35         file.c \
36         file16.c \
37         format_msg.c \
38         global16.c \
39         heap.c \
40         instr.c \
41         kernel_main.c \
42         lcformat.c \
43         local16.c \
44         locale.c \
45         lzexpand.c \
46         module.c \
47         ne_module.c \
48         ne_segment.c \
49         oldconfig.c \
50         path.c \
51         powermgnt.c \
52         process.c \
53         profile.c \
54         pthread.c \
55         relay16.c \
56         resource.c \
57         resource16.c \
58         selector.c \
59         snoop16.c \
60         stress.c \
61         string.c \
62         sync.c \
63         syslevel.c \
64         system.c \
65         tape.c \
66         task.c \
67         thread.c \
68         thunk.c \
69         time.c \
70         toolhelp.c \
71         utthunk.c \
72         version.c \
73         virtual.c \
74         volume.c \
75         vxd.c \
76         windebug.c \
77         wowthunk.c
78
79 C_SRCS16 = \
80         atom16.c \
81         error16.c \
82         registry16.c \
83         toolhelp16.c \
84         win87em.c
85
86 ASM_SRCS = relay16asm.s
87
88 RC_SRCS = kernel.rc
89
90 RC_SRCS16 = \
91         version16.rc
92
93 MC_SRCS = \
94         messages/winerr_enu.mc
95
96 EXTRA_OBJS   = $(ASM_SRCS:.s=.o)
97 SUBDIRS      = tests
98 EXTRASUBDIRS = messages nls
99
100 @MAKE_DLL_RULES@
101
102 kernel.res: $(MC_SRCS:.mc=.mc.rc)
103
104 relay16asm.s: $(WINEBUILD)
105         $(WINEBUILD) $(DEFS) $(DLLFLAGS) -o $@ --relay16
106
107 # Special rules for 16-bit resource and spec files
108
109 krnl386.exe.spec.c: krnl386.exe.spec version16.res
110         $(WINEBUILD) $(DEFS) $(DLLFLAGS) --dll -o $@ --dll-name kernel --main-module $(MODULE) --res version16.res --export $(SRCDIR)/krnl386.exe.spec
111
112 version16.res: version16.rc
113         $(LDPATH) $(RC16) $(RC16FLAGS) -fo$@ $(SRCDIR)/version16.rc
114
115 clean::
116         $(RM) $(ASM_SRCS)
117
118 ### Dependencies: