LEX = @LEX@
LEXLIB = @LEXLIB@
PICFLAGS = @PICFLAGS@
-CFLAGS = @IRC_CFLAGS@ -DIRCD_PREFIX=\"@prefix@\"
+CFLAGS = @IRC_CFLAGS@
LDFLAGS = @LDFLAGS@
MKDEP = @MKDEP@ -DIRCD_PREFIX=\"@prefix@\"
MV = @MV@
bindir = @bindir@
libdir = @libdir@
libexecdir = @libexecdir@
+pkglibexecdir = @pkglibexecdir@
+
+PROGRAM_PREFIX = @PROGRAM_PREFIX@
DOLLAR = $$
IRCDLIBS = @MODULES_LIBS@ -L../libratbox/src/.libs -lratbox @LIBS@ $(SSL_LIBS)
INCLUDES = -I../include -I../libratbox/include $(SSL_INCLUDES)
-CPPFLAGS = ${INCLUDES} @CPPFLAGS@
+CPPFLAGS = ${INCLUDES} -DIRCD_PREFIX=\"@prefix@\" @CPPFLAGS@
default: all
# Note GNU bison uses <file>.tab.c not y.tab.c
y.tab.c: ircd_parser.y
${YACC} -d ircd_parser.y
+y.tab.h: y.tab.c
-lex.yy.o: lex.yy.c ircd_lexer.l
+lex.yy.o: lex.yy.c ircd_lexer.l y.tab.h
${CC} ${CPPFLAGS} ${PICFLAGS} ${CFLAGS} -I. -c lex.yy.c
lex.yy.c: ircd_lexer.l
${LEX} ircd_lexer.l
SRCS = \
+ bandbi.c \
blacklist.c \
cache.c \
+ capability.c \
channel.c \
chmode.c \
class.c \
hash.c \
hook.c \
hostmask.c \
+ ipv4_from_ipv6.c \
irc_dictionary.c \
ircd.c \
ircd_signal.c \
- kdparse.c \
listener.c \
logger.c \
match.c \
modules.c \
monitor.c \
newconf.c \
- numeric.c \
+ operhash.c \
packet.c \
parse.c \
privilege.c \
+ ratelimit.c \
res.c \
reslib.c \
reject.c \
sslproc.c \
substitution.c \
supported.c \
+ tgchange.c \
whowas.c
OBJS = ${SRCS:.c=.o}
fi
@echo "ircd: installing ircd ($(PROGS))"
@for i in $(PROGS); do \
- if test -f $(DESTDIR)$(bindir)/$$i; then \
- $(MV) $(DESTDIR)$(bindir)/$$i $(DESTDIR)$(bindir)/$$i.old; \
+ if test -f $(DESTDIR)$(bindir)/$(PROGRAM_PREFIX)$$i; then \
+ $(MV) $(DESTDIR)$(bindir)/$(PROGRAM_PREFIX)$$i $(DESTDIR)$(bindir)/$(PROGRAM_PREFIX)$$i.old; \
fi; \
- $(INSTALL_BIN) $$i $(DESTDIR)$(bindir); \
+ $(INSTALL_BIN) $$i $(DESTDIR)$(bindir)/$(PROGRAM_PREFIX)$$i; \
done
version.c: version.c.SH