mirror of
https://github.com/tailix/kernel.git
synced 2024-11-20 11:16:10 -05:00
18 lines
288 B
Makefile
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)"
|