Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 7 additions & 1 deletion makefile
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
TARGET = windows
ARCH = %%Platform%%
ARCH = $(VSCMD_ARG_TGT_ARCH)
NAME = matoya

.SUFFIXES : .ps .vs .fragvk .vertvk
Expand Down Expand Up @@ -115,6 +115,12 @@ DEFS = $(DEFS) -DMTY_VK_DEBUG
FLAGS = $(FLAGS) /O2 /GS- /Gw
!ENDIF

!IFDEF ARM64EC
FLAGS = $(FLAGS) /arm64EC
LIB_FLAGS = $(LIB_FLAGS) /MACHINE:arm64ec
ARCH = arm64ec # ARM64 and ARM64EC are not the same
!ENDIF

CFLAGS = $(INCLUDES) $(DEFS) $(FLAGS)

all: clean-build clear $(SHADERS) $(OBJS)
Expand Down
6 changes: 5 additions & 1 deletion test/makefile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
ARCH = %%Platform%%
ARCH = $(VSCMD_ARG_TGT_ARCH)

BIN = \
mty.exe
Expand Down Expand Up @@ -37,6 +37,10 @@ LIBS = \
ws2_32.lib \
xinput.lib

!IFDEF ARM64EC
CFLAGS = $(CFLAGS) /arm64EC
!ENDIF

test: clean clear
cl $(CFLAGS) /Fe:$(BIN) src\$@.c $(LIBS)
@mty
Expand Down