Files
RedBear-OS/tests/Makefile
T
2018-03-06 21:23:36 -07:00

40 lines
552 B
Makefile

BINS=\
alloc \
brk \
args \
chdir \
create \
dup \
fchdir \
fsync \
ftruncate \
getid \
link \
math \
printf \
write
all: $(BINS)
clean:
rm -f $(BINS) *.out
run: $(BINS)
for bin in $(BINS); do echo "# $${bin} #"; "./$${bin}" test args; done
GCCHEAD=\
-nostdinc \
-nostdlib \
-I ../include \
-I ../target/include \
-I ../openlibm/include \
-I ../openlibm/src \
../target/debug/libcrt0.a
GCCTAIL=\
../target/debug/libc.a \
../openlibm/libopenlibm.a
%: %.c
gcc -fno-stack-protector -Wall $(GCCHEAD) "$<" $(GCCTAIL) -o "$@"