aand... i broke it again
This commit is contained in:
parent
113fdb379b
commit
97e88b2fe3
8
Makefile
8
Makefile
@ -1,5 +1,7 @@
|
|||||||
include sys/drv/vga/Makefile
|
include sys/Makefile
|
||||||
CC=cc
|
CC=cc
|
||||||
|
SRCS=$(wildcard sys/*.o) $(wildcard sys/*/*.o) $(wildcard sys/*/*/*.o)
|
||||||
|
|
||||||
all: vga.o
|
all: vga.o sysinit.o
|
||||||
$(CC) sys/drv/vga/vga.o -o boot.img
|
echo $(SRCS)
|
||||||
|
$(CC) $(SRCS) -o boot.img
|
||||||
|
10
sys/Makefile
10
sys/Makefile
@ -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)
|
||||||
|
@ -1,3 +1,5 @@
|
|||||||
|
#include <memory.h>
|
||||||
|
|
||||||
struct linkedlist {
|
struct linkedlist {
|
||||||
u32 node;
|
u32 node;
|
||||||
linkedlist *next;
|
linkedlist *next;
|
Loading…
Reference in New Issue
Block a user