File: config.mk

package info (click to toggle)
nrss 0.3.9-1
  • links: PTS
  • area: main
  • in suites: jessie, jessie-kfreebsd, lenny, squeeze, stretch, wheezy
  • size: 204 kB
  • ctags: 380
  • sloc: ansic: 2,603; makefile: 74
file content (50 lines) | stat: -rw-r--r-- 858 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
VERSION = 0.3.9

# Customize the following


# Define where everything should be installed.

ifndef PREFIX
  PREFIX = /usr/local
endif

ifndef MANPREFIX
  MANPREFIX = ${PREFIX}/share/man
endif

# Define your ncurses library, usu. ncurses, but
# also can be ncursesw if built with unicode

ifeq (${shell find /usr/include/* -name ncursesw},/usr/include/ncursesw)
	CURSDEF = NCURSESW
	CURSES = ncursesw
	PANEL = panelw
else
	CURSDEF = NCURSES
	CURSES = ncurses
	PANEL = panel
endif

INCS = -I. -I/usr/include -I/usr/local/include
LIBS = -L/usr/lib -L/usr/local/lib

CFLAGS += -g -Wall -std=gnu99 ${INCS} -DVERSION=\"${VERSION}\" -D${CURSDEF}

WGET = ${shell which wget}
ifneq (${WGET},"wget not found")
	CFLAGS += -DWGET_PATH=\"${WGET}\"
endif


LIBS += -lexpat -l${CURSES} -l${PANEL}


LDFLAGS += ${LIBS}

CC = cc

.c.o:
	@echo CC $<
	@${CC} -c ${CFLAGS} $<