Browse Source

Cleanup Makefiles for hosted bmp on darwin

pull/715/head
Matthew Skolaut 4 years ago
committed by UweBonnes
parent
commit
7e1b0321e2
  1. 2
      Makefile
  2. 8
      src/platforms/hosted/Makefile.inc

2
Makefile

@ -13,7 +13,7 @@ ifeq ($(PROBE_HOST), pc-stlinkv2)
PC_HOSTED = true PC_HOSTED = true
NO_LIBOPENCM3 = true NO_LIBOPENCM3 = true
endif endif
ifeq ($(PROBE_HOST), pc-hosted) ifeq ($(PROBE_HOST), hosted)
PC_HOSTED = true PC_HOSTED = true
NO_LIBOPENCM3 = true NO_LIBOPENCM3 = true
endif endif

8
src/platforms/hosted/Makefile.inc

@ -15,10 +15,10 @@ SRC += serial_win.c
LDFLAGS += -lws2_32 LDFLAGS += -lws2_32
LDFLAGS += -lsetupapi LDFLAGS += -lsetupapi
#https://github.com/dmlc/xgboost/issues/1945 indicates macosx as indicator #https://github.com/dmlc/xgboost/issues/1945 indicates macosx as indicator
else ifneq (filter, macosx darwin, $(SYS))) else ifneq (filter, macosx darwin, $(SYS))
LDFLAGS += -lsetupapi SRC += serial_unix.c
LDFLAGS += hidapi/mac/.libs/libhidapi.a -framework IOKit LDFLAGS += -lhidapi
LDFLAGS += -framework CoreFoundation hidapi/mac/.libs/libhidapi.a LDFLAGS += -framework CoreFoundation
CFLAGS += -Ihidapi/hidapi CFLAGS += -Ihidapi/hidapi
endif endif

Loading…
Cancel
Save