From: Andreas Ă–man Date: Sun, 12 Aug 2007 11:54:28 +0000 (+0000) Subject: Improve build system slightly X-Git-Tag: 2.12~1503 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=593e61dbd50c1c26a3ad3a60dfd856c500f825ea;p=thirdparty%2Ftvheadend.git Improve build system slightly - Dont use any ugly "../.." -include or -lib paths - Link using --rpath to avoid having to set LD_LIBRARY_PATH - Declare static / dynamic linking flags in top level configure --- diff --git a/Makefile b/Makefile index eedba7901..07eb7e9e7 100644 --- a/Makefile +++ b/Makefile @@ -12,11 +12,11 @@ SRCS += output_client.c output_multicast.c PROG = tvhead CFLAGS += -g -Wall -Werror -O2 -CFLAGS += -I$(CURDIR)/../install/include +CFLAGS += -I$(INCLUDES_INSTALL_BASE) CFLAGS += -Wno-deprecated-declarations CFLAGS += -D_LARGEFILE64_SOURCE CFLAGS += -DENABLE_INPUT_IPTV -DENABLE_INPUT_DVB -LDFLAGS += -L$(CURDIR)/../install/lib +LDFLAGS += -L$(LIBS_INSTALL_BASE) DLIBS += -lhts @@ -56,7 +56,7 @@ install: ${PROG}: $(.OBJDIR) $(OBJS) Makefile cd $(.OBJDIR) && $(CC) $(LDFLAGS) -o $@ $(OBJS) \ - -Wl,-Bstatic $(SLIBS) -Wl,-Bdynamic $(DLIBS) + $(STATIC_LINKFLAGS) $(SLIBS) $(DYNAMIC_LINKFLAGS) $(DLIBS) $(.OBJDIR): mkdir $(.OBJDIR)