Skip to content
Snippets Groups Projects
Commit 4b414999 authored by Jan Trávníček's avatar Jan Trávníček
Browse files

test for sharedlibrary existence

parent 8aac13fe
No related branches found
No related tags found
No related merge requests found
......@@ -31,10 +31,16 @@ ifneq (0, $(TCLAP_EXISTS))
$(error You need tclap installed)
endif
 
TCLAP_EXISTS = $(shell g++ -c -o /dev/null -xc++ - <<< \\\#include\ \<cppunit/Test.h\> 2>/dev/null; echo $$?)
ifneq (0, $(TCLAP_EXISTS))
$(error You need tclap installed)
CPPUNIT_EXISTS = $(shell g++ -c -o /dev/null -xc++ - <<< \\\#include\ \<cppunit/Test.h\> 2>/dev/null; echo $$?)
ifneq (0, $(CPPUNIT_EXISTS))
$(error You need cppunit installed)
endif
CPPUNIT_SO_TMP = $(shell ld --verbose | grep SEARCH | tr \ \\\n | sed \s/SEARCH_DIR\(\"\\\(.*\\\)\"\)\;/\\\1/g\ | sort -u | sed \s/$$/\\/libcppunit.so/g\)
CPPUNIT_SO_EXISTS = $(shell ls $(CPPUNIT_SO_TMP) 2>/dev/null | wc -l)
ifeq (0, $(CPPUNIT_SO_EXISTS))
$(error You need cppunit installed)
endif
 
SUBDIRS_WITH_MAKE = $(dir $(wildcard */makefile))
 
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment