fixed MAKE!!! YAYY!!Y!Y!Y!

This commit is contained in:
spikey 2024-02-17 18:06:01 -05:00
parent 320ba3dcfd
commit 113fdb379b
2 changed files with 8 additions and 12 deletions

View File

@ -1,9 +1,5 @@
include sys/Makefile
include sys/drv/vga/Makefile
CC=cc
all: vga.o
$(CC) sys/drv/vga/vga.o
$(CC) sys/drv/vga/vga.o -o boot.img

View File

@ -1,10 +1,10 @@
CC=cc
FLAGS=-Wall -c -g -Wextra -ffreestanding -m32 -nostdlib
SRCS=$(wildcard *.c)
INCLUDE=include/
MAIN_INCLUDE=../../include/
BIN=../../../obj/drv/vga.o
SRCS=$(wildcard sys/drv/vga/*.c)
INC=sys/drv/vga/include/ sys/include/
INC_PARAMS=$(INC:%=-I%)
BIN=obj/vga.o
all:
$(CC) $(FLAGS) -I $(INCLUDE) -I $(MAIN_INCLUDE) $(SRCS) -o $(BIN)
vga.o:
$(CC) $(FLAGS) $(INC_PARAMS) $(SRCS) -o $(BIN)