mirror of
https://github.com/RfidResearchGroup/proxmark3.git
synced 2025-08-21 05:43:48 -07:00
FIX: the HID-Flasher depends on libusb to be able to compile On OSX the 'include paths' is different when using homebrew.
This project compiles on Ubuntu with libusb-dev installed. Lets see if it compiles on OSX....
This commit is contained in:
parent
1b75698cb7
commit
360a5b1b3c
2 changed files with 9 additions and 4 deletions
|
@ -12,10 +12,15 @@ CXX=g++
|
||||||
VPATH = ../../common
|
VPATH = ../../common
|
||||||
OBJDIR = obj
|
OBJDIR = obj
|
||||||
|
|
||||||
LDLIBS = -L/opt/local/lib -L/usr/local/lib -lusb -lreadline -lpthread
|
ifeq ($(platform),Darwin)
|
||||||
LDFLAGS = $(COMMON_FLAGS)
|
LDLIBS = -L/opt/local/lib -L/usr/local/lib -lusb-1.0 -lreadline -lpthread
|
||||||
CFLAGS = -std=gnu99 -I. -I../include -I../common -I/opt/local/include -Wall -Wno-unused-function $(COMMON_FLAGS) -g -O3
|
CFLAGS = -std=gnu99 -I. -I../include -I../common -I/usr/local/include -I/opt/local/include -Wall -Wno-unused-function $(COMMON_FLAGS) -g -O3
|
||||||
|
else
|
||||||
|
LDLIBS = -L/opt/local/lib -L/usr/local/lib -lusb -lreadline -lpthread
|
||||||
|
CFLAGS = -std=gnu99 -I. -I../include -I../common -I/opt/local/include -Wall -Wno-unused-function $(COMMON_FLAGS) -g -O3
|
||||||
|
endif
|
||||||
|
|
||||||
|
LDFLAGS = $(COMMON_FLAGS)
|
||||||
CXXFLAGS =
|
CXXFLAGS =
|
||||||
QTLDLIBS =
|
QTLDLIBS =
|
||||||
|
|
||||||
|
|
|
@ -13,7 +13,7 @@
|
||||||
|
|
||||||
#include <stdint.h>
|
#include <stdint.h>
|
||||||
#include <stdbool.h>
|
#include <stdbool.h>
|
||||||
//#include <usb.h>
|
#include <usb.h>
|
||||||
#include "usb_cmd.h"
|
#include "usb_cmd.h"
|
||||||
|
|
||||||
extern unsigned char return_on_error;
|
extern unsigned char return_on_error;
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue