]> jfr.im git - irc/rqf/shadowircd.git/blame - src/Makefile.in
Wallops (and log) upon setting/unsetting of +M or any hidden chmode.
[irc/rqf/shadowircd.git] / src / Makefile.in
CommitLineData
212380e3 1#
2# Makefile.in for ircd/src
3#
6c8cbf34 4# $Id: Makefile.in 3360 2007-04-03 09:37:03Z nenolod $
212380e3 5#
6CC = @CC@
7INSTALL = @INSTALL@
8INSTALL_BIN = @INSTALL_PROGRAM@
9INSTALL_DATA = @INSTALL_DATA@
10INSTALL_SUID = @INSTALL_PROGRAM@ -o root -m 4755
11RM = @RM@
12LEX = @LEX@
13LEXLIB = @LEXLIB@
14PICFLAGS = @PICFLAGS@
15CFLAGS = @IRC_CFLAGS@ -DIRCD_PREFIX=\"@prefix@\"
16LDFLAGS = @LDFLAGS@
17MKDEP = @MKDEP@ -DIRCD_PREFIX=\"@prefix@\"
18MV = @MV@
19RM = @RM@
20YACC = @YACC@
21prefix = @prefix@
22exec_prefix = @exec_prefix@
23bindir = @bindir@
24libdir = @libdir@
25libexecdir = @libexecdir@
26
212380e3 27DOLLAR = $$
28
29IRCD_EXE = ircd
30
31PROGS = $(IRCD_EXE)
32
33SSL_LIBS = @SSL_LIBS@
34SSL_INCLUDES = @SSL_INCLUDES@
35
213aeb8d 36IRCDLIBS = @MODULES_LIBS@ -L../libratbox/src/.libs -lratbox @LIBS@ $(SSL_LIBS)
212380e3 37
2393f503 38INCLUDES = -I../include -I../libratbox/include $(SSL_INCLUDES)
212380e3 39CPPFLAGS = ${INCLUDES} @CPPFLAGS@
40
41default: all
42
43y.tab.o: y.tab.c ircd_parser.y
44 ${CC} ${CPPFLAGS} ${PICFLAGS} ${CFLAGS} -I. -c y.tab.c
45
46# Note GNU bison uses <file>.tab.c not y.tab.c
47y.tab.c: ircd_parser.y
48 ${YACC} -d ircd_parser.y
49
50lex.yy.o: lex.yy.c ircd_lexer.l
51 ${CC} ${CPPFLAGS} ${PICFLAGS} ${CFLAGS} -I. -c lex.yy.c
52
53lex.yy.c: ircd_lexer.l
54 ${LEX} ircd_lexer.l
55
6c8cbf34 56SRCS = \
2c9a27c4 57 bandbi.c \
212380e3 58 blacklist.c \
59 cache.c \
60 channel.c \
61 chmode.c \
62 class.c \
63 client.c \
64 extban.c \
65 getopt.c \
66 hash.c \
67 hook.c \
68 hostmask.c \
d6bda36d 69 irc_dictionary.c \
212380e3 70 ircd.c \
71 ircd_signal.c \
212380e3 72 listener.c \
d3455e2c 73 logger.c \
212380e3 74 match.c \
75 modules.c \
76 monitor.c \
77 newconf.c \
78 numeric.c \
a0f4c418 79 operhash.c \
212380e3 80 packet.c \
81 parse.c \
9291987b 82 privilege.c \
212380e3 83 res.c \
84 reslib.c \
85 reject.c \
86 restart.c \
87 s_auth.c \
88 s_conf.c \
89 s_newconf.c \
212380e3 90 s_serv.c \
212380e3 91 s_user.c \
92 scache.c \
93 send.c \
94 snomask.c \
8db00894 95 sslproc.c \
92fb5c31 96 substitution.c \
212380e3 97 supported.c \
878733fd 98 tgchange.c \
6c8cbf34 99 whowas.c
212380e3 100
101OBJS = ${SRCS:.c=.o}
102
103all: ircd
104
105build: all
106
107ircd: $(OBJS) y.tab.o lex.yy.o version.o
108 ${CC} ${CFLAGS} ${LDFLAGS} -o $@ ${OBJS} lex.yy.o y.tab.o version.o ${IRCDLIBS} ${LEXLIB}
109 mv version.c version.c.last
110
111install-mkdirs:
112 -@if test ! -d $(DESTDIR)$(prefix); then \
113 echo "ircd: setting up ircd directory structure"; \
114 mkdir $(DESTDIR)$(prefix); \
115 fi
116 -@if test ! -d $(DESTDIR)$(exec_prefix); then \
117 mkdir $(DESTDIR)$(exec_prefix); \
118 fi
119 -@if test ! -d $(DESTDIR)$(bindir); then \
120 mkdir $(DESTDIR)$(bindir); \
121 fi
122 -@if test ! -d $(DESTDIR)$(libdir); then \
123 mkdir $(DESTDIR)$(libdir); \
124 fi
125
126install: install-mkdirs build
127 -@if test -f $(DESTDIR)$(bindir)/ircd; then \
128 echo "ircd: backing up ircd"; \
129 fi
130 @echo "ircd: installing ircd ($(PROGS))"
131 @for i in $(PROGS); do \
132 if test -f $(DESTDIR)$(bindir)/$$i; then \
133 $(MV) $(DESTDIR)$(bindir)/$$i $(DESTDIR)$(bindir)/$$i.old; \
134 fi; \
135 $(INSTALL_BIN) $$i $(DESTDIR)$(bindir); \
136 done
137
138version.c: version.c.SH
139 /bin/sh ./version.c.SH
140
141
142# this is really the default rule for c files
143.c.o:
144 ${CC} ${CPPFLAGS} ${CFLAGS} -c $<
145.s.o:
146 ${CC} ${CPPFLAGS} ${CFLAGS} -c $<
147
148.PHONY: depend clean distclean
149depend:
121cd4dc 150 ${MKDEP} ${CPPFLAGS} ${SRCS} > .depend
212380e3 151
152clean:
153 ${RM} -f *.o *.exe *~ y.tab.* lex.yy.c ircd.core core ircd
154
155lint:
156 lint -aacgprxhH $(CPPFLAGS) -DIRCD_PREFIX=\"@prefix@\" $(SRCS) >>../lint.out
157
158distclean: clean
159 ${RM} -f Makefile version.c.last
160
161include .depend