-
Notifications
You must be signed in to change notification settings - Fork 4
Expand file tree
/
Copy pathMakefile.inc
More file actions
24 lines (20 loc) · 748 Bytes
/
Copy pathMakefile.inc
File metadata and controls
24 lines (20 loc) · 748 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
# Contains variables exported to all makefiles in VTPin
UNAME := $(shell uname)
export BINDIR=bin
export SRCDIR=src
ifeq ($(UNAME), Linux)
export OUT_LIBTVPIN=libvtpin.so
# qt4 only necessary on linux
export CXXEXTRAS=-I /usr/include/qt4
endif
ifeq ($(UNAME), Darwin)
export OUT_LIBTVPIN=libvtpin.dylib
export CXXEXTRAS=-m32
endif
export CXX=clang++
export COMMONFLAGS:=-Wall -Wno-format -Wunused-function -pthread -std=c++11 #-std=c++11
export LDFLAGS=-lpthread
# Targets
debug: export DEBUG=-DDEBUG -g -ggdb -rdynamic -Wextra -Wno-unused-variable -Wno-unused-parameter -Wshadow -Wno-gnu-zero-variadic-macro-arguments -Wnon-virtual-dtor -pedantic
# -DHANDLE_SEGFAULTS -DDO_GARBAGE_COLLECTION -DTRACE_MEM_TO_FILE
debug: all