You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
39 lines
663 B
39 lines
663 B
include ../../Makefile.conf
|
|
|
|
TARGET=src/libPityTest.a
|
|
LDFLAGS:=-L../../src/ $(LDFLAGS) -L../framework/
|
|
LDLIBS=-lstdc++ -lpEpAdapter -lpEpEngine -lpthread -ldl
|
|
CXXFLAGS:=-std=c++11 -g -I./src $(CXXFLAGS)
|
|
TEST_EXTRA_OBJS=../framework/utils.o
|
|
|
|
# Src
|
|
SRC=$(wildcard src/*.cc)
|
|
OBJ=$(subst .cc,.o,$(SRC))
|
|
|
|
# Tests
|
|
TEST_SRC=$(wildcard test/*.cc)
|
|
TEST_OBJ=$(subst .cc,,$(TEST_SRC))
|
|
|
|
|
|
.PHONY: all clean rmtestdata
|
|
.DEFAULT_GOAL := all
|
|
|
|
|
|
all: $(TARGET) test
|
|
|
|
$(TARGET): $(OBJ) $(TEST_EXTRA_OBJS)
|
|
$(AR) -rc $@ $^
|
|
|
|
|
|
test : $(TEST_OBJ)
|
|
|
|
$(TEST_OBJ): $(OBJ) $(TEST_EXTRA_OBJS)
|
|
|
|
|
|
clean:
|
|
rm -f $(TARGET)
|
|
rm -f $(OBJ)
|
|
rm -f $(TEST_OBJ)
|
|
rm -rf src/*.dSYM
|
|
rm -rf test/*.dSYM
|
|
|
|
|