mirror of
https://github.com/Proxmark/proxmark3.git
synced 2025-08-22 22:23:38 -07:00
fix compiler warning for windows
This commit is contained in:
parent
36b1cdd1b4
commit
11ba38764d
1 changed files with 17 additions and 2 deletions
|
@ -4,6 +4,13 @@
|
||||||
# the license.
|
# 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
|
CC = gcc
|
||||||
CXX = g++
|
CXX = g++
|
||||||
LD = g++
|
LD = g++
|
||||||
|
@ -49,7 +56,11 @@ ifeq ($(QTINCLUDES), )
|
||||||
MOC = $(shell pkg-config --variable=moc_location QtCore)
|
MOC = $(shell pkg-config --variable=moc_location QtCore)
|
||||||
UIC = $(shell pkg-config --variable=uic_location QtCore)
|
UIC = $(shell pkg-config --variable=uic_location QtCore)
|
||||||
else
|
else
|
||||||
CXXFLAGS += -std=c++11 -fPIC
|
ifeq ($(detected_OS),Windows)
|
||||||
|
CXXFLAGS += -std=c++11
|
||||||
|
else
|
||||||
|
CXXFLAGS += -std=c++11 -fPIC
|
||||||
|
endif
|
||||||
endif
|
endif
|
||||||
ifeq ($(QTINCLUDES), )
|
ifeq ($(QTINCLUDES), )
|
||||||
# if both pkg-config commands failed, search in common places
|
# if both pkg-config commands failed, search in common places
|
||||||
|
@ -59,7 +70,11 @@ ifeq ($(QTINCLUDES), )
|
||||||
ifneq ($(wildcard $(QTDIR)/include/QtWidgets),)
|
ifneq ($(wildcard $(QTDIR)/include/QtWidgets),)
|
||||||
QTINCLUDES += -I$(QTDIR)/include/QtWidgets
|
QTINCLUDES += -I$(QTDIR)/include/QtWidgets
|
||||||
QTLDLIBS = -L$(QTDIR)/lib -lQt5Widgets -lQt5Gui -lQt5Core
|
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
|
endif
|
||||||
MOC = $(QTDIR)/bin/moc
|
MOC = $(QTDIR)/bin/moc
|
||||||
UIC = $(QTDIR)/bin/uic
|
UIC = $(QTDIR)/bin/uic
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue