summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHolger Steinhaus <hsteinhaus@gmx.de>2015-11-11 20:38:39 +0100
committerHolger Steinhaus <hsteinhaus@gmx.de>2015-11-11 20:38:39 +0100
commitfdf283793778ead047e15515cd3538fdd7b03d60 (patch)
tree4251e24ed831aa24ddca029be5c479f8aa8cd670
parentf01774accb4606de607d9597f40144d78eb62243 (diff)
downloadvdr-plugin-mcli-fdf283793778ead047e15515cd3538fdd7b03d60.tar.gz
vdr-plugin-mcli-fdf283793778ead047e15515cd3538fdd7b03d60.tar.bz2
Makefile fixes again - seems to compile cleanly now with -j > 1
-rw-r--r--Makefile34
-rw-r--r--mcast/client/Makefile4
2 files changed, 16 insertions, 22 deletions
diff --git a/Makefile b/Makefile
index a1776d9..3edc75d 100644
--- a/Makefile
+++ b/Makefile
@@ -45,24 +45,19 @@ SOFILE = libvdr-$(PLUGIN).so
### Includes and Defines (add further entries here):
-ifdef RBMINI
- XML_INC := -I/usr/arm-linux-gnueabi/include/libxml2
- XML_LIB := -lxml2
-else
- XML_INC := `xml2-config --cflags`
- XML_LIB := `xml2-config --libs`
-endif
+.PHONY: i18n all clean
+XML_INC := `xml2-config --cflags`
+XML_LIB := `xml2-config --libs`
ifdef MCLI_SHARED
- LIBS = -lmcli -Lmcast/client $(XML_LIB)
+ LIBS = -Lmcast/client -lmcli $(XML_LIB)
else
LIBS = mcast/client/libmcli.a $(XML_LIB)
endif
INCLUDES += -I$(VDRDIR)/include -I. $(XML_INC)
-
DEFINES += -D_GNU_SOURCE -DPLUGIN_NAME_I18N='"$(PLUGIN)"'
# -DDEVICE_ATTRIBUTES
@@ -72,15 +67,16 @@ OBJS = $(PLUGIN).o cam_menu.o device.o filter.o packetbuffer.o
### The main target:
-all: $(SOFILE)
+plug:
+ $(MAKE) libvdr-$(PLUGIN).so
-plug: libmcli.so libvdr-$(PLUGIN).so
-
-all: libmcli.so libvdr-$(PLUGIN).so i18n
+all:
+ $(MAKE) libmcli.so
+ $(MAKE) libvdr-$(PLUGIN).so
+ $(MAKE) i18n
libmcli.a libmcli.so:
- $(MAKE) -C mcast/client/
-
+ $(MAKE) -C mcast/client/ libmcli
### Implicit rules:
@@ -118,21 +114,17 @@ $(I18Nmsgs): $(LOCALEDIR)/%/LC_MESSAGES/vdr-$(PLUGIN).mo: $(PODIR)/%.mo
@mkdir -p $(dir $@)
cp $< $@
-.PHONY: i18n
i18n: $(I18Nmsgs) $(I18Npot)
i18n-dist: $(I18Nmsgs)
### Targets:
-$(SOFILE): $(OBJS)
- $(CXX) $(CXXFLAGS) $(LDFLAGS) -shared $(OBJS) -o $@
-
-libvdr-$(PLUGIN).so: $(OBJS) libmcli.a
+$(SOFILE): $(OBJS) libmcli.a
ifeq ($(APPLE_DARWIN), 1)
$(CXX) $(CXXFLAGS) $(OBJS) $(LIBS) -o $@
@cp $@ $(LIBDIR)/$@.$(APIVERSION)
else
- $(CXX) $(CXXFLAGS) -shared $(OBJS) $(LIBS) -o $@
+ $(CXX) $(CXXFLAGS) $(LDFLAGS) -shared $(OBJS) $(LIBS) -o $@
@cp --remove-destination $@ $(LIBDIR)/$@.$(APIVERSION)
endif
diff --git a/mcast/client/Makefile b/mcast/client/Makefile
index 64b6873..3bbc70c 100644
--- a/mcast/client/Makefile
+++ b/mcast/client/Makefile
@@ -106,7 +106,9 @@ MCLI_SOBJS := $(MCLI_SOBJS) dvblo_handler.o input.o
endif
endif
-all: lib$(MCLI) $(MCLI)-shared
+all:
+ $(MAKE) lib$(MCLI)
+ $(MAKE) $(MCLI)-shared
static: $(MCLI)-static