1
0

Makefile 394 B

123456789101112131415161718192021222324
  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. -I $(HARVEY)/$(ARCH)/include \
  14. -I$(HARVEY)/sys/include
  15. LDFLAGS=-nostdlib \
  16. -e _main \
  17. $(HARVEY)/$(ARCH)/lib/libc.a
  18. hi: hi.o
  19. ld -o hi hi.o $(LDFLAGS)
  20. hi.o: hi.c
  21. cc $(CFLAGS) -c hi.c