File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -5,30 +5,23 @@ ASM_SOURCES = $(wildcard kernel/*.asm driver/video/*.asm cpu/*.asm cpu/*/*.asm u
55HEADERS = ${C_SOURCES:.c=.h}
66OBJ = ${C_SOURCES:.c=.o} ${ASM_SOURCES:.asm=.o}
77CFLAGS = -ffreestanding -fno-stack-protector -z execstack -no-pie -fno-pic
8-
8+ CC = x86_64-elf-gcc
9+ GDB = x86_64-elf-gdb
10+ LD = x86_64-elf-ld
911ifeq ($(OS ) ,Windows_NT)
1012 UNAME_S := $(shell uname -s)
1113 ifeq ($(UNAME_S),MSYS_NT-10.0-22631)
1214 $(info MSYS2 detected)
1315 host_os = linux
14- CC = gcc
15- GDB = gdb
16- LD = ld
1716 else
1817 $(info Windows detected)
1918 host_os = windows
2019 SHELL = cmd
21- CC = x86_64-elf-gcc
22- GDB = x86_64-elf-gdb
23- LD = x86_64-elf-ld
2420 endif
2521else
2622 UNAME_S := $(shell uname -s)
2723 ifeq ($(UNAME_S),Linux)
2824 host_os = linux
29- CC = gcc
30- GDB = gdb
31- LD = ld
3225 endif
3326endif
3427
You can’t perform that action at this time.
0 commit comments