Updated Makefile

This commit is contained in:
Alex
2023-01-03 00:45:01 +02:00
parent 6eb4bdd6f5
commit 5de802f825
9 changed files with 35 additions and 1 deletions

View File

@ -26,12 +26,15 @@ build: $(OBJ)
cp $(CRTBEGIN_PATH) $(CRTEND_PATH) $(CRTI_PATH) $(CRTN_PATH) ../../out/system/lib/
%.o: %.c
$(info Compiling $<)
$(CC) -nostdlib -mno-red-zone -std=c17 -c $< -o $@
%.o: %.asm
$(info Compiling $<)
$(NASM) $< -f $(ASM_ARCH) -o $@
%.o: %.S
$(info Compiling $<)
$(AS) -c $< -o $@
clean: