Makefile.in 2.07 KB
Newer Older
1
EXTRADEFS = -D_KERNEL32_
2 3 4 5
TOPSRCDIR = @top_srcdir@
TOPOBJDIR = ../..
SRCDIR    = @srcdir@
VPATH     = @srcdir@
6
MODULE    = kernel32.dll
7
IMPORTLIB = kernel32
8
IMPORTS   = ntdll
9
EXTRALIBS = @COREFOUNDATIONLIB@ @LIBPOLL@
10
EXTRADLLFLAGS = -Wb,-F,KERNEL32.dll -Wl,--image-base,0x7b800000
11

12
SPEC_SRCS16 = \
13
	comm.drv.spec \
14 15
	krnl386.exe.spec \
	stress.spec \
16
	system.drv.spec \
17 18
	toolhelp.spec \
	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 34
	except.c \
	fiber.c \
35 36
	file.c \
	file16.c \
Dave Pickles's avatar
Dave Pickles committed
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 48
	ne_module.c \
	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 57
	resource.c \
	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 77
	windebug.c \
	wowthunk.c
78

79
C_SRCS16 = \
80
	atom16.c \
81
	error16.c \
82
	kernel16.c \
83 84 85
	registry16.c \
	toolhelp16.c \
	win87em.c
86

87
RC_SRCS = kernel.rc
88 89

RC_SRCS16 = \
90
	version16.rc
Dave Pickles's avatar
Dave Pickles committed
91 92

MC_SRCS = \
93
	nls/winerr_deu.mc \
94
	nls/winerr_enu.mc \
95
	nls/winerr_fra.mc \
96
	nls/winerr_kor.mc
97

98
EXTRA_OBJS   = relay16asm.o
99
EXTRA_OBJS16 = winoldap.mod.o
100

101
EXTRASUBDIRS = nls
102

103 104
@MAKE_DLL_RULES@

105
kernel.res: $(MC_SRCS:.mc=.mc.rc)
Dave Pickles's avatar
Dave Pickles committed
106

107 108
relay16asm.o: $(WINEBUILD)
	$(WINEBUILD) $(WINEBUILDFLAGS) -o $@ --relay16
109

110 111 112
winoldap.mod.o: $(WINEBUILD)
	$(WINEBUILD) $(WINEBUILDFLAGS) --exe -o $@ --main-module $(MODULE) --entry WINOLDAP_EntryPoint

113 114
# Special rules for 16-bit resource and spec files

115 116
krnl386.exe.spec.o: krnl386.exe.spec version16.res
	$(WINEBUILD) $(WINEBUILDFLAGS) --dll -o $@ --dll-name kernel --main-module $(MODULE) --res version16.res --export $(SRCDIR)/krnl386.exe.spec
117 118

version16.res: version16.rc
119
	$(LDPATH) $(RC16) $(RC16FLAGS) -fo$@ $(SRCDIR)/version16.rc
120

121
@DEPENDENCIES@  # everything below this line is overwritten by make depend