Explorar el Código

pkg-config for ncurses (#25)

master
Johnathan Jenkins Arun Prakash Jana hace 8 años
padre
commit
9eed24bbac
Se han modificado 2 ficheros con 6 adiciones y 7 borrados
  1. +6
    -3
      Makefile
  2. +0
    -4
      nnn.c

+ 6
- 3
Makefile Ver fichero

@@ -5,12 +5,15 @@ MANPREFIX = $(PREFIX)/share/man

CFLAGS += -O3 -march=native -Wall -Wextra -Wno-unused-parameter
LDLIBS = -lreadline
ifeq ($(shell uname), Darwin)
LDLIBS += -lncurses

ifeq ($(shell pkg-config ncursesw && echo 1),1)
CFLAGS += $(shell pkg-config --cflags ncursesw)
LDLIBS += $(shell pkg-config --libs ncursesw)
else
LDLIBS += -lncursesw
LDLIBS += -lncurses
endif


DISTFILES = nlay nnn.c config.def.h nnn.1 Makefile README.md LICENSE
LOCALCONFIG = config.h
SRC = nnn.c


+ 0
- 4
nnn.c Ver fichero

@@ -6,11 +6,7 @@
#include <sys/resource.h>

#include <ctype.h>
#ifdef __linux__
#include <ncursesw/curses.h>
#else
#include <curses.h>
#endif
#include <dirent.h>
#include <errno.h>
#include <fcntl.h>


Cargando…
Cancelar
Guardar