-
Notifications
You must be signed in to change notification settings - Fork 3
Expand file tree
/
Copy pathMakefile
More file actions
32 lines (25 loc) · 727 Bytes
/
Makefile
File metadata and controls
32 lines (25 loc) · 727 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
PROJECTS := libSomeVM SomeVM SomeLang
# compile settings for all projects
export GLOBAL_CXX := g++
export GLOBAL_CFLAGS := -std=c++17 -Wall -Wextra -fdiagnostics-color=always
export GLOBAL_RLS_FLAGS := -O2
export GLOBAL_DBG_FLAGS := -DDEBUG -O0 -g
WORKING_DIR := $(realpath .)
OUT_DIR_NAME := /build
export OUT_DIR := $(addsuffix $(OUT_DIR_NAME), $(WORKING_DIR))
.PHONY: release debug clean
release:
@mkdir -p $(OUT_DIR)/$@
@$(MAKE) -C libSomeVM $@
@$(MAKE) -C SomeVM $@
@$(MAKE) -C SomeLang $@
debug:
@mkdir -p $(OUT_DIR)/$@
@$(MAKE) -C libSomeVM $@
@$(MAKE) -C SomeVM $@
@$(MAKE) -C SomeLang $@
clean:
@rm -rf $(OUT_DIR)
@$(MAKE) -C libSomeVM $@
@$(MAKE) -C SomeVM $@
@$(MAKE) -C SomeLang $@