]> jfr.im git - solanum.git/blame - src/Makefile.am
buildsystem: build ircd itself as a library to allow removal of -undefined suppress...
[solanum.git] / src / Makefile.am
CommitLineData
c52df125
AC
1AUTOMAKE_OPTIONS = foreign
2
bc38c72c
AC
3prefix = @prefix@
4libcoredir = @libdir@
5
c52df125
AC
6AM_CPPFLAGS = @LTDLINCL@ -I$(top_srcdir)/include -I$(top_srcdir)/libratbox/include
7AM_LDFLAGS = -L$(top_srcdir)/libratbox/src -export-dynamic -avoid-version -no-undefined
8AM_YFLAGS = -d
9LDADD = @LIBLTDL@ -lratbox
10
11BUILT_SOURCES = version.c
12
13version.c: version.c.SH ../CREDITS ../include/patchlevel.h ../include/serno.h
14 $(SHELL) version.c.SH
15 $(CP) version.c version.c.last
16 touch version.c.SH
17
bc38c72c 18libcore_la_SOURCES = \
c52df125
AC
19 bandbi.c \
20 blacklist.c \
21 cache.c \
22 capability.c \
23 channel.c \
24 chmode.c \
25 class.c \
26 client.c \
27 extban.c \
28 getopt.c \
29 hash.c \
30 hook.c \
31 hostmask.c \
32 ipv4_from_ipv6.c \
33 irc_dictionary.c \
34 ircd.c \
35 ircd_parser.y \
36 ircd_lexer.l \
37 ircd_signal.c \
38 listener.c \
39 logger.c \
40 match.c \
41 modules.c \
42 monitor.c \
43 newconf.c \
44 operhash.c \
45 packet.c \
46 parse.c \
47 privilege.c \
bc38c72c 48 ratelimit.c \
c52df125
AC
49 res.c \
50 reslib.c \
51 reject.c \
52 restart.c \
53 s_auth.c \
54 s_conf.c \
55 s_newconf.c \
56 s_serv.c \
57 s_user.c \
58 scache.c \
59 send.c \
60 snomask.c \
61 sslproc.c \
62 substitution.c \
63 supported.c \
64 tgchange.c \
65 version.c \
66 whowas.c
bc38c72c
AC
67libcore_la_LDFLAGS = $(EXTRA_FLAGS) -avoid-version
68libcore_LTLIBRARIES = libcore.la
69
70bin_PROGRAMS = charybdis
71charybdis_SOURCES = main.c
72charybdis_LDADD = libcore.la
73
74install-exec-hook: install-libcoreLTLIBRARIES
75 $(RM) -f version.c