Makefile.in 2.08 KB
Newer Older
1
EXTRADEFS = -D_KERNEL32_ -DETCDIR="\"$(sysconfdir)\""
2 3 4 5
TOPSRCDIR = @top_srcdir@
TOPOBJDIR = ../..
SRCDIR    = @srcdir@
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 14
	krnl386.exe.spec \
	stress.spec \
15
	system.drv.spec \
16 17
	toolhelp.spec \
	win87em.spec \
18
	windebug.spec
19

20
C_SRCS = \
21 22 23 24 25 26 27
	$(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 \
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 40
	except.c \
	fiber.c \
41 42
	file.c \
	file16.c \
Dave Pickles's avatar
Dave Pickles committed
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 53
	ne_module.c \
	ne_segment.c \
54
	powermgnt.c \
55
	process.c \
56
	profile.c \
57
	pthread.c \
58
	relay16.c \
59 60
	resource.c \
	resource16.c \
61
	selector.c \
62
	snoop16.c \
63
	stress.c \
64
	string.c \
65
	sync.c \
66
	syslevel.c \
67
	system.c \
68
	tape.c \
69
	task.c \
70
	thread.c \
71
	thunk.c \
72
	time.c \
73
	toolhelp.c \
74
	utthunk.c \
75
	version.c \
76
	virtual.c \
77
	vxd.c \
78
	win87em.c \
79 80
	windebug.c \
	wowthunk.c
81

82
C_SRCS16 = \
83
	error16.c \
84
	registry16.c
85

86 87
ASM_SRCS = relay16asm.s

88
RC_SRCS = kernel.rc
89 90

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

MC_SRCS = \
	messages/winerr_enu.mc
95

96
EXTRA_OBJS   = $(ASM_SRCS:.s=.o)
97
SUBDIRS      = tests
98 99 100 101 102
EXTRASUBDIRS = \
	$(TOPOBJDIR)/files \
	$(TOPOBJDIR)/misc \
	messages \
	nls
103

104 105
@MAKE_DLL_RULES@

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

108
relay16asm.s: $(WINEBUILD)
109
	$(WINEBUILD) $(DEFS) $(DLLFLAGS) -o $@ --relay16
110

111 112
# Special rules for 16-bit resource and spec files

113
krnl386.exe.spec.c: krnl386.exe.spec version16.res
114
	$(WINEBUILD) $(DEFS) $(DLLFLAGS) -o $@ --dll-name kernel --main-module $(MODULE) --res version16.res --spec $(SRCDIR)/krnl386.exe.spec
115 116

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

119 120 121
clean::
	$(RM) $(ASM_SRCS)

122
### Dependencies: