File: Makefile

package info (click to toggle)
librdkafka 2.13.0-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 15,912 kB
  • sloc: ansic: 146,572; cpp: 13,007; sh: 4,018; python: 2,470; makefile: 606; java: 181
file content (55 lines) | stat: -rw-r--r-- 1,166 bytes parent folder | download | duplicates (4)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
PKGNAME=	librdkafka
LIBNAME=	librdkafka++
LIBVER=		1

CXXSRCS=	RdKafka.cpp ConfImpl.cpp HandleImpl.cpp \
		ConsumerImpl.cpp ProducerImpl.cpp KafkaConsumerImpl.cpp \
		TopicImpl.cpp TopicPartitionImpl.cpp MessageImpl.cpp \
		HeadersImpl.cpp QueueImpl.cpp MetadataImpl.cpp

HDRS=		rdkafkacpp.h

OBJS=		$(CXXSRCS:%.cpp=%.o)



all: lib check

# No linker script/symbol hiding for C++ library
DISABLE_LDS=y

MKL_NO_SELFCONTAINED_STATIC_LIB=y
include ../mklove/Makefile.base

# Use C++ compiler as linker rather than the default C compiler
CC_LD=$(CXX)

# OSX and Cygwin requires linking required libraries
ifeq ($(_UNAME_S),Darwin)
	FWD_LINKING_REQ=y
endif
ifeq ($(_UNAME_S),AIX)
	FWD_LINKING_REQ=y
endif
ifeq ($(shell uname -o 2>/dev/null),Cygwin)
	FWD_LINKING_REQ=y
endif

# Ignore previously defined library dependencies for the C library,
# we'll get those dependencies through the C library linkage.
LIBS := -L../src -lrdkafka
MKL_PKGCONFIG_REQUIRES_PRIVATE := rdkafka
MKL_PKGCONFIG_REQUIRES := rdkafka

CHECK_FILES+= $(LIBFILENAME) $(LIBNAME).a


file-check: lib
check: file-check

install: lib-install
uninstall: lib-uninstall

clean: lib-clean

-include $(DEPS)