Makefile 297 B

123456789101112131415
  1. BINS=\
  2. args \
  3. create \
  4. write
  5. all: $(BINS)
  6. clean:
  7. rm -f $(BINS) *.out
  8. run: $(BINS)
  9. for bin in $(BINS); do echo "\\033[1m$${bin}\\033[0m"; ./$${bin} test args; done
  10. %: %.c
  11. gcc -nostdinc -nostdlib -I ../include -I ../target/include ../target/debug/libcrt0.a $< ../target/debug/libc.a -o $@