|
@ -1,18 +1,20 @@ |
|
|
--- a/Makefile 2016-11-26 01:24:23.392903433 -0800
|
|
|
|
|
|
+++ b/Makefile 2016-11-26 01:24:41.084939184 -0800
|
|
|
|
|
|
@@ -1,19 +1,6 @@
|
|
|
|
|
|
|
|
|
--- a/Makefile
|
|
|
|
|
|
+++ b/Makefile
|
|
|
|
|
|
@@ -1,21 +1,7 @@
|
|
|
OBJ = progress |
|
|
OBJ = progress |
|
|
override CFLAGS += -g -Wall -D_FILE_OFFSET_BITS=64 |
|
|
|
|
|
|
|
|
CFLAGS ?= -g |
|
|
|
|
|
override CFLAGS += -Wall -D_FILE_OFFSET_BITS=64 |
|
|
-override LDFLAGS += -lm
|
|
|
-override LDFLAGS += -lm
|
|
|
-UNAME := $(shell uname)
|
|
|
-UNAME := $(shell uname)
|
|
|
|
|
|
-PKG_CONFIG ?= pkg-config
|
|
|
-ifeq ($(UNAME), Linux)
|
|
|
-ifeq ($(UNAME), Linux)
|
|
|
- ifeq (, $(shell which pkg-config 2> /dev/null))
|
|
|
|
|
|
|
|
|
- ifeq (, $(shell which $(PKG_CONFIG) 2> /dev/null))
|
|
|
- $(error "pkg-config command not found")
|
|
|
- $(error "pkg-config command not found")
|
|
|
- endif
|
|
|
- endif
|
|
|
- ifeq (, $(shell pkg-config ncurses --libs 2> /dev/null))
|
|
|
|
|
|
|
|
|
- ifeq (, $(shell $(PKG_CONFIG) ncurses --libs 2> /dev/null))
|
|
|
- $(error "ncurses package not found")
|
|
|
- $(error "ncurses package not found")
|
|
|
- endif
|
|
|
- endif
|
|
|
- override LDFLAGS += $(shell pkg-config ncurses --libs)
|
|
|
|
|
|
|
|
|
- override LDFLAGS += $(shell $(PKG_CONFIG) ncurses --libs)
|
|
|
-endif
|
|
|
-endif
|
|
|
-ifeq ($(UNAME), Darwin)
|
|
|
-ifeq ($(UNAME), Darwin)
|
|
|
- override LDFLAGS += -lncurses
|
|
|
- override LDFLAGS += -lncurses
|
|
|