mirror of
https://github.com/RfidResearchGroup/proxmark3.git
synced 2024-12-31 04:39:49 +08:00
ADD: a switch to detect if Qt4 or Qt5 is used.
This commit is contained in:
parent
908536d161
commit
e58c712c9e
1 changed files with 9 additions and 0 deletions
|
@ -37,6 +37,15 @@ LDLIBS += -ldl
|
|||
LUAPLATFORM = linux
|
||||
endif
|
||||
|
||||
# QT version, 4 or 5
|
||||
qtplatform = $(shell $(MOC) -v)
|
||||
ifneq (, $(findstring moc 5,$(qtplatform)))
|
||||
CXXFLAGS = -I$(QTDIR)/include -I$(QTDIR)/include/QtCore -I$(QTDIR)/include/QtGui -I$(QTDIR)/include/QtWidgets -I/mingw/include
|
||||
QTLDLIBS = -L$(QTDIR)/lib -lQt5Core -lQt5Gui -lQt5Widgets
|
||||
else
|
||||
CXXFLAGS = -I$(QTDIR)/include -I$(QTDIR)/include/QtCore -I$(QTDIR)/include/QtGui
|
||||
QTLDLIBS = -L$(QTDIR)/lib -lQtCore4 -lQtGui4
|
||||
endif
|
||||
|
||||
ifneq ($(QTLDLIBS),)
|
||||
QTGUI = $(OBJDIR)/proxgui.o $(OBJDIR)/proxguiqt.o $(OBJDIR)/proxguiqt.moc.o
|
||||
|
|
Loading…
Reference in a new issue