Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
ruanhaishen
hiredis
Commits
d756f68a
Commit
d756f68a
authored
Sep 07, 2022
by
michael-grunder
Committed by
Michael Grunder
Sep 07, 2022
Browse files
Add libhv example to our standard Makefile
See #904
parent
a6691671
Changes
1
Hide whitespace changes
Inline
Side-by-side
Makefile
View file @
d756f68a
...
@@ -180,6 +180,9 @@ hiredis-example-libevent-ssl: examples/example-libevent-ssl.c adapters/libevent.
...
@@ -180,6 +180,9 @@ hiredis-example-libevent-ssl: examples/example-libevent-ssl.c adapters/libevent.
hiredis-example-libev
:
examples/example-libev.c adapters/libev.h $(STLIBNAME)
hiredis-example-libev
:
examples/example-libev.c adapters/libev.h $(STLIBNAME)
$(CC)
-o
examples/
$@
$(REAL_CFLAGS)
-I
.
$<
-lev
$(STLIBNAME)
$(REAL_LDFLAGS)
$(CC)
-o
examples/
$@
$(REAL_CFLAGS)
-I
.
$<
-lev
$(STLIBNAME)
$(REAL_LDFLAGS)
hiredis-example-libhv
:
examples/example-libhv.c adapters/libhv.h $(STLIBNAME)
$(CC)
-o
examples/
$@
$(REAL_CFLAGS)
-I
.
$<
-lhv
$(STLIBNAME)
$(REAL_LDFLAGS)
hiredis-example-glib
:
examples/example-glib.c adapters/glib.h $(STLIBNAME)
hiredis-example-glib
:
examples/example-glib.c adapters/glib.h $(STLIBNAME)
$(CC)
-o
examples/
$@
$(REAL_CFLAGS)
-I
.
$<
$(
shell
pkg-config
--cflags
--libs
glib-2.0
)
$(STLIBNAME)
$(REAL_LDFLAGS)
$(CC)
-o
examples/
$@
$(REAL_CFLAGS)
-I
.
$<
$(
shell
pkg-config
--cflags
--libs
glib-2.0
)
$(STLIBNAME)
$(REAL_LDFLAGS)
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment