Windows detection in the makefile.

This commit is contained in:
Dual Tachyon 2023-09-02 13:50:24 +01:00
parent efa0368846
commit 4d5cb0c5d6

View File

@ -68,7 +68,11 @@ OBJS += ui/welcome.o
OBJS += main.o OBJS += main.o
ifeq ($(OS),Windows_NT)
TOP := $(dir $(realpath $(lastword $(MAKEFILE_LIST))))
else
TOP := $(shell pwd) TOP := $(shell pwd)
endif
AS = arm-none-eabi-as AS = arm-none-eabi-as
CC = arm-none-eabi-gcc CC = arm-none-eabi-gcc