use zig cc as default c compiler
This commit is contained in:
parent
24187e2ea5
commit
ee5791b1c8
2 changed files with 8 additions and 6 deletions
12
Makefile
12
Makefile
|
|
@ -1,20 +1,22 @@
|
|||
CC = zig cc -O2
|
||||
|
||||
all: parser.tab.o lex.yy.o node.o main.o
|
||||
gcc ./parser.tab.o ./lex.yy.o ./node.o ./main.o -o program -lfl
|
||||
$(CC) ./parser.tab.o ./lex.yy.o ./node.o ./main.o -o program -lfl
|
||||
|
||||
main.o: main.c
|
||||
gcc -c main.c
|
||||
$(CC) -c main.c
|
||||
|
||||
node.o: node.c
|
||||
gcc -c ./node.c
|
||||
$(CC) -c ./node.c
|
||||
|
||||
parser.tab.c parser.tab.h: ./parser.y
|
||||
bison -d parser.y
|
||||
|
||||
parser.tab.o: ./parser.tab.c
|
||||
gcc -c ./parser.tab.c
|
||||
$(CC) -c ./parser.tab.c
|
||||
|
||||
lex.yy.o: lex.yy.c
|
||||
gcc -c lex.yy.c
|
||||
$(CC) -c lex.yy.c
|
||||
|
||||
lex.yy.c: ./scanner.l
|
||||
flex scanner.l
|
||||
|
|
|
|||
|
|
@ -24,7 +24,7 @@
|
|||
clang-tools
|
||||
clang
|
||||
bear
|
||||
neovim
|
||||
zig
|
||||
];
|
||||
};
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue