Files
RedBear-OS/tests/Makefile
T
2018-03-04 08:27:20 -07:00

31 lines
461 B
Makefile

BINS=\
alloc \
args \
create \
math \
printf \
write
all: $(BINS)
clean:
rm -f $(BINS) *.out
run: $(BINS)
for bin in $(BINS); do echo "\\033[1m$${bin}\\033[0m"; ./$${bin} test args; done
%: %.c
gcc \
-fno-stack-protector \
-nostdinc \
-nostdlib \
-I ../include \
-I ../target/include \
-I ../openlibm/include \
-I ../openlibm/src \
../target/debug/libcrt0.a \
$< \
../target/debug/libc.a \
../openlibm/libopenlibm.a \
-o $@