Makefile 273 B

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