mirror of
https://github.com/tailix/kernel.git
synced 2024-11-27 11:24:34 -05:00
22 lines
336 B
Makefile
22 lines
336 B
Makefile
|
CCPREFIX = i686-elf-
|
||
|
|
||
|
AR = $(CCPREFIX)ar
|
||
|
CC = $(CCPREFIX)gcc
|
||
|
|
||
|
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)
|