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 $(LIBS)