12345678910111213141516171819202122232425 |
- CFLAGS=-nostdinc \
- -mcmodel=small \
- -O0 \
- -mno-red-zone \
- -ffreestanding \
- -fno-builtin \
- -trigraphs \
- -Wall \
- -Wno-missing-braces \
- -Wno-parentheses \
- -Wno-unknown-pragmas \
- -Wuninitialized \
- -Wmaybe-uninitialized \
- -I $(HARVEY)/$(ARCH)/include \
- -I$(HARVEY)/sys/include
- LDFLAGS=-nostdlib \
- -e _main \
- $(HARVEY)/$(ARCH)/lib/libc.a
- hi: hi.o
- ld -o hi hi.o $(LDFLAGS)
- hi.o: hi.c
- cc $(CFLAGS) -c hi.c
|