parent
0aedff6623
commit
2eef202ee1
|
@ -1,6 +1,7 @@
|
||||||
SYS = $(shell $(CC) -dumpmachine)
|
SYS = $(shell $(CC) -dumpmachine)
|
||||||
CFLAGS += -DPC_HOSTED -DNO_LIBOPENCM3 -DENABLE_DEBUG
|
CFLAGS += -DPC_HOSTED -DNO_LIBOPENCM3 -DENABLE_DEBUG
|
||||||
LDFLAGS += -lftdi1
|
CFLAGS += $(shell pkg-config --cflags libftdi1)
|
||||||
|
LDFLAGS += $(shell pkg-config --libs libftdi1)
|
||||||
ifneq (, $(findstring mingw, $(SYS)))
|
ifneq (, $(findstring mingw, $(SYS)))
|
||||||
LDFLAGS += -lusb-1.0 -lws2_32
|
LDFLAGS += -lusb-1.0 -lws2_32
|
||||||
else ifneq (, $(findstring cygwin, $(SYS)))
|
else ifneq (, $(findstring cygwin, $(SYS)))
|
||||||
|
|
|
@ -1,7 +1,8 @@
|
||||||
TARGET=blackmagic_hosted
|
TARGET=blackmagic_hosted
|
||||||
SYS = $(shell $(CC) -dumpmachine)
|
SYS = $(shell $(CC) -dumpmachine)
|
||||||
CFLAGS += -DPC_HOSTED -DNO_LIBOPENCM3 -DENABLE_DEBUG
|
CFLAGS += -DPC_HOSTED -DNO_LIBOPENCM3 -DENABLE_DEBUG
|
||||||
LDFLAGS += -lftdi1
|
CFLAGS += $(shell pkg-config --cflags libftdi1)
|
||||||
|
LDFLAGS += $(shell pkg-config --libs libftdi1)
|
||||||
ifneq (, $(findstring mingw, $(SYS)))
|
ifneq (, $(findstring mingw, $(SYS)))
|
||||||
LDFLAGS += -lusb-1.0 -lws2_32
|
LDFLAGS += -lusb-1.0 -lws2_32
|
||||||
CFLAGS += -Wno-cast-function-type
|
CFLAGS += -Wno-cast-function-type
|
||||||
|
|
Loading…
Reference in New Issue