From: leslie Date: Sun, 11 Sep 2011 12:34:54 +0000 (+0800) Subject: disable hddevice support if dag's device detected X-Git-Tag: upstream/620~23 X-Git-Url: http://www.vanbest.org/gitweb/?a=commitdiff_plain;h=47f85ec509740f33d4fe11b6e245074545421fde;p=sasc-ng.git disable hddevice support if dag's device detected --- diff --git a/Makefile b/Makefile index b76ffc8..e92af9d 100644 --- a/Makefile +++ b/Makefile @@ -125,8 +125,11 @@ endif DEVPLUGOBJS += device-sd.o HAVE_HD := $(wildcard ../dvbhddevice/dvbhddevice.c) ifneq ($(strip $(HAVE_HD)),) - DEFINES += -DWITH_HDDVB - DEVPLUGTARGETS += $(LIBDIR)/libsc-dvbhddevice-$(SCAPIVERS).so.$(APIVERSION) + HDVERS := $(shell sed -ne '/*VERSION/ s/^.*=.*"\(.*\)".*$$/\1/p' ../dvbhddevice/dvbhddevice.c) + ifeq ($(findstring dag,$(HDVERS)),) + DEFINES += -DWITH_HDDVB + DEVPLUGTARGETS += $(LIBDIR)/libsc-dvbhddevice-$(SCAPIVERS).so.$(APIVERSION) + endif endif DEVPLUGOBJS += device-hd.o