Merge pull request #3075 from jriwanek-forks/makefile
More makefile simplification and formatting in version.h.in
This commit is contained in:
@@ -8,6 +8,8 @@
|
|||||||
*
|
*
|
||||||
* Definitions for project version, branding, and external links.
|
* Definitions for project version, branding, and external links.
|
||||||
*
|
*
|
||||||
|
*
|
||||||
|
*
|
||||||
* Authors: Miran Grca, <mgrca8@gmail.com>
|
* Authors: Miran Grca, <mgrca8@gmail.com>
|
||||||
*
|
*
|
||||||
* Copyright 2020 Miran Grca.
|
* Copyright 2020 Miran Grca.
|
||||||
|
@@ -240,44 +240,33 @@ VPATH := $(EXPATH) . $(CODEGEN) minitrace cpu \
|
|||||||
sound/munt/srchelper sound/munt/srchelper/srctools/src \
|
sound/munt/srchelper sound/munt/srchelper/srctools/src \
|
||||||
sound/resid-fp sound/ymfm \
|
sound/resid-fp sound/ymfm \
|
||||||
scsi video network network/slirp win
|
scsi video network network/slirp win
|
||||||
|
|
||||||
|
WINDRES := windres
|
||||||
|
STRIP := strip
|
||||||
ifeq ($(X64), y)
|
ifeq ($(X64), y)
|
||||||
TOOL_PREFIX := x86_64-w64-mingw32-
|
TOOL_PREFIX := x86_64-w64-mingw32-
|
||||||
else
|
else
|
||||||
|
ifeq ($(ARM64), y)
|
||||||
|
TOOL_PREFIX := aarch64-w64-mingw32-
|
||||||
|
WINDRES := ${TOOL_PREFIX}windres
|
||||||
|
STRIP := ${TOOL_PREFIX}strip
|
||||||
|
endif
|
||||||
|
ifeq ($(ARM), y)
|
||||||
|
TOOL_PREFIX := armv7-w64-mingw32-
|
||||||
|
WINDRES := ${TOOL_PREFIX}windres
|
||||||
|
STRIP := ${TOOL_PREFIX}strip
|
||||||
|
endif
|
||||||
TOOL_PREFIX := i686-w64-mingw32-
|
TOOL_PREFIX := i686-w64-mingw32-
|
||||||
endif
|
endif
|
||||||
WINDRES := windres
|
|
||||||
STRIP := strip
|
|
||||||
ifeq ($(ARM64), y)
|
|
||||||
WINDRES := aarch64-w64-mingw32-windres
|
|
||||||
STRIP := aarch64-w64-mingw32-strip
|
|
||||||
endif
|
|
||||||
ifeq ($(ARM), y)
|
|
||||||
WINDRES := armv7-w64-mingw32-windres
|
|
||||||
STRIP := armv7-w64-mingw32-strip
|
|
||||||
endif
|
|
||||||
ifeq ($(CLANG), y)
|
ifeq ($(CLANG), y)
|
||||||
CPP := clang++
|
CPP := ${TOOL_PREFIX}clang++
|
||||||
CC := clang
|
CC := ${TOOL_PREFIX}clang
|
||||||
ifeq ($(ARM64), y)
|
|
||||||
CPP := aarch64-w64-mingw32-clang++
|
|
||||||
CC := aarch64-w64-mingw32-clang
|
|
||||||
endif
|
|
||||||
ifeq ($(ARM), y)
|
|
||||||
CPP := armv7-w64-mingw32-clang++
|
|
||||||
CC := armv7-w64-mingw32-clang
|
|
||||||
endif
|
|
||||||
else
|
else
|
||||||
CPP := ${TOOL_PREFIX}g++
|
CPP := ${TOOL_PREFIX}g++
|
||||||
CC := ${TOOL_PREFIX}gcc
|
CC := ${TOOL_PREFIX}gcc
|
||||||
ifeq ($(ARM64), y)
|
|
||||||
CPP := aarch64-w64-mingw32-g++
|
|
||||||
CC := aarch64-w64-mingw32-gcc
|
|
||||||
endif
|
|
||||||
ifeq ($(ARM), y)
|
|
||||||
CPP := armv7-w64-mingw32-g++
|
|
||||||
CC := armv7-w64-mingw32-gcc
|
|
||||||
endif
|
|
||||||
endif
|
endif
|
||||||
|
|
||||||
DEPS = -MMD -MF $*.d -c $<
|
DEPS = -MMD -MF $*.d -c $<
|
||||||
DEPFILE := win/.depends
|
DEPFILE := win/.depends
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user