summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--examples/nanohttp/Makefile.am8
1 files changed, 5 insertions, 3 deletions
diff --git a/examples/nanohttp/Makefile.am b/examples/nanohttp/Makefile.am
index 221f469..2901d25 100644
--- a/examples/nanohttp/Makefile.am
+++ b/examples/nanohttp/Makefile.am
@@ -1,15 +1,17 @@
bin_PROGRAMS=httpget httpgetcb httppost
INCLUDES=-I$(top_srcdir)/
+LDFLAGS=-L$(top_builddir)/nanohttp -lnanohttp-$(GENERIC_API_VERSION) \
+ $(LIBSOCKET) $(LIBNSL)
httpget_SOURCES=httpget.c
-httpget_LDFLAGS=-L$(top_builddir)/nanohttp -lnanohttp-$(GENERIC_API_VERSION)
+httpget_LDFLAGS=$(LDFLAGS)
httpgetcb_SOURCES=httpgetcb.c
-httpgetcb_LDFLAGS=-L$(top_builddir)/nanohttp -lnanohttp-$(GENERIC_API_VERSION)
+httpgetcb_LDFLAGS=$(LDFLAGS)
httppost_SOURCES=httppost.c
-httppost_LDFLAGS=-L$(top_builddir)/nanohttp -lnanohttp-$(GENERIC_API_VERSION)
+httppost_LDFLAGS=$(LDFLAGS)