Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
C
ch32v003fun
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package Registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Andreas Horn
ch32v003fun
Commits
cefa6b75
Commit
cefa6b75
authored
1 year ago
by
cnlohr
Browse files
Options
Downloads
Patches
Plain Diff
Fix minichlink compile.
parent
e5dd001e
No related branches found
Branches containing commit
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
minichlink/Makefile
+3
-3
3 additions, 3 deletions
minichlink/Makefile
minichlink/funconfig.h
+7
-0
7 additions, 0 deletions
minichlink/funconfig.h
with
10 additions
and
3 deletions
minichlink/Makefile
+
3
−
3
View file @
cefa6b75
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
)
...
...
This diff is collapsed.
Click to expand it.
minichlink/funconfig.h
0 → 100644
+
7
−
0
View file @
cefa6b75
#ifndef _FUNCONFIG_H
#define _FUNCONFIG_H
#define MINICHLINK 1
#endif
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment