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
|
||||
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
|
||||
|
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,4 +1,6 @@
|
||||
#include <memory.h>
|
||||
|
||||
struct linkedlist {
|
||||
u32 node;
|
||||
linkedlist *next;
|
||||
};
|
||||
};
|
Loading…
Reference in New Issue
Block a user