Commit 4f5584d7 authored by Rich Prohaska's avatar Rich Prohaska Committed by Yoni Fogel

#4536 build examples with shared or static tokudb libs refs[t:4536]

git-svn-id: file:///svn/toku/tokudb@44780 c7de825b-a66e-492c-adef-691d508d4ae1
parent 6418c5c8
......@@ -2,9 +2,14 @@ SRCS = $(wildcard *.c)
TARGETS = $(patsubst %.c,%,$(SRCS)) $(patsubst %.c,%-bdb,$(SRCS))
CPPFLAGS = -I../include -D_GNU_SOURCE
CFLAGS = -g -std=c99 -Wall
ifeq ($(USE_STATIC_LIBS),1)
LIBTOKUDB = tokudb_static
LIBTOKUPORTABILITY = tokuportability_static
else
LIBTOKUDB = tokudb
LIBTOKUPORTABILITY = tokuportability
LDFLAGS = -L../lib -l$(LIBTOKUDB) -l$(LIBTOKUPORTABILITY) -Wl,-rpath,../lib
endif
LDFLAGS = -L../lib -l$(LIBTOKUDB) -l$(LIBTOKUPORTABILITY) -Wl,-rpath,../lib -lpthread -lz -ldl
default local: $(TARGETS)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment