Files
RedBear-OS/tests/Makefile
T
Jeremy Soller 4da873ae79 Merge pull request #43 from MggMuggins/master
Imp va_arg for fcntl; fcntl test
2018-03-08 21:07:39 -07:00

47 lines
612 B
Makefile

BINS=\
alloc \
atof \
atoi \
brk \
args \
chdir \
create \
ctype \
dup \
error \
fchdir \
fcntl \
fsync \
ftruncate \
getid \
link \
math \
rmdir \
pipe \
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 "$@"