Fix another error under Win9x (hopefully).
[wine] / dlls / kernel / Makefile.in
1 EXTRADEFS = -D_KERNEL32_
2 TOPSRCDIR = @top_srcdir@
3 TOPOBJDIR = ../..
4 SRCDIR    = @srcdir@
5 VPATH     = @srcdir@
6 MODULE    = kernel32.dll
7 IMPORTS   = ntdll
8 ALTNAMES  = krnl386.exe comm.dll stress.dll system.drv toolhelp.dll windebug.dll win87em.dll
9 LDIMPORTS = ntdll.dll
10 EXTRALIBS = $(LIBUNICODE)
11 DLLMAIN   = MAIN_KernelInit
12
13 SPEC_SRCS16 = \
14         comm.spec \
15         krnl386.exe.spec \
16         stress.spec \
17         system.drv.spec \
18         toolhelp.spec \
19         win87em.spec \
20         windebug.spec
21
22 C_SRCS = \
23         atom.c \
24         change.c \
25         comm.c \
26         computername.c \
27         console.c \
28         debugger.c \
29         editline.c \
30         file.c \
31         file16.c \
32         format_msg.c \
33         heap.c \
34         kernel_main.c \
35         lcformat.c \
36         local16.c \
37         locale.c \
38         ne_module.c \
39         ne_segment.c \
40         powermgnt.c \
41         process.c \
42         profile.c \
43         pthread.c \
44         relay16.c \
45         resource.c \
46         resource16.c \
47         snoop16.c \
48         stress.c \
49         string.c \
50         sync.c \
51         tape.c \
52         task.c \
53         thread.c \
54         thunk.c \
55         time.c \
56         toolhelp.c \
57         utthunk.c \
58         win87em.c \
59         windebug.c \
60         wowthunk.c
61
62 C_SRCS16 = \
63         error16.c \
64         registry16.c \
65         system.c
66
67 ASM_SRCS = relay16asm.s
68
69 RC_SRCS = kernel.rc
70
71 RC_SRCS16 = \
72         version16.rc
73
74 MC_SRCS = \
75         messages/winerr_enu.mc
76
77 EXTRA_OBJS   = $(ASM_SRCS:.s=.o)
78 SUBDIRS      = tests
79 EXTRASUBDIRS = messages nls
80
81 @MAKE_DLL_RULES@
82
83 kernel.res: $(MC_SRCS:.mc=.mc.rc)
84
85 relay16asm.s: $(WINEBUILD)
86         $(WINEBUILD) $(DEFS) -o $@ --relay16
87
88 # Special rules for 16-bit resource and spec files
89
90 krnl386.exe.spec.c: krnl386.exe.spec version16.res
91         $(WINEBUILD) $(DEFS) -o $@ --dll-name kernel --main-module $(MODULE) --res version16.res --spec $(SRCDIR)/krnl386.exe.spec
92
93 version16.res: version16.rc
94         $(LDPATH) $(RC16) $(RC16FLAGS) -fo$@ $(SRCDIR)/version16.rc
95
96 clean::
97         $(RM) $(ASM_SRCS)
98
99 ### Dependencies: