| 1 |
PKGNAME= librdkafka |
| 2 |
LIBNAME= librdkafka++ |
| 3 |
LIBVER= 1 |
| 4 |
|
| 5 |
CXXSRCS= RdKafka.cpp ConfImpl.cpp HandleImpl.cpp \ |
| 6 |
ConsumerImpl.cpp ProducerImpl.cpp KafkaConsumerImpl.cpp \ |
| 7 |
TopicImpl.cpp TopicPartitionImpl.cpp MessageImpl.cpp \ |
| 8 |
HeadersImpl.cpp QueueImpl.cpp MetadataImpl.cpp |
| 9 |
|
| 10 |
HDRS= rdkafkacpp.h |
| 11 |
|
| 12 |
OBJS= $(CXXSRCS:%.cpp=%.o) |
| 13 |
|
| 14 |
|
| 15 |
|
| 16 |
all: lib check |
| 17 |
|
| 18 |
# No linker script/symbol hiding for C++ library |
| 19 |
DISABLE_LDS=y |
| 20 |
|
| 21 |
MKL_NO_SELFCONTAINED_STATIC_LIB=y |
| 22 |
include ../mklove/Makefile.base |
| 23 |
|
| 24 |
# Use C++ compiler as linker rather than the default C compiler |
| 25 |
CC_LD=$(CXX) |
| 26 |
|
| 27 |
# OSX and Cygwin requires linking required libraries |
| 28 |
ifeq ($(_UNAME_S),Darwin) |
| 29 |
FWD_LINKING_REQ=y |
| 30 |
endif |
| 31 |
ifeq ($(_UNAME_S),AIX) |
| 32 |
FWD_LINKING_REQ=y |
| 33 |
endif |
| 34 |
ifeq ($(shell uname -o 2>/dev/null),Cygwin) |
| 35 |
FWD_LINKING_REQ=y |
| 36 |
endif |
| 37 |
|
| 38 |
# Ignore previously defined library dependencies for the C library, |
| 39 |
# we'll get those dependencies through the C library linkage. |
| 40 |
LIBS := -L../src -lrdkafka |
| 41 |
MKL_PKGCONFIG_REQUIRES_PRIVATE := rdkafka |
| 42 |
MKL_PKGCONFIG_REQUIRES := rdkafka |
| 43 |
|
| 44 |
CHECK_FILES+= $(LIBFILENAME) $(LIBNAME).a |
| 45 |
|
| 46 |
|
| 47 |
file-check: lib |
| 48 |
check: file-check |
| 49 |
|
| 50 |
install: lib-install |
| 51 |
uninstall: lib-uninstall |
| 52 |
|
| 53 |
clean: lib-clean |
| 54 |
|
| 55 |
-include $(DEPS) |