Reimplemented Get{Short|Long}PathName and updated the regression
[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 IMPORTS   = ntdll
8 ALTNAMES  = krnl386.exe comm.drv stress.dll system.drv toolhelp.dll windebug.dll win87em.dll
9 EXTRALIBS = $(LIBUNICODE)
10
11 SPEC_SRCS16 = \
12         comm.drv.spec \
13         krnl386.exe.spec \
14         stress.spec \
15         system.drv.spec \
16         toolhelp.spec \
17         win87em.spec \
18         windebug.spec
19
20 C_SRCS = \
21         $(TOPOBJDIR)/files/directory.c \
22         $(TOPOBJDIR)/files/dos_fs.c \
23         $(TOPOBJDIR)/files/drive.c \
24         $(TOPOBJDIR)/files/file.c \
25         $(TOPOBJDIR)/files/smb.c \
26         $(TOPOBJDIR)/misc/options.c \
27         $(TOPOBJDIR)/misc/registry.c \
28         atom.c \
29         change.c \
30         comm.c \
31         computername.c \
32         console.c \
33         cpu.c \
34         debugger.c \
35         device.c \
36         dosmem.c \
37         editline.c \
38         environ.c \
39         except.c \
40         fiber.c \
41         file.c \
42         file16.c \
43         format_msg.c \
44         global16.c \
45         heap.c \
46         instr.c \
47         kernel_main.c \
48         lcformat.c \
49         local16.c \
50         locale.c \
51         module.c \
52         ne_module.c \
53         ne_segment.c \
54         path.c \
55         powermgnt.c \
56         process.c \
57         profile.c \
58         pthread.c \
59         relay16.c \
60         resource.c \
61         resource16.c \
62         selector.c \
63         snoop16.c \
64         stress.c \
65         string.c \
66         sync.c \
67         syslevel.c \
68         system.c \
69         tape.c \
70         task.c \
71         thread.c \
72         thunk.c \
73         time.c \
74         toolhelp.c \
75         utthunk.c \
76         version.c \
77         virtual.c \
78         vxd.c \
79         win87em.c \
80         windebug.c \
81         wowthunk.c
82
83 C_SRCS16 = \
84         error16.c \
85         registry16.c
86
87 ASM_SRCS = relay16asm.s
88
89 RC_SRCS = kernel.rc
90
91 RC_SRCS16 = \
92         version16.rc
93
94 MC_SRCS = \
95         messages/winerr_enu.mc
96
97 EXTRA_OBJS   = $(ASM_SRCS:.s=.o)
98 SUBDIRS      = tests
99 EXTRASUBDIRS = \
100         $(TOPOBJDIR)/files \
101         $(TOPOBJDIR)/misc \
102         messages \
103         nls
104
105 @MAKE_DLL_RULES@
106
107 kernel.res: $(MC_SRCS:.mc=.mc.rc)
108
109 relay16asm.s: $(WINEBUILD)
110         $(WINEBUILD) $(DEFS) $(DLLFLAGS) -o $@ --relay16
111
112 # Special rules for 16-bit resource and spec files
113
114 krnl386.exe.spec.c: krnl386.exe.spec version16.res
115         $(WINEBUILD) $(DEFS) $(DLLFLAGS) -o $@ --dll-name kernel --main-module $(MODULE) --res version16.res --spec $(SRCDIR)/krnl386.exe.spec
116
117 version16.res: version16.rc
118         $(LDPATH) $(RC16) $(RC16FLAGS) -fo$@ $(SRCDIR)/version16.rc
119
120 clean::
121         $(RM) $(ASM_SRCS)
122
123 ### Dependencies: