n
All checks were successful
/ deploy (push) Successful in 1m18s

This commit is contained in:
Minecon724 2024-10-19 20:00:25 +02:00
parent d956c88156
commit 7d7b49a668
Signed by: Minecon724
GPG key ID: 3CCC4D267742C8E8

View file

@ -1,10 +1,11 @@
# Compiler to use
CC ?= gcc
CFLAGS = -Wall -Wextra -std=gnu17 -I include -lelf
CFLAGS = -Wall -Wextra -std=gnu17 -I include
LDFLAGS = -lelf
# Directory for build outputs
BUILD_DIR := build-$(uname -i)
BUILD_DIR := build
# Name of the output program
PROGRAM_NAME ?= criscv
@ -32,7 +33,7 @@ debug: $(TARGET)
# Rule to link object files into the final executable
$(TARGET): $(OBJS) | $(BUILD_DIR)
$(CC) $(CFLAGS) $^ -o $@
$(CC) $(CFLAGS) $^ -o $@ $(LDFLAGS)
du -b $(TARGET) # Size of the executable in bytes
# Rule to compile source files into object files