|
|
|
|
@ -3,8 +3,7 @@ SRCS = $(wildcard *.cpp) $(wildcard ../*.cpp)
|
|
|
|
|
OBJS = $(SRCS:.cpp=.o)
|
|
|
|
|
DEPS = $(SRCS:.cpp=.d)
|
|
|
|
|
|
|
|
|
|
.PHONY tests:
|
|
|
|
|
tests: $(OBJS)
|
|
|
|
|
dstargateway_tests: $(OBJS)
|
|
|
|
|
$(CC) $(CPPFLAGS) -o dstargateway_tests $(OBJS) $(LDFLAGS) -lgtest -lgtest_main
|
|
|
|
|
|
|
|
|
|
%.o : %.cpp
|
|
|
|
|
@ -12,7 +11,9 @@ tests: $(OBJS)
|
|
|
|
|
|
|
|
|
|
-include $(DEPS)
|
|
|
|
|
|
|
|
|
|
.PHONY run-tests: dstargateway_tests
|
|
|
|
|
./dstargateway_tests
|
|
|
|
|
|
|
|
|
|
.PHONY clean :
|
|
|
|
|
clean :
|
|
|
|
|
@$(RM) $(OBJS) $(DEPS) dstargateway_tests
|
|
|
|
|
|
|
|
|
|
|