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