aboutsummaryrefslogtreecommitdiffstats
path: root/test/Makefile
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--test/Makefile15
1 files changed, 4 insertions, 11 deletions
diff --git a/test/Makefile b/test/Makefile
index 61f92e19..d292b876 100644
--- a/test/Makefile
+++ b/test/Makefile
@@ -1,20 +1,13 @@
PROJECT:=usdx-tests
TOP:=..
-headers:=$(wildcard *.hpp) $(wildcard */*.hpp) $(wildcard $(TOP)/src/*/*/*.hpp) \
- $(wildcard $(TOP)/src/*/*.hpp)
+headers:=$(wildcard *.hpp) $(wildcard */*.hpp)
+sources:=$(wildcard *.cpp) $(wildcard */*.cpp)
-sources:=$(wildcard *.cpp) $(wildcard */*.cpp) $(wildcard $(TOP)/src/*/*/*.cpp) \
- $(wildcard $(TOP)/src/*/*.cpp)
-
-deps:=$(sources:.cpp=.d)
-
-CXXFLAGS:=-Wall -Werror -I$(TOP)/src -I$(TOP)/src/base -I$(TOP)/src/menu -I$(TOP)/src/media -I$(TOP)/src/screens -I$(TOP)/src/frames -I$(TOP)/src/utils $(shell pkg-config ftgl --cflags) -g
-LDFLAGS:=-lsqlite3 -lSDL $(shell log4cpp-config --libs) -lboost_program_options-mt -lboost_filesystem-mt -lboost_thread-mt -lSDL_image -lSDL_gfx -lcppunit -lGL $(shell pkg-config ftgl --libs)
TARGET:=$(PROJECT)
+include ${TOP}/Makefile.inc
-objects:=$(sources:.cpp=.o)
-
+LDFLAGS+=-lcppunit
CXXFLAGS-COVERAGE:=-fprofile-arcs -ftest-coverage
LDFLAGS-COVERAGE:=-coverage
TARGET-COVERAGE:=$(TARGET)-coverage