-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathMakefile
More file actions
39 lines (29 loc) · 844 Bytes
/
Makefile
File metadata and controls
39 lines (29 loc) · 844 Bytes
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
32
33
34
35
36
37
38
39
# Tools configuration
SHELL = /bin/sh
CP := cp
MKDIR := mkdir -p
PMTYPES := src/tools/build/pmMakeTypes.py
PMCONSTS := src/tools/build/pmMakeConstStrings.py
pathsearch = $(firstword $(wildcard $(addsuffix /$(1),$(subst :, ,$(PATH)))))
VPATH := . src/vm src/lib docs/src
# Default target
PLATFORM ?= desktop
.PHONY: all vm ipm clean types consts
all :
$(MAKE) -C src/platform/$(PLATFORM)
ipm :
$(MAKE) -C src/platform/desktop all
cd src/tools/owl-tools && ./owl
types :
python2.7 $(PMTYPES) src/vm/obj.h > src/lib/types.py
cp src/lib/types.py src/tools/user/pmTypes.py
consts :
python2.7 $(PMCONSTS) src/tools/strings
mv consts.h src/vm
mv __consts.py src/lib
# Removes all files created during default make
clean :
$(MAKE) -C src/platform/$(PLATFORM) clean
# Remove files made by html / dox
html-clean :
$(RM) -rf docs/html