makefile - libs
This commit is contained in:
parent
5d4f5aa5ae
commit
b42ac4b8a1
9
Makefile
9
Makefile
@ -1,5 +1,10 @@
|
||||
CC=gcc
|
||||
NAME = elefantes
|
||||
CC = gcc
|
||||
LIBS = -lm
|
||||
LIBS += $(shell ncursesw5-config --libs 2>/dev/null \
|
||||
|| ncurses5-config --libs 2>/dev/null \
|
||||
|| ncursesw6-config --libs 2>/dev/null \
|
||||
|| ncurses6-config --libs 2>/dev/null )
|
||||
|
||||
compile:
|
||||
$(CC) -o $(NAME) main.c distancia.c screen.c -L/usr/include/ -lm -lncurses
|
||||
$(CC) -o $(NAME) main.c distancia.c screen.c $(LIBS)
|
||||
|
Loading…
Reference in New Issue
Block a user