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.
F4KXL_DStarGateway/Tests/Makefile

25 lines
553 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
# Again ugly trick to force rebuild of DStarGatewayApp
.PHONY rmdstargatewayapp :
rmdstargatewayapp: FORCE
@$(RM) ../DStarGatewayApp.o
@$(RM) ../DStarGatewayApp.d
FORCE:

Powered by TurnKey Linux.