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.
25 lines
499 B
25 lines
499 B
|
|
SRCS = $(wildcard *.cpp) $(wildcard ../*.cpp)
|
|
OBJS = $(SRCS:.cpp=.o)
|
|
DEPS = $(SRCS:.cpp=.d)
|
|
|
|
.PHONY tests:
|
|
tests: rmdstargatewayapp $(OBJS)
|
|
$(CC) $(CPPFLAGS) -o dstargateway_tests $(OBJS) $(LDFLAGS) -lgtest -lgtest_main
|
|
|
|
%.o : %.cpp
|
|
$(CC) $(CPPFLAGS) -DUNIT_TESTS -I../ -MMD -MD -c $< -o $@
|
|
|
|
-include $(DEPS)
|
|
|
|
.PHONY clean :
|
|
clean :
|
|
@$(RM) $(OBJS) $(DEPS) dstargateway_tests
|
|
|
|
|
|
.PHONY rmdstargatewayapp :
|
|
rmdstargatewayapp: FORCE
|
|
@$(RM) ../DStarGatewayApp.o
|
|
@$(RM) ../DStarGatewayApp.d
|
|
|
|
FORCE: |