Skip to content
Snippets Groups Projects
Commit cefa6b75 authored by cnlohr's avatar cnlohr
Browse files

Fix minichlink compile.

parent e5dd001e
No related branches found
No related tags found
No related merge requests found
TOOLS:=minichlink minichlink.so TOOLS:=minichlink minichlink.so
CFLAGS:=-O0 -g3 -Wall CFLAGS:=-O0 -g3 -Wall -I.
C_S:=minichlink.c pgm-wch-linke.c pgm-esp32s2-ch32xx.c nhc-link042.c ardulink.c serial_dev.c pgm-b003fun.c minichgdb.c C_S:=minichlink.c pgm-wch-linke.c pgm-esp32s2-ch32xx.c nhc-link042.c ardulink.c serial_dev.c pgm-b003fun.c minichgdb.c
# General Note: To use with GDB, gdb-multiarch # General Note: To use with GDB, gdb-multiarch
...@@ -9,7 +9,7 @@ C_S:=minichlink.c pgm-wch-linke.c pgm-esp32s2-ch32xx.c nhc-link042.c ardulink.c ...@@ -9,7 +9,7 @@ C_S:=minichlink.c pgm-wch-linke.c pgm-esp32s2-ch32xx.c nhc-link042.c ardulink.c
ifeq ($(OS),Windows_NT) ifeq ($(OS),Windows_NT)
LDFLAGS:=-L. -lpthread -lusb-1.0 -lsetupapi -lws2_32 LDFLAGS:=-L. -lpthread -lusb-1.0 -lsetupapi -lws2_32
CFLAGS:=-Os -s -Wall -D_WIN32_WINNT=0x0600 CFLAGS:=-Os -s -Wall -D_WIN32_WINNT=0x0600 -I.
TOOLS:=minichlink.exe TOOLS:=minichlink.exe
else else
OS_NAME := $(shell uname -s | tr A-Z a-z) OS_NAME := $(shell uname -s | tr A-Z a-z)
...@@ -18,7 +18,7 @@ else ...@@ -18,7 +18,7 @@ else
endif endif
ifeq ($(OS_NAME),darwin) ifeq ($(OS_NAME),darwin)
LDFLAGS:=-lpthread -lusb-1.0 -framework CoreFoundation -framework IOKit LDFLAGS:=-lpthread -lusb-1.0 -framework CoreFoundation -framework IOKit
CFLAGS:=-O0 -Wall -Wno-asm-operand-widths -Wno-deprecated-declarations -Wno-deprecated-non-prototype -D__MACOSX__ CFLAGS:=-O0 -Wall -Wno-asm-operand-widths -Wno-deprecated-declarations -Wno-deprecated-non-prototype -D__MACOSX__ -I.
INCLUDES:=$(shell pkg-config --cflags-only-I libusb-1.0) INCLUDES:=$(shell pkg-config --cflags-only-I libusb-1.0)
LIBINCLUDES:=$(shell pkg-config --libs-only-L libusb-1.0) LIBINCLUDES:=$(shell pkg-config --libs-only-L libusb-1.0)
INCS:=$(INCLUDES) $(LIBINCLUDES) INCS:=$(INCLUDES) $(LIBINCLUDES)
......
#ifndef _FUNCONFIG_H
#define _FUNCONFIG_H
#define MINICHLINK 1
#endif
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment