-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathMakefile
More file actions
30 lines (21 loc) · 841 Bytes
/
Makefile
File metadata and controls
30 lines (21 loc) · 841 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
CXX=g++
# NO_DEBUG=-DNDEBUG
CFLAGS=-I./include -g $(NO_DEBUG)
pthread_patch.so: pthread_shim/pthread_patch.c
gcc -shared -o $@ $< -fPIC
use_dlmopen.so: src/use_dlmopen.c
gcc -shared -o $@ $< -fPIC -ldl
test_dlmopen: src/test_dlmopen.cpp
g++ $(CFLAGS) -o $@ $< -fPIC -ldl
test_forge_getaffinity: tests/test_forge_getaffinity.cpp include/VLC.h
$(CXX) $(CFLAGS) -o $@ $< -lseccomp
test_forge_cpu_file: tests/test_forge_cpu_file.cpp include/VLC.h
$(CXX) $(CFLAGS) -o $@ $< -lseccomp
test_forge_mem_file: tests/test_forge_mem_file.cpp include/VLC/*
$(CXX) $(CFLAGS) -o $@ $< -lseccomp
test_pthread: tests/test_pthread.cpp include/VLC.h
$(CXX) $(CFLAGS) -o $@ $< -pthread -ldl
test_register_vlc: tests/test_register_vlc.cpp include/VLC/*
$(CXX) $(CFLAGS) -o $@ $<
clean:
rm -f test_forge_getaffinity test_pthread pthread_patch.so