test/Makefile
author vb
Sun, 08 Feb 2015 11:33:04 -0500
changeset 48 9ff5d2dfa75a
parent 46 7471e31bb278
child 50 e713c3e6faf1
permissions -rw-r--r--
...
vb@2
     1
include ../Makefile.conf
vb@2
     2
vb@46
     3
CC=g++ -std=gnu++11 -pthread
vb@46
     4
CXX=g++ -std=gnu++11 -pthread
vb@48
     5
LD=$(CXX)
vb@46
     6
LDFLAGS=-L$(HOME)/lib -lpEpEngine -lstdc++
vb@39
     7
CXXFLAGS=-g -O0 -I../src
vb@2
     8
# CXXFLAGS=-O3 -DNDEBUG
vb@2
     9
vb@2
    10
TARGET=pEpEngineTest
vb@2
    11
vb@48
    12
UNIT_TEST_SOURCE=$(wildcard *_test.cc)
vb@48
    13
UNIT_TESTS=$(subst .cc,,$(UNIT_TEST_SOURCE))
vb@2
    14
vb@48
    15
all: $(TARGET) $(UNIT_TESTS)
vb@2
    16
vb@2
    17
.PHONY: clean
vb@2
    18
vb@2
    19
clean:
vb@48
    20
	rm -f *.o $(TARGET) *.a *~ $(UNIT_TESTS)
vb@2
    21
vb@48
    22
test: pEpEngineTest
vb@2
    23
	LD_LIBRARY_PATH=~/lib:../src ./pEpEngineTest
vb@2
    24
vb@48
    25
unit_tests: $(UNIT_TESTS)
vb@48
    26
	LD_LIBRARY_PATH=~/lib:../src ./unit_tests