make it compile properly
This commit is contained in:
parent
1775ca69d2
commit
8d298d2a49
14
Makefile
14
Makefile
|
@ -1,5 +1,13 @@
|
|||
FILES = main.c
|
||||
LINKR = -lm -lncurses
|
||||
INF := main.c
|
||||
WRN := -Wall -Wextra
|
||||
STD := -std=c99
|
||||
OPT := -march=native -O2
|
||||
LNK := -lm $(shell pkg-config --cflags --libs ncurses)
|
||||
OUT := agraph
|
||||
|
||||
default:
|
||||
gcc -Wall -std=c99 -march=native $(LINKR) $(FILES) -o agraph
|
||||
$(CC) $(STD) $(WRN) $(OPT) $(INF) $(LNK) -o $(OUT)
|
||||
|
||||
clean:
|
||||
rm -f ./$(out)
|
||||
|
||||
|
|
Loading…
Reference in New Issue