]> www.vanbest.org Git - sasc-ng.git/commitdiff
testing: fix order of Make.config inclusion in Makefile
authorleslie <unknown>
Sun, 2 Aug 2009 05:23:34 +0000 (13:23 +0800)
committerleslie <unknown>
Sun, 2 Aug 2009 05:23:34 +0000 (13:23 +0800)
testing/Makefile

index 72f02b9194af8cec423267e8a77c60a468ab152d..7aa7489b8e6f819729215b918972245b0815137f 100644 (file)
@@ -3,10 +3,6 @@
 
 VDRDIR = ../../../..
 
-### Allow user defined options to overwrite defaults:
-
--include $(VDRDIR)/Make.config
-
 ### The C++ compiler and options:
 
 CXX      ?= g++
@@ -14,11 +10,20 @@ CXXFLAGS ?= -g -march=pentium3 -O2 -Wall -Woverloaded-virtual
 
 ### Includes and Defines
 
+INCLUDES = -I.. -I$(VDRDIR)/include
+DEFINES  = -DAPIVERSNUM=$(APIVERSNUM) -DAPIVERSION='"$(APIVERSION)"' -D_GNU_SOURCE
+
+### Allow user defined options to overwrite defaults:
+
+-include $(VDRDIR)/Make.config
+-include ../Make.config
+
+### The version number of VDR (taken from VDR's "config.h"):
+
 APIVERSION = $(shell sed -ne '/define APIVERSION/ s/^.*"\(.*\)".*$$/\1/p' $(VDRDIR)/include/vdr/config.h)
 APIVERSNUM = $(shell sed -ne '/define APIVERSNUM/ s/^.[a-zA-Z ]*\([0-9]*\) .*$$/\1/p' $(VDRDIR)/include/vdr/config.h)
 
-INCLUDES = -I.. -I$(VDRDIR)/include
-DEFINES  = -DAPIVERSNUM=$(APIVERSNUM) -DAPIVERSION='"$(APIVERSION)"' -D_GNU_SOURCE
+### The object files (add further files here):
 
 OBJS = misc.o log.o override.o data.o crypto.o parse.o system.o system-common.o smartcard.o network.o filter.o version.o
 SHAREDOBJS = compat.o $(VDRDIR)/tools.o $(VDRDIR)/thread.o