aand... i broke it again

This commit is contained in:
spikey 2024-02-17 18:18:23 -05:00
parent 113fdb379b
commit 97e88b2fe3
3 changed files with 17 additions and 5 deletions

View File

@ -1,5 +1,7 @@
include sys/drv/vga/Makefile
include sys/Makefile
CC=cc
SRCS=$(wildcard sys/*.o) $(wildcard sys/*/*.o) $(wildcard sys/*/*/*.o)
all: vga.o
$(CC) sys/drv/vga/vga.o -o boot.img
all: vga.o sysinit.o
echo $(SRCS)
$(CC) $(SRCS) -o boot.img

View File

@ -1 +1,9 @@
include drv/vga/Makefile
include sys/drv/vga/Makefile
CC=cc
FLAGS=-Wall -c -g -Wextra -ffreestanding -m32 -nostdlib
SRCS=$(wildcard sys/*.c)
INC=sys/include/
INC_PARAMS=$(INC:%=-I%)
sysinit.o:
$(CC) $(FLAGS) $(INC_PARAMS) $(SRCS)

View File

@ -1,4 +1,6 @@
#include <memory.h>
struct linkedlist {
u32 node;
linkedlist *next;
};
};