build: MinGW tweaks.

This commit is contained in:
Solomon Peachy 2020-01-27 09:15:31 -05:00
parent 9abe62b115
commit 059c1e3f2e
1 changed files with 6 additions and 4 deletions

View File

@ -3,12 +3,14 @@
# SPDX-License-Identifier: GPL-3.0+
#
# Basic stuff
# Windows stuff needs to end in .exe
ifneq (,$(findstring mingw,$(CC)))
EXEC_NAME ?= dyesub_backend.exe
else
EXEC_NAME ?= dyesub_backend
EXEC_SUFFIX = .exe
endif
# Basic stuff
EXEC_NAME ?= dyesub_backend$(EXEC_SUFFIX)
CPUS ?= $(shell nproc)
#NO_GUTENPRINT = 1
REVISION ?= -g$(shell if [ -d .git ] ; then git rev-parse --short HEAD; else echo "NONE" ; fi)