From 1a0cee4e9dcdb2e40f2154b87dbb6a37d9ff1f66 Mon Sep 17 00:00:00 2001 From: Uwe Bonnes Date: Fri, 27 Mar 2020 22:49:36 +0100 Subject: [PATCH] pc-hosted: Clean up Makefile.inc. --- src/platforms/pc-hosted/Makefile.inc | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-) diff --git a/src/platforms/pc-hosted/Makefile.inc b/src/platforms/pc-hosted/Makefile.inc index 2ddb9fb6..3867e805 100644 --- a/src/platforms/pc-hosted/Makefile.inc +++ b/src/platforms/pc-hosted/Makefile.inc @@ -1,14 +1,11 @@ TARGET=blackmagic_hosted SYS = $(shell $(CC) -dumpmachine) -CFLAGS += -DPC_HOSTED -DNO_LIBOPENCM3 -DENABLE_DEBUG -I -CFLAGS += $(shell pkg-config --cflags libftdi1) +CFLAGS += -DPC_HOSTED -DNO_LIBOPENCM3 -DENABLE_DEBUG CFLAGS +=-I ./target -I./platforms/pc -LDFLAGS += $(shell pkg-config --libs libftdi1) ifneq (, $(findstring mingw, $(SYS))) -LDFLAGS += -lusb-1.0 -lws2_32 -CFLAGS += -Wno-cast-function-type +LDFLAGS += -lws2_32 else ifneq (, $(findstring cygwin, $(SYS))) -LDFLAGS += -lusb-1.0 -lws2_32 +LDFLAGS += -lws2_32 endif VPATH += platforms/pc SRC += cl_utils.c timing.c utils.c