summaryrefslogtreecommitdiffhomepage
path: root/project/w32def/w32def.mk
blob: b00706449e9d83ee116b943f8db0808160606d4e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
PERK		?= perk
W32_SYSDIR	?= /dev/null
PROJECT_DIR	?= .
SOURCE_DIR	?= .

include $(PROJECT_DIR)/project/common.mk

fake/%.dll:
		touch $@

fake/%.drv:
		touch $@

config.project: $(W32FAKE)

$(SOURCE_DIR)/def/kernel32.def:	APIS_WITH_CAPS = -c

$(SOURCE_DIR)/def/%.def:	$(W32_SYSDIR)/%.dll
				$(PROJECT_DIR)/project/w32def/w32def.sh -p $(PERK) -l $< -o $@ $(APIS_WITH_CAPS)

$(SOURCE_DIR)/def/%.def:	$(W32_SYSDIR)/%.drv
				$(PROJECT_DIR)/project/w32def/w32def.sh -p $(PERK) -l $< -o $@ $(APIS_WITH_CAPS)

w32def:				config.project $(W32DEF)

w32def-clean:
				rm -f $(W32DEF)
				rm -f $(W32FAKE)

.PHONY:				w32def
.PHONY:				w32def-clean