429638e7 |
1 | .PHONY: all |
2 | |
3 | CC=/bin/cc |
4 | CARGS=-Wall -Werror -Wextra -pedantic -std=c99 |
5 | SANITY=-Wno-unused-parameter -Wno-unused-variable |
6 | CDBG=-g |
7 | CIO=proto.c -o bin/out.amd64.multi.bin |
8 | |
9 | # optimization is likely to produce confusing output as we are targeting readable MIPS ASM |
10 | COPT=-O0 |
11 | |
12 | # HARDCODED_OPERANDS is a boolean, MS (matrix size) is the square size of our matrices |
13 | CDEFS=-D HARDCODED_OPERANDS=1 -D MS=3 |
14 | |
15 | all: |
16 | $(CC) $(CARGS) $(SANITY) $(CDEFS) $(CIO) $(COPT) |
17 | |
18 | debug: |
19 | $(CC) $(CARGS) $(SANITY) $(CDEFS) $(CIO) $(COPT) $(CDBG) -D DEBUG=1 |