File: config.mk

package info (click to toggle)
irssi-plugin-xmpp 0.51+cvs20100627-1
  • links: PTS
  • area: main
  • in suites: squeeze
  • size: 876 kB
  • ctags: 720
  • sloc: ansic: 7,731; makefile: 135
file content (32 lines) | stat: -rw-r--r-- 794 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
# paths
PREFIX ?= /usr/local

# where are the sources of irssi?
IRSSI_INCLUDE ?= ${PREFIX}/include/irssi
# where should be installed the module?
IRSSI_LIB ?= ${PREFIX}/lib/irssi
# where should be installed the documentation?
IRSSI_DOC ?= ${PREFIX}/share/doc/irssi
# where should be installed the help for commands ?
IRSSI_HELP ?= ${PREFIX}/share/irssi/help

# includes and libs
INCS =	${LIB_INCS} \
	-I../../src/core \
	-I${IRSSI_INCLUDE} \
	-I${IRSSI_INCLUDE}/src \
	-I${IRSSI_INCLUDE}/src/core \
	-I$(IRSSI_INCLUDE)/src/fe-common/core \
	-I$(IRSSI_INCLUDE)/src/fe-text \
	`pkg-config --cflags loudmouth-1.0`
LIBS =	${LIB_LIBS}

# flags
CFLAGS = -fPIC -std=c99 -DUOFF_T_LONG ${INCS}
LDFLAGS = -shared ${LIBS}

# debug
CFLAGS += -W -g -Wall -Wno-unused-parameter

# compiler and linker
CC = cc