fixed MAKE!!! YAYY!!Y!Y!Y!
This commit is contained in:
parent
320ba3dcfd
commit
113fdb379b
8
Makefile
8
Makefile
|
@ -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
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
|
@ -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)
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue