0
0
Fork 0
mirror of https://github.com/matrix-construct/construct synced 2024-11-05 13:28:54 +01:00
construct/ircd/Makefile.am

103 lines
2.5 KiB
Makefile
Raw Normal View History

AUTOMAKE_OPTIONS = foreign
2016-07-20 20:55:46 +02:00
libircddir = @libdir@
# NOTE: the c++ version has a radically different API
#AM_YFLAGS = -d --language=c++
AM_YFLAGS = -d
2016-07-20 20:55:46 +02:00
AM_CPPFLAGS = \
-I$(top_srcdir)/include \
@LTDLINCL@ \
@BOOST_CPPFLAGS@ \
-include ircd/ircd.h
2016-07-20 20:55:46 +02:00
if MINGW
2016-07-20 20:55:46 +02:00
PLATFORM_LDFLAGS = -Wl,--enable-runtime-pseudo-reloc -export-symbols-regex '*'
endif
2016-07-20 20:55:46 +02:00
AM_LDFLAGS = \
-export-dynamic \
-avoid-version \
-no-undefined \
$(PLATFORM_LDFLAGS)
AM_LDFLAGS += \
-L$(top_srcdir)/rb \
@BOOST_LDFLAGS@
BUILT_SOURCES = ircd_lexer.cc ircd_parser.cc
2016-07-20 20:55:46 +02:00
libircd_LTLIBRARIES = libircd.la
libircd_la_LIBADD = \
-lrb \
@LIBLTDL@ \
@BOOST_LIBS@
libircd_la_SOURCES = \
authproc.cc \
bandbi.cc \
cache.cc \
capability.cc \
channel.cc \
chmode.cc \
class.cc \
client.cc \
dns.cc \
2016-07-26 04:06:31 +02:00
exception.cc \
extban.cc \
fs.cc \
getopt.cc \
hash.cc \
hook.cc \
hostmask.cc \
info.cc \
ircd.cc \
ircd_lexer.cc \
ircd_parser.cc \
ircd_signal.cc \
listener.cc \
logger.cc \
match.cc \
modules.cc \
monitor.cc \
msgbuf.cc \
newconf.cc \
operhash.cc \
packet.cc \
parse.cc \
privilege.cc \
ratelimit.cc \
reject.cc \
restart.cc \
rfc1459.cc \
s_conf.cc \
s_newconf.cc \
s_serv.cc \
s_user.cc \
scache.cc \
send.cc \
snomask.cc \
sslproc.cc \
substitution.cc \
supported.cc \
tgchange.cc \
whowas.cc \
wsproc.cc
ircd_lexer.cc:
flex $(AM_LFLAGS) -o ircd_lexer.cc ircd_lexer.ll
ircd_parser.cc:
$(YACC) $(AM_YFLAGS) -o ircd_parser.cc ircd_parser.yy
install-data-local:
test -d $(prefix)/@logdir@ || mkdir -p $(prefix)/@logdir@
clean-local:
rm -f ircd_lexer.c ircd_lexer.cc
rm -f ircd_parser.c ircd_parser.cc
rm -f ircd_parser.h ircd_parser.hh
rm -f stack.hh