-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathMakefile
More file actions
38 lines (31 loc) · 830 Bytes
/
Makefile
File metadata and controls
38 lines (31 loc) · 830 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
.PHONY: src tests cli gtest deps clean all distclean run
CXXFLAGS += -std=c++20
export CXXFLAGS
# uncomment to support the preferred compiler
# CXX := clang++
# export CXX
all: src cli
gtest:
$(MAKE) -C tests -f Makefile.gtest RELEASE=$(RELEASE)
tests: gtest src
$(MAKE) -C tests RELEASE=$(RELEASE)
cli: src deps
$(MAKE) -C cli RELEASE=$(RELEASE)
deps:
$(MAKE) -C deps/stlplus/subsystems
$(MAKE) -C deps/stlplus/portability
src:
$(MAKE) -C src RELEASE=$(RELEASE)
clean:
$(MAKE) -C tests -f Makefile.gtest clean RELEASE=$(RELEASE)
$(MAKE) -C tests clean RELEASE=$(RELEASE)
$(MAKE) -C cli clean RELEASE=$(RELEASE)
$(MAKE) -C src clean RELEASE=$(RELEASE)
distclean : clean
$(MAKE) -C deps/stlplus clean RELEASE=$(RELEASE)
run: src cli
ifeq ($(RELEASE),on)
bin/release/cpp-project
else
bin/debug/cpp-project
endif