123456789101112131415161718192021222324 |
- CFLAGS=-nostdinc \
- -mcmodel=small \
- -O0 \
- -mno-red-zone \
- -ffreestanding \
- -fno-builtin \
- -trigraphs \
- -Wall \
- -Wno-missing-braces \
- -Wno-parentheses \
- -Wno-unknown-pragmas \
- -Wuninitialized \
- -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
|