1
0
Fork 0
mirror of https://github.com/tailix/kernel.git synced 2024-10-30 12:03:52 -04:00
kernel/libk/Makefile

20 lines
324 B
Makefile
Raw Normal View History

2017-11-04 02:40:46 -04:00
AR = $(CCPREFIX)ar
CC = $(CCPREFIX)gcc
2017-11-04 02:04:04 -04:00
CFLAGS = -std=gnu99 -ffreestanding -nostdinc -fno-builtin -fno-stack-protector -Wall -Wextra
OUTPUT = libk.a
2017-11-04 07:43:55 -04:00
OBJS = memset.o strlen.o itoa.o strncpy.o
2017-11-04 02:04:04 -04:00
all: $(OUTPUT)
clean:
rm -f $(OUTPUT) $(OBJS)
$(OUTPUT): $(OBJS)
$(AR) -rcs $@ $(OBJS)
%.o: %.c
$(CC) -c $< -o $@ $(CFLAGS)