Commit | Line | Data |
---|---|---|
9c43e1f9 FF |
1 | diff -u -r ../ne-3.1.1/src/makefile ./src/makefile |
2 | --- ../ne-3.1.1/src/makefile 2017-04-04 12:35:59.000000000 +0200 | |
3 | +++ ./src/makefile 2017-06-06 10:07:56.594364223 +0200 | |
35b4ba65 FF |
4 | @@ -28,7 +28,7 @@ |
5 | # where ne tries to read system-wide information (configuration | |
6 | # files, etc.). | |
7 | ||
8 | -NE_GLOBAL_DIR = /usr/local/share/ne | |
9c43e1f9 | 9 | +NE_GLOBAL_DIR ?= /usr/local/share/ne |
35b4ba65 FF |
10 | |
11 | PROGRAM = ne | |
12 | ||
9c43e1f9 | 13 | @@ -81,7 +81,7 @@ |
35b4ba65 FF |
14 | NE_DEBUG= |
15 | NE_TEST= | |
16 | ||
17 | -CC=c99 | |
18 | +CC?=c99 | |
19 | ||
20 | ifeq ($(CC),gcc) | |
21 | GCCFLAGS=-std=c99 -Wall -Wno-parentheses | |
9c43e1f9 | 22 | @@ -96,7 +96,7 @@ |
35b4ba65 FF |
23 | $(if $(NE_ANSI), -DTERMCAP -DANSI,) |
24 | ||
25 | ||
26 | -LIBS=$(if $(NE_TERMCAP)$(NE_ANSI),,-lcurses) | |
9c43e1f9 | 27 | +LIBS=$(if $(NE_TERMCAP)$(NE_ANSI),,-lncursesw) |
35b4ba65 FF |
28 | |
29 | ne: $(OBJS) $(if $(NE_TERMCAP)$(NE_ANSI),$(TERMCAPOBJS),) | |
30 | $(CC) $(OPTS) $(LDFLAGS) $(if $(NE_TEST), -coverage -lefence,) $^ -lm $(LIBS) -o $(PROGRAM) |