summary |
shortlog |
log |
commit | commitdiff |
tree
raw |
patch |
inline | side by side (from parent 1:
1b75698)
This project compiles on Ubuntu with libusb-dev installed. Lets see if it compiles on OSX....
VPATH = ../../common
OBJDIR = obj
VPATH = ../../common
OBJDIR = obj
-LDLIBS = -L/opt/local/lib -L/usr/local/lib -lusb -lreadline -lpthread
-LDFLAGS = $(COMMON_FLAGS)
-CFLAGS = -std=gnu99 -I. -I../include -I../common -I/opt/local/include -Wall -Wno-unused-function $(COMMON_FLAGS) -g -O3
+ifeq ($(platform),Darwin)
+ LDLIBS = -L/opt/local/lib -L/usr/local/lib -lusb-1.0 -lreadline -lpthread
+ 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)
#include <stdint.h>
#include <stdbool.h>
#include <stdint.h>
#include <stdbool.h>
#include "usb_cmd.h"
extern unsigned char return_on_error;
#include "usb_cmd.h"
extern unsigned char return_on_error;