12345678910111213141516171819202122232425262728293031323334353637383940414243 |
- BINS=\
- alloc \
- atoi \
- brk \
- args \
- chdir \
- create \
- ctype \
- dup \
- error \
- fchdir \
- fsync \
- ftruncate \
- getid \
- link \
- math \
- 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 -no-pie -fno-stack-protector -Wall $(GCCHEAD) "$<" $(GCCTAIL) -o "$@"
|