1
0
Fork 0
mirror of https://github.com/tailix/kernel.git synced 2024-10-30 12:03:52 -04: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)"