Skip to content

Commit

Permalink
Make libs compile cleanly
Browse files Browse the repository at this point in the history
  • Loading branch information
Beirdo committed Apr 27, 2012
1 parent fe43e40 commit 9d02591
Show file tree
Hide file tree
Showing 3 changed files with 47 additions and 6 deletions.
7 changes: 3 additions & 4 deletions mythtv/Makefile
@@ -1,8 +1,7 @@
include config.mak

MAKE_SUBDIRS = external/FFmpeg external/zeromq
QT_SUBDIRS = libs filters html programs themes i18n locales external/qjson
QT_SUBDIRS += external/nzmqt/src
MAKE_SUBDIRS = external
QT_SUBDIRS = libs filters html programs themes i18n locales

ifdef CONFIG_BINDINGS_PERL
MAKE_SUBDIRS += bindings/perl
Expand Down Expand Up @@ -40,7 +39,7 @@ libs/libmythbase/version.h: version.sh force
sh version.sh $(PWD)

# explicit subdir dependencies
libs: external/FFmpeg
libs: external
filters: libs
programs: libs filters

Expand Down
42 changes: 42 additions & 0 deletions mythtv/external/Makefile
@@ -0,0 +1,42 @@
include ../config.mak

SUBDIRS = FFmpeg zeromq nzmqt qjson

SUBDIRS_ALL = $(addsuffix -all, ${SUBDIRS})
SUBDIRS_INSTALL = $(addsuffix -install, ${SUBDIRS})
SUBDIRS_UNINSTALL = $(addsuffix -uninstall, ${SUBDIRS})
SUBDIRS_CLEAN = $(addsuffix -clean, ${SUBDIRS})
SUBDIRS_DISTCLEAN = $(addsuffix -distclean, ${SUBDIRS})

default: all
all: ${SUBDIRS_ALL}
install: ${SUBDIRS_INSTALL}
uninstall: ${SUBDIRS_UNINSTALL}
clean: ${SUBDIRS_CLEAN}
distclean: ${SUBDIRS_DISTCLEAN}


FFmpeg-all FFmpeg-install FFmpeg-uninstall FFmpeg-clean FFmpeg-distclean:
${MAKE} -C FFmpeg ${@:FFmpeg-%=%}

zeromq-all:
(cd zeromq ; ./configure --prefix=${PREFIX})
${MAKE} -C zeromq all

zeromq-install zeromq-uninstall zeromq-clean zeromq-distclean:
${MAKE} -C zeromq ${@:zeromq-%=%}

nzmqt-all:
(cd nzmqt/src ; ${QMAKE})
${MAKE} -C nzmqt/src all

nzmqt-install nzmqt-uninstall nzmqt-clean nzmqt-distclean:
${MAKE} -C nzmqt/src ${@:nzmqt-%=%}

qjson-all:
(cd qjson ; ${QMAKE})
${MAKE} -C qjson all

qjson-install qjson-uninstall qjson-clean qjson-distclean:
${MAKE} -C qjson ${@:qjson-%=%}

4 changes: 2 additions & 2 deletions mythtv/external/nzmqt/src/nzmqt.pro
Expand Up @@ -34,10 +34,10 @@ LIBS += -lzmq

INCLUDEPATH += \
../include \
$${PREFIX}/include
../../zeromq/include

QMAKE_LIBDIR += \
${{LIBDIR}
../../zeromq/src/.libs

inc.files += ../include/nzmqt/nzmqt.hpp
inc.path = $${PREFIX}/include/
Expand Down

0 comments on commit 9d02591

Please sign in to comment.