os/vga_drv/Makefile
2019-08-31 10:49:52 -05:00

14 lines
219 B
Makefile

C_SOURCES = $(wildcard *.c)
OBJ = $(C_SOURCES:.c=.o)
CFLAGS = -Wall -g
CC = i386-myos-gcc
vga_drv: $(OBJ) ../libc/*
@$(CC) -o $@ $(CFLAGS) $(OBJ)
%.o: %.c
@$(CC) $(CFLAGS) -c $< -o $@
clean:
@rm -rf *.o vga_drv