Makefile 419 B

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