summaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorSimon <sgkadesh@icloud.com>2024-01-27 02:23:28 -0500
committerSimon <sgkadesh@icloud.com>2024-01-27 02:23:28 -0500
commit160cb6067e159b949857a05e88334bbd2bd7dc75 (patch)
treee38d477a6e26b7af00a6d73c11b38b7a3141c41c /Makefile
parentfixes (diff)
parentAdded basic long mode setup (diff)
downloadcorn-160cb6067e159b949857a05e88334bbd2bd7dc75.tar.gz
corn-160cb6067e159b949857a05e88334bbd2bd7dc75.tar.bz2
corn-160cb6067e159b949857a05e88334bbd2bd7dc75.zip
Merge branch 'main' into HEAD
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile4
1 files changed, 4 insertions, 0 deletions
diff --git a/Makefile b/Makefile
index da82431..51b6a39 100644
--- a/Makefile
+++ b/Makefile
@@ -31,6 +31,10 @@ $(A_OBJ): $(BUILD_DIR)/%.S.o : %.S
@mkdir -p $(@D)
nasm $< -f elf64 -o $@
+$(BUILD_DIR)/$(SRC_DIR)/arch/amd64/shim.o: $(SRC_DIR)/arch/amd64/shim.c
+ @mkdir -p $(@D)
+ $(CC) -c $(CFLAGS) -o $@ $< -m32
+
$(C_OBJ): $(BUILD_DIR)/%.o : %.c
@mkdir -p $(@D)
$(CC) -c $(CFLAGS) -o $@ $<