cpp-template/Makefile

18 lines
455 B
Makefile
Raw Normal View History

2023-08-24 00:05:00 -05:00
BC_PROJECT_NAME=CppProject
BC_VCPKG_PKGS=
2023-08-08 20:21:43 -05:00
BUILDCORE_PATH=deps/buildcore
include ${BUILDCORE_PATH}/base.mk
2023-08-24 00:05:00 -05:00
ifeq ($(BC_OS),darwin)
PROJECT_EXECUTABLE=./build/${BC_CURRENT_BUILD}/${BC_PROJECT_NAME}.app/Contents/MacOS/${BC_PROJECT_NAME}
2023-08-08 20:21:43 -05:00
else
2023-08-24 00:05:00 -05:00
PROJECT_EXECUTABLE=./build/${BC_CURRENT_BUILD}/bin/${BC_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
2023-08-24 00:05:00 -05:00
${BC_ENVRUN} ${BC_DEBUGGER} ${PROJECT_EXECUTABLE}