Bläddra i källkod

Makefile: use PKG_CONFIG instead of hardcoding pkg-config (#78)

master
maxice8 Arun Prakash Jana 7 år sedan
förälder
incheckning
ff502f0b3e
1 ändrade filer med 4 tillägg och 3 borttagningar
  1. +4
    -3
      Makefile

+ 4
- 3
Makefile Visa fil

@@ -3,14 +3,15 @@ VERSION = 1.6
PREFIX ?= /usr/local PREFIX ?= /usr/local
MANPREFIX ?= $(PREFIX)/share/man MANPREFIX ?= $(PREFIX)/share/man
STRIP ?= strip STRIP ?= strip
PKG_CONFIG ?= pkg-config


CFLAGS ?= -O3 CFLAGS ?= -O3
CFLAGS += -Wall -Wextra -Wno-unused-parameter CFLAGS += -Wall -Wextra -Wno-unused-parameter
LDLIBS = -lreadline LDLIBS = -lreadline


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


||||||
x
 
000:0
Laddar…
Avbryt
Spara