mirror of
https://github.com/tailix/kernel.git
synced 2024-10-30 12:03:52 -04:00
12 lines
307 B
Makefile
12 lines
307 B
Makefile
OBJS = dummy.c.o
|
|
|
|
all: $(OUTPUT)
|
|
|
|
clean:
|
|
rm -f $(OUTPUT) $(OBJS)
|
|
|
|
$(OUTPUT): $(OBJS)
|
|
$(CC) -T linker.ld -o $(OUTPUT) -ffreestanding -nostdlib -lgcc $(OBJS) $(LIBSRC) $(LIBK)
|
|
|
|
%.c.o: %.c
|
|
$(CC) -c $< -o $@ -std=gnu99 -ffreestanding -nostdinc -fno-builtin -fno-stack-protector -Wall -Wextra -I "$(INCLUDE)"
|