Limine Bare Bones: Difference between revisions

Misc GNUmakefile changes
[unchecked revision][unchecked revision]
(Change hdd creation instructions to allow for creation without sudo)
(Misc GNUmakefile changes)
Line 268:
-m64 \
-march=x86-64 \
-mabi=sysv \
-mno-80387 \
-mno-mmx \
Line 311 ⟶ 310:
 
# Link rules for the final kernel executable.
$(KERNEL): GNUmakefile linker.ld $(OBJ)
$(LD) $(OBJ) $(LDFLAGS) -o $@
 
Line 318 ⟶ 317:
 
# Compilation rules for *.c files.
%.c.o: %.c GNUmakefile
$(CC) $(CFLAGS) $(CPPFLAGS) -c $< -o $@
 
# Compilation rules for *.S files.
%.S.o: %.S GNUmakefile
$(CC) $(CFLAGS) $(CPPFLAGS) -c $< -o $@
 
# Compilation rules for *.asm (nasm) files.
%.asm.o: %.asm GNUmakefile
nasm $(NASMFLAGS) $< -o $@
 
Anonymous user