diff options
author | bju <bju@maxi.fritz.box> | 2014-01-23 22:05:58 +0100 |
---|---|---|
committer | bju <bju@maxi.fritz.box> | 2014-01-23 22:05:58 +0100 |
commit | b58cae86e52d1f34c8e007e04f2dbc28650d8789 (patch) | |
tree | 2fd8c5739f7ab4f76279a61dec6539a8532b486d /vdr-vdrmanager/Makefile | |
parent | 612e0e00b8d55b70d4b83d13fc75e7ddd78d2b58 (diff) | |
download | vdr-manager-b58cae86e52d1f34c8e007e04f2dbc28650d8789.tar.gz vdr-manager-b58cae86e52d1f34c8e007e04f2dbc28650d8789.tar.bz2 |
- Giving VDRMANAGER_USE_{SSL,GZIP,ZLIB}=0 (default is 1) to the make call
SSL support and the compression methods can be disabled. This eliminates
the compile time and also the runtime dependencies.
- The Gentoo ebuils uses the USE flags "ssl", "gzip" and "zlib" to control
the SSL and compress features.
Diffstat (limited to 'vdr-vdrmanager/Makefile')
-rw-r--r-- | vdr-vdrmanager/Makefile | 21 |
1 files changed, 20 insertions, 1 deletions
diff --git a/vdr-vdrmanager/Makefile b/vdr-vdrmanager/Makefile index a5119ce..0e483f1 100644 --- a/vdr-vdrmanager/Makefile +++ b/vdr-vdrmanager/Makefile @@ -45,6 +45,25 @@ SOFILE = libvdr-$(PLUGIN).so -DEFINES += -D_GNU_SOURCE -DPLUGIN_NAME_I18N='"$(PLUGIN)"' +### Conditionally definitions + +VDRMANAGER_USE_SSL := 1 +ifneq ($(VDRMANAGER_USE_SSL), 0) +ADDITIONAL_LIBS = $(shell pkg-config --libs openssl) +DEFINES += -DVDRMANAGER_USE_SSL=$(VDRMANAGER_USE_SSL) +endif + +VDRMANAGER_USE_ZLIB := 1 +ifneq ($(VDRMANAGER_USE_ZLIB), 0) +ADDITIONAL_LIBS += $(shell pkg-config --libs zlib) +DEFINES += -DVDRMANAGER_USE_ZLIB=$(VDRMANAGER_USE_ZLIB) +endif + +VDRMANAGER_USE_GZIP := 1 +ifneq ($(VDRMANAGER_USE_GZIP), 0) +DEFINES += -DVDRMANAGER_USE_GZIP=$(VDRMANAGER_USE_GZIP) +endif + ### The object files (add further files here): OBJS = $(PLUGIN).o sock.o serversock.o clientsock.o vdrmanagerthread.o select.o handler.o helpers.o compressor.o @@ -96,7 +115,7 @@ install-i18n: $(I18Nmsgs) ### Targets: $(SOFILE): $(OBJS) - $(CXX) $(CXXFLAGS) $(LDFLAGS) -shared $(OBJS) -o $@ -lz -lssl + $(CXX) $(CXXFLAGS) $(LDFLAGS) -shared $(OBJS) -o $@ $(ADDITIONAL_LIBS) install-lib: $(SOFILE) install -D $^ $(LIBDIR)/$^.$(APIVERSION) |