Restore stats_spy hook that was removed in commit 401f2454671ca233e35b0e6e4f3fa4c43cd...
[seven-1.x.git] / src / Makefile.in
blob7049561ecb801c8ffd15180cacc3b30b6b264aa9
2 # Makefile.in for ircd/src
4 CC = @CC@
5 INSTALL = @INSTALL@
6 INSTALL_BIN = @INSTALL_PROGRAM@
7 INSTALL_DATA = @INSTALL_DATA@
8 INSTALL_SUID = @INSTALL_PROGRAM@ -o root -m 4755
9 RM = @RM@
10 LEX = @LEX@
11 LEXLIB = @LEXLIB@
12 PICFLAGS = @PICFLAGS@
13 CFLAGS = @IRC_CFLAGS@ -DIRCD_PREFIX=\"@prefix@\"
14 LDFLAGS = @LDFLAGS@
15 MKDEP = @MKDEP@ -DIRCD_PREFIX=\"@prefix@\"
16 MV = @MV@
17 RM = @RM@
18 YACC = @YACC@
19 prefix = @prefix@
20 exec_prefix = @exec_prefix@
21 bindir = @bindir@
22 libdir = @libdir@
23 libexecdir = @libexecdir@
25 DOLLAR = $$
27 IRCD_EXE = ircd
29 PROGS = $(IRCD_EXE)
31 SSL_LIBS = @SSL_LIBS@
32 SSL_INCLUDES = @SSL_INCLUDES@
34 IRCDLIBS = @MODULES_LIBS@ -L../libseven -lseven @LIBS@ $(SSL_LIBS)
36 INCLUDES = -I. -I../include -I../libseven $(SSL_INCLUDES)
37 CPPFLAGS = ${INCLUDES} @CPPFLAGS@
39 default: all
41 y.tab.o: y.tab.c ircd_parser.y
42 ${CC} ${CPPFLAGS} ${PICFLAGS} ${CFLAGS} -I. -c y.tab.c
44 # Note GNU bison uses <file>.tab.c not y.tab.c
45 y.tab.c: ircd_parser.y
46 ${YACC} -d ircd_parser.y
48 lex.yy.o: lex.yy.c ircd_lexer.l
49 ${CC} ${CPPFLAGS} ${PICFLAGS} ${CFLAGS} -I. -c lex.yy.c
51 lex.yy.c: ircd_lexer.l
52 ${LEX} ircd_lexer.l
54 BASE_SRCS = \
55 blacklist.c \
56 cache.c \
57 channel.c \
58 chmode.c \
59 class.c \
60 client.c \
61 extban.c \
62 getopt.c \
63 hash.c \
64 hook.c \
65 hostmask.c \
66 irc_string.c \
67 ircd.c \
68 ircd_signal.c \
69 ircd_state.c \
70 kdparse.c \
71 listener.c \
72 match.c \
73 modules.c \
74 monitor.c \
75 newconf.c \
76 numeric.c \
77 packet.c \
78 parse.c \
79 patricia.c \
80 res.c \
81 reslib.c \
82 reject.c \
83 restart.c \
84 s_auth.c \
85 s_conf.c \
86 s_newconf.c \
87 s_log.c \
88 s_serv.c \
89 s_stats.c \
90 s_user.c \
91 scache.c \
92 send.c \
93 snomask.c \
94 supported.c \
95 whowas.c
97 SRCS = ${BASE_SRCS:.s=.o}
99 OBJS = ${SRCS:.c=.o}
101 all: ircd
103 build: all
105 ircd: $(OBJS) y.tab.o lex.yy.o version.o
106 ${CC} ${CFLAGS} ${LDFLAGS} -o $@ ${OBJS} lex.yy.o y.tab.o version.o ${IRCDLIBS} ${LEXLIB}
107 mv version.c version.c.last
109 install-mkdirs:
110 -@if test ! -d $(DESTDIR)$(prefix); then \
111 echo "ircd: setting up ircd directory structure"; \
112 mkdir -p $(DESTDIR)$(prefix); \
114 -@if test ! -d $(DESTDIR)$(exec_prefix); then \
115 mkdir -p $(DESTDIR)$(exec_prefix); \
117 -@if test ! -d $(DESTDIR)$(bindir); then \
118 mkdir -p $(DESTDIR)$(bindir); \
120 -@if test ! -d $(DESTDIR)$(libdir); then \
121 mkdir -p $(DESTDIR)$(libdir); \
124 install: install-mkdirs build
125 -@if test -f $(DESTDIR)$(bindir)/ircd; then \
126 echo "ircd: backing up ircd"; \
128 @echo "ircd: installing ircd ($(PROGS))"
129 @for i in $(PROGS); do \
130 if test -f $(DESTDIR)$(bindir)/$$i; then \
131 $(MV) $(DESTDIR)$(bindir)/$$i $(DESTDIR)$(bindir)/$$i.old; \
132 fi; \
133 $(INSTALL_BIN) $$i $(DESTDIR)$(bindir); \
134 done
136 version.c: version.c.SH
137 /bin/sh ./version.c.SH
140 # this is really the default rule for c files
141 .c.o:
142 ${CC} ${CPPFLAGS} ${CFLAGS} -c $<
144 .PHONY: depend clean distclean
145 depend:
146 ${MKDEP} ${CPPFLAGS} ${BASE_SRCS} > .depend
148 clean:
149 ${RM} -f *.o *.exe *~ y.tab.* lex.yy.c ircd.core core ircd
151 lint:
152 lint -aacgprxhH $(CPPFLAGS) -DIRCD_PREFIX=\"@prefix@\" $(SRCS) >>../lint.out
154 distclean: clean
155 ${RM} -f Makefile version.c.last
157 include .depend