cpp-template/Makefile

18 lines
474 B
Makefile
Raw Normal View History

BC_VAR_PROJECT_NAME=CppProject
BC_VAR_VCPKG_PKGS=
2023-08-08 20:21:43 -05:00
BUILDCORE_PATH=deps/buildcore
include ${BUILDCORE_PATH}/base.mk
ifeq ($(BC_VAR_OS),darwin)
PROJECT_EXECUTABLE=./build/${BC_VAR_CURRENT_BUILD}/${BC_VAR_PROJECT_NAME}.app/Contents/MacOS/${BC_VAR_PROJECT_NAME}
2023-08-08 20:21:43 -05:00
else
PROJECT_EXECUTABLE=./build/${BC_VAR_CURRENT_BUILD}/bin/${BC_VAR_PROJECT_NAME}
2023-08-08 20:21:43 -05:00
endif
.PHONY: run
run: build
2023-08-24 00:05:00 -05:00
${BC_ENVRUN} ${PROJECT_EXECUTABLE}
2023-08-08 20:21:43 -05:00
.PHONY: debug
debug: build
${BC_DEBUGGER} ${PROJECT_EXECUTABLE}