diff options
| author | amlal <amlal@el-mahrouss-logic.com> | 2024-03-08 12:35:05 +0000 |
|---|---|---|
| committer | amlal <amlal@el-mahrouss-logic.com> | 2024-03-08 12:43:36 +0000 |
| commit | 6f5eddc17785607e1cd5e8245d576874f1939beb (patch) | |
| tree | dbc1f113be4e90b0de8de6916c7bd5084f6f604b /Private/makefile | |
| parent | 842d35cdd8511adf379c4ccb52010b9b71e0757f (diff) | |
HCR-14: Fixes and improvements.
Signed-off-by: amlal <amlal@el-mahrouss-logic.com>
Diffstat (limited to 'Private/makefile')
| -rw-r--r-- | Private/makefile | 12 |
1 files changed, 11 insertions, 1 deletions
diff --git a/Private/makefile b/Private/makefile index e9c116ae..9b5d1595 100644 --- a/Private/makefile +++ b/Private/makefile @@ -6,7 +6,17 @@ CC = x86_64-w64-mingw32-gcc LD = x86_64-w64-mingw32-ld CCFLAGS = -c -ffreestanding -mgeneral-regs-only -mno-red-zone -fno-rtti -fno-exceptions -std=c++20 -D__FSKIT_NEWFS__ -D__HAVE_HCORE_APIS__ -D__HCORE__ -I../ -I./ -ASM = nasm + +UNAME := $(shell uname) + +ifeq ($(UNAME), Darwin) +ASM = nasm +else +# Otherwise Windows NT. +ASM = $(WINASM) +endif + +# Add assembler, linker, and object files variables. ASMFLAGS = -f win64 LDFLAGS = -e Main --subsystem=17 LDOBJ = $(wildcard Obj/*.obj) |
