-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMakefile
More file actions
43 lines (33 loc) · 1.2 KB
/
Makefile
File metadata and controls
43 lines (33 loc) · 1.2 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
# Boot Makefile
# See https://www.gnu.org/software/make/manual/make.html for more about make.
# ENGINE
ENGINE = clang++
ENGINE_FLAGS = -std=c++2b
# PATH
PATH_SRC = $(CURDIR)/src/core/boot/index.cpp
PATH_BIN = $(CURDIR)/src/core/boot/bin/index
# INC
INC_CORE = -I $(CURDIR)/src/core
INC_INCLUDE = -L /usr/include
INC_JSONCPP = -I /usr/include/jsoncpp/json
INC = ${INC_CORE} ${INC_INCLUDE} ${INC_JSONCPP}
# LINK
LINK_JSONCPP = -ljsoncpp
LINK = ${LINK_JSONCPP}
# SCRIPTS
setup:
clear && mkdir -p src/core/boot/bin
clear && $(ENGINE) $(ENGINE_FLAGS) $(PATH_SRC) ${INC} -o $(PATH_BIN) ${LINK} && $(PATH_BIN) setup
build:
clear && mkdir -p src/core/boot/bin
clear && $(ENGINE) $(ENGINE_FLAGS) $(PATH_SRC) ${INC} -o $(PATH_BIN) ${LINK} && $(PATH_BIN) build
watch:
clear && mkdir -p src/core/boot/bin
clear && $(ENGINE) $(ENGINE_FLAGS) $(PATH_SRC) ${INC} -o $(PATH_BIN) ${LINK} && $(PATH_BIN) watch
migrate:
clear && mkdir -p src/core/boot/bin
clear && $(ENGINE) $(ENGINE_FLAGS) $(PATH_SRC) ${INC} -o $(PATH_BIN) ${LINK} && $(PATH_BIN) migrate
seed:
clear && mkdir -p src/core/boot/bin
clear && $(ENGINE) $(ENGINE_FLAGS) $(PATH_SRC) ${INC} -o $(PATH_BIN) ${LINK} && $(PATH_BIN) seed
.PHONY: setup build watch migrate seed