memgraph/test/Makefile

30 lines
441 B
Makefile
Raw Normal View History

2015-06-18 20:53:58 +08:00
TARGET = tests
LIBS = -lm
CC = c++
CFLAGS = -g -Wall -std=c++1y
INCLUDE = "../"
2015-06-18 20:53:58 +08:00
.PHONY: default all clean
default: $(TARGET)
all: default
OBJECTS = $(patsubst %.cpp, %.o, $(wildcard *.cpp))
HEADERS = $(wildcard *.hpp)
%.o: %.cpp $(HEADERS)
$(CC) $(CFLAGS) -I $(INCLUDE) -c $< -o $@
2015-06-18 20:53:58 +08:00
.PRECIOUS: $(TARGET) $(OBJECTS)
$(TARGET): $(OBJECTS)
$(CC) $(OBJECTS) -Wall $(LIBS) -o $@
2015-06-18 20:53:58 +08:00
clean:
-rm -f *.o
-rm -f $(TARGET)
test:
make
2015-06-22 20:31:26 +08:00
./tests