Prevent wrapper.c from flooding the IRC server.
[iii.git] / config.mk
blobe7b5cf1d7aa7ac6acfc354faa965ef0f60247475
1 # Customize to fit your system.
3 # If an environment variable is available, the affected setting below is either
4 # skipped or (if the variable is holding flags) appended to the already defined
5 # string.
7 # File paths:
8 PREFIX ?= /usr/local
9 BINDIR ?= ${PREFIX}/bin
10 MANDIR ?= ${PREFIX}/share/man
11 MAN1DIR ?= ${MANDIR}/man1
12 DOCDIR ?= ${PREFIX}/share/doc/ii
14 # Set the following to install to a different root directory:
15 DESTDIR ?=
17 INCDIR ?= ${PREFIX}/include
18 LIBDIR ?= ${PREFIX}/lib
19 VERSION ?= 1.6
20 # The ii executable that the wrapper program will use:
21 II_EXEC ?= ii
22 # Amount of seconds that it (generally) takes for ii to connect:
23 CHLD_SLEEP ?= 300
24 # Amount of seconds before wrapper initiates an ii instance:
25 LOOP_SLEEP ?= 60
27 # Includes and libs:
28 INCLUDES += -I. -I${INCDIR} -I/usr/include
29 LIBS += -L${LIBDIR} -L/usr/lib -lc -lssl -lcrypto
31 # Compiler flags:
32 CC ?= cc
33 CFLAGS += -g -O0 -W -Wall ${INCLUDES} -DVERSION=\"${VERSION}\" \
34 -DII_EXEC=\"${II_EXEC}\" -DCHLD_SLEEP=${CHLD_SLEEP} \
35 -DLOOP_SLEEP=${LOOP_SLEEP} -DHAVE_SSL
36 LDFLAGS += ${LIBS}
38 # Uncomment for compiling on Solaris:
39 #LIBS = -L${LIBDIR} -L/usr/lib -lc -lsocket -lnsl -lssl -lcrypto
40 #CFLAGS = -g ${INCLUDES} -DVERSION=\"${VERSION}\" \
41 -DII_EXEC=\"${II_EXEC}\" -DCHLD_SLEEP=${CHLD_SLEEP} \
42 -DLOOP_SLEEP=${LOOP_SLEEP} -DHAVE_SSL
44 # Uncomment to disable SSL support in ii:
45 #LIBS = -L${LIBDIR} -L/usr/lib -lc
46 #CFLAGS = -g -O0 -W -Wall ${INCLUDES} -DVERSION=\"${VERSION}\" \
47 -DII_EXEC=\"${II_EXEC}\" -DCHLD_SLEEP=${CHLD_SLEEP} \
48 -DLOOP_SLEEP=${LOOP_SLEEP}