cpp-template/Makefile

18 lines
424 B
Makefile
Raw Normal View History

2023-08-08 20:21:43 -05:00
PROJECT_NAME=CppProject
BUILDCORE_PATH=deps/buildcore
VCPKG_PKGS=
include ${BUILDCORE_PATH}/base.mk
ifeq ($(OS),darwin)
PROJECT_EXECUTABLE=./build/${CURRENT_BUILD}/${PROJECT_NAME}.app/Contents/MacOS/${PROJECT_NAME}
else
PROJECT_EXECUTABLE=./build/${CURRENT_BUILD}/bin/${PROJECT_NAME}
endif
.PHONY: run
run: build
${ENV_RUN} ${PROJECT_EXECUTABLE}
.PHONY: debug
debug: build
${ENV_RUN} ${DEBUGGER} ${PROJECT_EXECUTABLE}