1
0
Fork 0
mirror of https://github.com/tailix/kernel.git synced 2024-11-20 11:16:10 -05:00
kernel/test/libk/Makefile
2017-11-04 08:04:22 +00:00

18 lines
288 B
Makefile

CC = $(CCPREFIX)gcc
CFLAGS = -std=gnu99 -Wall -Wextra
BINS = strlen.bin memset.bin
run: all $(addprefix run-, $(BINS))
all: $(BINS)
clean:
rm -f $(BINS)
run-%.bin: %.bin
@./$< && echo "[ OK ] $*" || echo "[FAIL] $*"
%.bin: %.c
$(CC) $< -o $@ $(CFLAGS) -I "$(INCLUDE)" "$(LIBK)"