cpp-template/Makefile

18 lines
482 B
Makefile
Raw Permalink 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-26 01:02:32 -05:00
${BC_CMD_ENVRUN} ${PROJECT_EXECUTABLE}
2023-08-08 20:21:43 -05:00
.PHONY: debug
debug: build
2023-08-26 01:02:32 -05:00
${BC_CMD_DEBUGGER} ${PROJECT_EXECUTABLE}