2003-11-11 22:21:29 +00:00
|
|
|
EXTRADEFS = -D_KERNEL32_ -DETCDIR="\"$(sysconfdir)\""
|
2000-06-03 00:07:44 +00:00
|
|
|
TOPSRCDIR = @top_srcdir@
|
|
|
|
TOPOBJDIR = ../..
|
|
|
|
SRCDIR = @srcdir@
|
|
|
|
VPATH = @srcdir@
|
2002-03-20 22:19:06 +00:00
|
|
|
MODULE = kernel32.dll
|
2002-05-11 23:06:32 +00:00
|
|
|
IMPORTS = ntdll
|
2003-09-27 02:32:53 +00:00
|
|
|
ALTNAMES = krnl386.exe comm.drv stress.dll system.drv toolhelp.dll windebug.dll win87em.dll
|
2003-03-31 23:58:27 +00:00
|
|
|
EXTRALIBS = $(LIBUNICODE)
|
2000-06-03 00:07:44 +00:00
|
|
|
|
2003-03-23 20:00:02 +00:00
|
|
|
SPEC_SRCS16 = \
|
2003-09-27 02:32:53 +00:00
|
|
|
comm.drv.spec \
|
2003-03-23 20:00:02 +00:00
|
|
|
krnl386.exe.spec \
|
|
|
|
stress.spec \
|
2003-08-19 03:27:45 +00:00
|
|
|
system.drv.spec \
|
2003-03-23 20:00:02 +00:00
|
|
|
toolhelp.spec \
|
|
|
|
win87em.spec \
|
2003-05-15 23:25:49 +00:00
|
|
|
windebug.spec
|
2003-03-23 20:00:02 +00:00
|
|
|
|
2000-06-03 04:49:40 +00:00
|
|
|
C_SRCS = \
|
2003-10-08 03:57:02 +00:00
|
|
|
$(TOPOBJDIR)/files/directory.c \
|
|
|
|
$(TOPOBJDIR)/files/dos_fs.c \
|
|
|
|
$(TOPOBJDIR)/files/drive.c \
|
|
|
|
$(TOPOBJDIR)/files/file.c \
|
|
|
|
$(TOPOBJDIR)/files/smb.c \
|
|
|
|
$(TOPOBJDIR)/misc/options.c \
|
|
|
|
$(TOPOBJDIR)/misc/registry.c \
|
2004-01-30 22:57:21 +00:00
|
|
|
actctx.c \
|
2003-05-16 00:05:08 +00:00
|
|
|
atom.c \
|
2003-03-26 23:41:43 +00:00
|
|
|
change.c \
|
2000-10-13 17:11:30 +00:00
|
|
|
comm.c \
|
2002-11-15 01:01:47 +00:00
|
|
|
computername.c \
|
2001-11-30 18:46:42 +00:00
|
|
|
console.c \
|
2003-11-13 20:58:55 +00:00
|
|
|
cpu.c \
|
2000-09-29 20:48:04 +00:00
|
|
|
debugger.c \
|
2003-09-18 20:58:41 +00:00
|
|
|
dosmem.c \
|
2002-07-31 19:20:28 +00:00
|
|
|
editline.c \
|
2003-11-13 20:58:55 +00:00
|
|
|
environ.c \
|
2003-09-17 05:31:32 +00:00
|
|
|
except.c \
|
|
|
|
fiber.c \
|
2003-06-24 02:32:01 +00:00
|
|
|
file.c \
|
|
|
|
file16.c \
|
2000-07-25 17:53:58 +00:00
|
|
|
format_msg.c \
|
2003-09-18 20:58:41 +00:00
|
|
|
global16.c \
|
2003-09-16 20:34:14 +00:00
|
|
|
heap.c \
|
2003-09-17 04:34:31 +00:00
|
|
|
instr.c \
|
2000-07-24 18:30:00 +00:00
|
|
|
kernel_main.c \
|
2003-03-22 00:23:16 +00:00
|
|
|
lcformat.c \
|
2003-05-16 20:15:26 +00:00
|
|
|
local16.c \
|
2002-08-15 23:18:47 +00:00
|
|
|
locale.c \
|
2003-11-06 01:09:58 +00:00
|
|
|
module.c \
|
2003-08-23 00:03:40 +00:00
|
|
|
ne_module.c \
|
|
|
|
ne_segment.c \
|
2004-01-15 00:20:46 +00:00
|
|
|
path.c \
|
2003-08-12 18:56:54 +00:00
|
|
|
powermgnt.c \
|
2003-06-27 04:08:04 +00:00
|
|
|
process.c \
|
2003-08-26 02:54:37 +00:00
|
|
|
profile.c \
|
2003-09-03 00:26:08 +00:00
|
|
|
pthread.c \
|
2003-08-26 02:28:59 +00:00
|
|
|
relay16.c \
|
2003-04-30 00:53:23 +00:00
|
|
|
resource.c \
|
|
|
|
resource16.c \
|
2003-09-18 20:58:41 +00:00
|
|
|
selector.c \
|
2003-08-26 02:28:59 +00:00
|
|
|
snoop16.c \
|
2000-07-26 19:51:37 +00:00
|
|
|
stress.c \
|
2001-05-24 19:32:00 +00:00
|
|
|
string.c \
|
2000-09-29 20:48:04 +00:00
|
|
|
sync.c \
|
2003-09-18 04:39:13 +00:00
|
|
|
syslevel.c \
|
2003-09-17 04:34:31 +00:00
|
|
|
system.c \
|
2003-06-24 03:34:15 +00:00
|
|
|
tape.c \
|
2003-08-23 00:03:40 +00:00
|
|
|
task.c \
|
2003-06-24 03:34:15 +00:00
|
|
|
thread.c \
|
2000-07-25 16:42:25 +00:00
|
|
|
thunk.c \
|
2000-09-29 20:48:04 +00:00
|
|
|
time.c \
|
2000-07-31 21:01:05 +00:00
|
|
|
toolhelp.c \
|
2000-07-25 16:42:25 +00:00
|
|
|
utthunk.c \
|
2003-09-24 05:26:00 +00:00
|
|
|
version.c \
|
2003-11-13 20:58:55 +00:00
|
|
|
virtual.c \
|
2004-03-09 01:03:03 +00:00
|
|
|
volume.c \
|
2003-09-18 00:06:02 +00:00
|
|
|
vxd.c \
|
2000-07-24 18:30:00 +00:00
|
|
|
win87em.c \
|
2000-07-25 16:42:25 +00:00
|
|
|
windebug.c \
|
|
|
|
wowthunk.c
|
2000-06-03 04:49:40 +00:00
|
|
|
|
2002-10-02 02:34:09 +00:00
|
|
|
C_SRCS16 = \
|
2003-05-21 18:31:01 +00:00
|
|
|
error16.c \
|
2003-09-17 04:34:31 +00:00
|
|
|
registry16.c
|
2002-10-02 02:34:09 +00:00
|
|
|
|
2003-08-26 02:28:59 +00:00
|
|
|
ASM_SRCS = relay16asm.s
|
|
|
|
|
2002-05-11 23:06:32 +00:00
|
|
|
RC_SRCS = kernel.rc
|
2001-05-31 21:37:29 +00:00
|
|
|
|
|
|
|
RC_SRCS16 = \
|
2001-03-08 01:17:03 +00:00
|
|
|
version16.rc
|
2000-07-25 17:53:58 +00:00
|
|
|
|
|
|
|
MC_SRCS = \
|
|
|
|
messages/winerr_enu.mc
|
2000-07-10 13:11:27 +00:00
|
|
|
|
2003-08-26 02:28:59 +00:00
|
|
|
EXTRA_OBJS = $(ASM_SRCS:.s=.o)
|
2002-08-09 01:22:40 +00:00
|
|
|
SUBDIRS = tests
|
2003-10-08 03:57:02 +00:00
|
|
|
EXTRASUBDIRS = \
|
|
|
|
$(TOPOBJDIR)/files \
|
|
|
|
$(TOPOBJDIR)/misc \
|
|
|
|
messages \
|
|
|
|
nls
|
2002-03-22 01:00:17 +00:00
|
|
|
|
2000-06-03 00:07:44 +00:00
|
|
|
@MAKE_DLL_RULES@
|
|
|
|
|
2000-11-06 05:30:48 +00:00
|
|
|
kernel.res: $(MC_SRCS:.mc=.mc.rc)
|
2000-07-25 17:53:58 +00:00
|
|
|
|
2003-08-26 02:28:59 +00:00
|
|
|
relay16asm.s: $(WINEBUILD)
|
2003-09-24 19:01:44 +00:00
|
|
|
$(WINEBUILD) $(DEFS) $(DLLFLAGS) -o $@ --relay16
|
2003-08-26 02:28:59 +00:00
|
|
|
|
2002-09-12 17:24:14 +00:00
|
|
|
# Special rules for 16-bit resource and spec files
|
|
|
|
|
2002-11-18 23:16:09 +00:00
|
|
|
krnl386.exe.spec.c: krnl386.exe.spec version16.res
|
2004-02-17 20:36:16 +00:00
|
|
|
$(WINEBUILD) $(DEFS) $(DLLFLAGS) -o $@ --dll-name kernel --main-module $(MODULE) --res version16.res --dll $(SRCDIR)/krnl386.exe.spec
|
2001-02-23 20:37:13 +00:00
|
|
|
|
|
|
|
version16.res: version16.rc
|
2003-05-06 18:34:53 +00:00
|
|
|
$(LDPATH) $(RC16) $(RC16FLAGS) -fo$@ $(SRCDIR)/version16.rc
|
2001-02-23 20:37:13 +00:00
|
|
|
|
2003-09-15 20:15:05 +00:00
|
|
|
clean::
|
|
|
|
$(RM) $(ASM_SRCS)
|
|
|
|
|
2000-06-03 00:07:44 +00:00
|
|
|
### Dependencies:
|