-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
34 lines (25 loc) · 767 Bytes
/
Makefile
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
MAKEFLAGS += --no-print-directory
.PHONY : build-release build-debug alan-release alan-debug clean distclean
default : alan-release
build-release :
@echo "Executing CMake"
@cmake -H. -Bbuild -DCMAKE_BUILD_TYPE=RELEASE
@echo "CMake done"
build-debug :
@echo "Executing CMake"
@cmake -H. -Bbuild -DCMAKE_BUILD_TYPE=DEBUG
@echo "CMake done"
lib :
@cmake --build build --target alanstd
alan-release : build-release lib
@cmake --build build --target ALAN
alan-debug : build-debug lib
@cmake --build build --target ALAN
clean :
@rm -rf build
@rm src/lexer/lexer.cpp src/parser/parser.hpp src/parser/parser.cpp src/parser/parser.output
@echo "Removed build directory"
distclean : clean
@rm -rf bin
@rm -rf libs
@echo "Removed bin and libs directory"