athena/atdna/atdna.pro

61 lines
1.4 KiB
Prolog
Raw Normal View History

2015-06-15 02:49:02 +00:00
TEMPLATE = app
CONFIG += console c++11
CONFIG -= app_bundle
CONFIG -= qt
QT =
DEFINES += __STDC_LIMIT_MACROS=1 __STDC_CONSTANT_MACROS=1
QMAKE_CXXFLAGS += -fno-rtti
QMAKE_CXXFLAGS_WARN_ON = -Wno-unused-parameter
2015-06-16 02:29:53 +00:00
INCLUDEPATH += ../include
CONFIG(debug, debug|release) {
2015-06-17 02:02:35 +00:00
# FOR FULL DEBUGGING, PLEASE UNCOMMENT THESE AND POINT THEM TO
# THE INSTALL PREFIX OF YOUR OWN DEBUG BUILD OF LLVM/CLANG!!
#INCLUDEPATH += /home/jacko/llvm-build/usr/include
#LIBS += -L/home/jacko/llvm-build/usr/lib
2015-06-16 02:29:53 +00:00
LIBS += -g
} else {
LIBS += -flto
}
2015-06-15 02:49:02 +00:00
SOURCES += \
main.cpp
2015-06-17 02:20:38 +00:00
LIBS += -lclangFrontend -lclangTooling -lclangDriver \
-lclangSerialization -lclangParse -lclangSema \
-lclangAnalysis -lclangEdit \
2015-06-15 02:49:02 +00:00
-lclangAST -lclangLex -lclangBasic \
2015-06-17 02:20:38 +00:00
-lLLVMOption -lLLVMMCParser -lLLVMBitReader \
-lLLVMMC -lLLVMSupport -lz -lpthread -lcurses -ldl
2015-06-15 02:49:02 +00:00
HEADERS += \
test.hpp
2015-06-17 00:25:48 +00:00
unix {
isEmpty(PREFIX) {
PREFIX = /usr/local
}
2015-06-17 01:02:58 +00:00
isEmpty(INSTALL_PREFIX) {
INSTALL_PREFIX = /usr/local
}
2015-06-17 00:25:48 +00:00
utilFiles.path = $$PREFIX/bin
2015-06-17 00:33:04 +00:00
utilFiles.files = $$OUT_PWD/atdna
2015-06-17 00:25:48 +00:00
INSTALLS += utilFiles
}
win32 {
isEmpty(PREFIX) {
PREFIX = $$PWD/pkg
}
2015-06-17 01:02:58 +00:00
isEmpty(INSTALL_PREFIX) {
INSTALL_PREFIX = $$PWD/pkg
}
2015-06-17 00:25:48 +00:00
utilFiles.path = $$PREFIX/bin
2015-06-17 00:33:04 +00:00
utilFiles.files = $$OUT_PWD/atdna
2015-06-17 00:25:48 +00:00
INSTALLS += utilFiles
}
2015-06-17 00:57:06 +00:00
2015-06-17 01:02:58 +00:00
DEFINES += INSTALL_PREFIX="$$INSTALL_PREFIX"
2015-06-17 00:57:06 +00:00