mirror of
https://github.com/Proxmark/proxmark3.git
synced 2025-08-22 14:13:42 -07:00
Merge 11ba38764d
into 36b1cdd1b4
This commit is contained in:
commit
0aefe2674e
1 changed files with 17 additions and 2 deletions
|
@ -4,6 +4,13 @@
|
|||
# the license.
|
||||
#-----------------------------------------------------------------------------
|
||||
|
||||
# OS detection
|
||||
ifeq ($(OS),Windows_NT)
|
||||
detected_OS := Windows
|
||||
else
|
||||
detected_OS := $(shell sh -c 'uname -s 2>/dev/null || echo not')
|
||||
endif
|
||||
|
||||
CC = gcc
|
||||
CXX = g++
|
||||
LD = g++
|
||||
|
@ -49,7 +56,11 @@ ifeq ($(QTINCLUDES), )
|
|||
MOC = $(shell pkg-config --variable=moc_location QtCore)
|
||||
UIC = $(shell pkg-config --variable=uic_location QtCore)
|
||||
else
|
||||
CXXFLAGS += -std=c++11 -fPIC
|
||||
ifeq ($(detected_OS),Windows)
|
||||
CXXFLAGS += -std=c++11
|
||||
else
|
||||
CXXFLAGS += -std=c++11 -fPIC
|
||||
endif
|
||||
endif
|
||||
ifeq ($(QTINCLUDES), )
|
||||
# if both pkg-config commands failed, search in common places
|
||||
|
@ -59,7 +70,11 @@ ifeq ($(QTINCLUDES), )
|
|||
ifneq ($(wildcard $(QTDIR)/include/QtWidgets),)
|
||||
QTINCLUDES += -I$(QTDIR)/include/QtWidgets
|
||||
QTLDLIBS = -L$(QTDIR)/lib -lQt5Widgets -lQt5Gui -lQt5Core
|
||||
CXXFLAGS += -std=c++11 -fPIC
|
||||
ifeq ($(detected_OS),Windows)
|
||||
CXXFLAGS += -std=c++11
|
||||
else
|
||||
CXXFLAGS += -std=c++11 -fPIC
|
||||
endif
|
||||
endif
|
||||
MOC = $(QTDIR)/bin/moc
|
||||
UIC = $(QTDIR)/bin/uic
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue