parent
2b72571d02
commit
e5cde3f2ee
2 changed files with 4 additions and 4 deletions
|
@ -61,7 +61,7 @@ override LDFLAGS += \
|
||||||
-z max-page-size=0x1000 \
|
-z max-page-size=0x1000 \
|
||||||
-T linker.ld
|
-T linker.ld
|
||||||
|
|
||||||
# Check if the linker supports -no-pie and enable it if it does.
|
# Check if the linker supports -no-pie and enable it if it does
|
||||||
ifeq ($(shell $(LD) --help 2>&1 | grep 'no-pie' >/dev/null 2>&1; echo $$?),0)
|
ifeq ($(shell $(LD) --help 2>&1 | grep 'no-pie' >/dev/null 2>&1; echo $$?),0)
|
||||||
override LDFLAGS += -no-pie
|
override LDFLAGS += -no-pie
|
||||||
endif
|
endif
|
||||||
|
@ -71,9 +71,9 @@ override NASMFLAGS += \
|
||||||
-f elf64
|
-f elf64
|
||||||
|
|
||||||
# Use find to glob all *.c, *.S, and *.asm files in the directory and extract the object names.
|
# Use find to glob all *.c, *.S, and *.asm files in the directory and extract the object names.
|
||||||
override CFILES := $(shell find src -type f -name '*.c')
|
override CFILES := $(shell find . -type f -name '*.c')
|
||||||
override ASFILES := $(shell find src -type f -name '*.S')
|
override ASFILES := $(shell find . -type f -name '*.S')
|
||||||
override NASMFILES := $(shell find src -type f -name '*.asm')
|
override NASMFILES := $(shell find . -type f -name '*.asm')
|
||||||
override OBJ := $(CFILES:.c=.o) $(ASFILES:.S=.o) $(NASMFILES:.asm=.o)
|
override OBJ := $(CFILES:.c=.o) $(ASFILES:.S=.o) $(NASMFILES:.asm=.o)
|
||||||
override HEADER_DEPS := $(CFILES:.c=.d) $(ASFILES:.S=.d)
|
override HEADER_DEPS := $(CFILES:.c=.d) $(ASFILES:.S=.d)
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue