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 CC=cc
all: vga.o 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 CC=cc
FLAGS=-Wall -c -g -Wextra -ffreestanding -m32 -nostdlib FLAGS=-Wall -c -g -Wextra -ffreestanding -m32 -nostdlib
SRCS=$(wildcard *.c) SRCS=$(wildcard sys/drv/vga/*.c)
INCLUDE=include/ INC=sys/drv/vga/include/ sys/include/
MAIN_INCLUDE=../../include/ INC_PARAMS=$(INC:%=-I%)
BIN=../../../obj/drv/vga.o BIN=obj/vga.o
all: vga.o:
$(CC) $(FLAGS) -I $(INCLUDE) -I $(MAIN_INCLUDE) $(SRCS) -o $(BIN) $(CC) $(FLAGS) $(INC_PARAMS) $(SRCS) -o $(BIN)