-
Notifications
You must be signed in to change notification settings - Fork 11
/
makefile
30 lines (23 loc) · 2.15 KB
/
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
EXE :=
ifeq ($(OS),Windows_NT)
EXE := .exe
endif
.PHONY: all clean
all: delegate$(EXE) delegate_compat$(EXE)
delegate$(EXE): src/abi.h src/delegate.cpp src/delegate.h main.cpp
$(CXX) -o delegate$(EXE) src/delegate.cpp main.cpp -std=c++17 -O3 -pthread -lstdc++ -D MAME_DELEGATE_LOG_ADJ
delegate_compat$(EXE): src/abi.h src/delegate.cpp src/delegate.h main.cpp
$(CXX) -o delegate_compat$(EXE) src/delegate.cpp main.cpp -std=c++17 -O3 -pthread -lstdc++ -D MAME_DELEGATE_FORCE_COMPATIBLE
delegate_sanitizer$(EXE): src/abi.h src/delegate.cpp src/delegate.h main.cpp
$(CXX) -o delegate_s_undefined$(EXE) src/delegate.cpp main.cpp -std=c++17 -O0 -pthread -lstdc++ -fsanitize=undefined -D MAME_DELEGATE_LOG_ADJ
$(CXX) -o delegate_s_address$(EXE) src/delegate.cpp main.cpp -std=c++17 -O0 -pthread -lstdc++ -fsanitize=address -D MAME_DELEGATE_LOG_ADJ
$(CXX) -o delegate_s_undefined_opt$(EXE) src/delegate.cpp main.cpp -std=c++17 -O3 -pthread -lstdc++ -fsanitize=undefined -D MAME_DELEGATE_LOG_ADJ
$(CXX) -o delegate_s_address_opt$(EXE) src/delegate.cpp main.cpp -std=c++17 -O3 -pthread -lstdc++ -fsanitize=address -D MAME_DELEGATE_LOG_ADJ
delegate_compat_sanitizer$(EXE): src/abi.h src/delegate.cpp src/delegate.h main.cpp
$(CXX) -o delegate_compat_s_undefined$(EXE) src/delegate.cpp main.cpp -std=c++17 -O0 -pthread -lstdc++ -fsanitize=undefined -D MAME_DELEGATE_FORCE_COMPATIBLE
$(CXX) -o delegate_compat_s_address$(EXE) src/delegate.cpp main.cpp -std=c++17 -O0 -pthread -lstdc++ -fsanitize=address -D MAME_DELEGATE_FORCE_COMPATIBLE
$(CXX) -o delegate_compat_s_undefined_opt$(EXE) src/delegate.cpp main.cpp -std=c++17 -O3 -pthread -lstdc++ -fsanitize=undefined -D MAME_DELEGATE_FORCE_COMPATIBLE
$(CXX) -o delegate_compat_s_address_opt$(EXE) src/delegate.cpp main.cpp -std=c++17 -O3 -pthread -lstdc++ -fsanitize=address -D MAME_DELEGATE_FORCE_COMPATIBLE
clean:
@echo Cleaning...
-@rm -rf delegate$(EXE) delegate_compat$(EXE) delegate_s_undefined$(EXE) delegate_s_undefined_opt$(EXE) delegate_s_address$(EXE) delegate_s_address_opt$(EXE) delegate_compat_s_undefined$(EXE) delegate_compat_s_undefined_opt$(EXE) delegate_compat_s_address$(EXE) delegate_compat_s_address_opt$(EXE)