Makefile 441 B

1234567891011121314151617181920212223242526
  1. CFLAGS=-nostdinc \
  2. -mcmodel=small \
  3. -O0 \
  4. -fplan9-extensions \
  5. -mno-red-zone \
  6. -ffreestanding \
  7. -fno-builtin \
  8. -trigraphs \
  9. -Wall \
  10. -Wno-missing-braces \
  11. -Wno-parentheses \
  12. -Wno-unknown-pragmas \
  13. -Wuninitialized \
  14. -Wmaybe-uninitialized \
  15. -I $(HARVEY)/$(ARCH)/include \
  16. -I$(HARVEY)/sys/include
  17. LDFLAGS=-nostdlib \
  18. -e _main \
  19. $(HARVEY)/$(ARCH)/lib/libc.a
  20. hi: hi.o
  21. ld -o hi hi.o $(LDFLAGS)
  22. hi.o: hi.c
  23. cc $(CFLAGS) -c hi.c