1
0
Fork 0
mirror of https://github.com/tailix/kernel.git synced 2025-10-30 23:28:06 -04:00
kernel/libk/Makefile
2017-11-04 06:09:14 +00:00

16 lines
274 B
Makefile

CFLAGS = -std=gnu99 -ffreestanding -nostdinc -fno-builtin -fno-stack-protector -Wall -Wextra
OUTPUT = libk.a
OBJS = memset.o strlen.o itoa.o
all: $(OUTPUT)
clean:
rm -f $(OUTPUT) $(OBJS)
$(OUTPUT): $(OBJS)
$(AR) -rcs $@ $(OBJS)
%.o: %.c
$(CC) -c $< -o $@ $(CFLAGS)