forked from cloudozer/ling
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMakefile.in
More file actions
49 lines (36 loc) · 1.15 KB
/
Makefile.in
File metadata and controls
49 lines (36 loc) · 1.15 KB
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
40
41
42
43
44
45
46
47
48
.PHONY: default install dist bc core apps railing
include Config.mk
HEADERS := embed.h heap.h term.h nalloc.h
default: bc core apps railing
bc:
make -C bc
core:
make -C core
apps:
make -C apps
railing:
make -C railing
install: default
install -d $(LING_ROOT)/core/include $(LING_ROOT)/bc
install -d $(BIN_DIR)
install core/vmling.o $(LING_ROOT)/core
install core/ling.lds $(LING_ROOT)/core
install $(addprefix core/include/,$(HEADERS)) $(LING_ROOT)/core/include
install bc/*.beam $(LING_ROOT)/bc
install railing/railing $(BIN_DIR)
cp -R apps $(LING_ROOT)
DIST_LING_ROOT := dist
DIST_BING_DIR := $(DIST_LING_ROOT)/bin
DIST_TAR_BALL := ling-$(LING_VER).tar.gz
dist: bc core apps railing-dist $(DIST_TAR_BALL)
install -d $(DIST_LING_ROOT)/core/include $(DIST_LING_ROOT)/bc
install -d $(DIST_BIN_DIR)
install core/vmling.o $(DIST_LING_ROOT)/core
install core/ling.lds $(DIST_LING_ROOT)/core
install $(addprefix core/include/,$(HEADERS)) $(DIST_LING_ROOT)/core/include
install bc/*.beam $(DIST_LING_ROOT)/bc
install railing/railing $(DIST_BIN_DIR)
cp -R apps $(DIST_LING_ROOT)
tar czf $(DIST_TAR_BALL) dist
railing-dist:
make -C railing dist