2 # Makefile.in for ircd/src
4 # $Id: Makefile.in 181 2006-12-18 02:56:07Z beu $
8 INSTALL_BIN
= @INSTALL_PROGRAM@
9 INSTALL_DATA
= @INSTALL_DATA@
10 INSTALL_SUID
= @INSTALL_PROGRAM@
-o root
-m
4755
15 CFLAGS
= @IRC_CFLAGS@
-DIRCD_PREFIX
=\"@
prefix@
\"
17 MKDEP
= @MKDEP@
-DIRCD_PREFIX
=\"@
prefix@
\"
22 exec_prefix = @
exec_prefix@
25 libexecdir
= @libexecdir@
34 SSL_INCLUDES
= @SSL_INCLUDES@
36 IRCDLIBS
= @MODULES_LIBS@
-L..
/libseven
-lseven @LIBS@
$(SSL_LIBS
)
38 INCLUDES
= -I.
-I..
/include -I..
/libseven
$(SSL_INCLUDES
)
39 CPPFLAGS
= ${INCLUDES} @CPPFLAGS@
43 y.tab.o
: y.tab.c ircd_parser.y
44 ${CC} ${CPPFLAGS} ${PICFLAGS} ${CFLAGS} -I.
-c y.tab.c
46 # Note GNU bison uses <file>.tab.c not y.tab.c
47 y.tab.c
: ircd_parser.y
48 ${YACC} -d ircd_parser.y
50 lex.yy.o
: lex.yy.c ircd_lexer.l
51 ${CC} ${CPPFLAGS} ${PICFLAGS} ${CFLAGS} -I.
-c
lex.yy.c
53 lex.yy.c
: ircd_lexer.l
99 SRCS
= ${BASE_SRCS
:.s
=.o
}
107 ircd
: $(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
112 -@if
test ! -d
$(DESTDIR
)$(prefix); then \
113 echo
"ircd: setting up ircd directory structure"; \
114 mkdir
-p
$(DESTDIR
)$(prefix); \
116 -@if
test ! -d
$(DESTDIR
)$(exec_prefix); then \
117 mkdir
-p
$(DESTDIR
)$(exec_prefix); \
119 -@if
test ! -d
$(DESTDIR
)$(bindir); then \
120 mkdir
-p
$(DESTDIR
)$(bindir); \
122 -@if
test ! -d
$(DESTDIR
)$(libdir); then \
123 mkdir
-p
$(DESTDIR
)$(libdir); \
126 install: install-mkdirs build
127 -@if
test -f
$(DESTDIR
)$(bindir)/ircd
; then \
128 echo
"ircd: backing up ircd"; \
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
; \
135 $(INSTALL_BIN
) $$i $(DESTDIR
)$(bindir); \
138 version.c
: version.c.SH
139 /bin
/sh .
/version.c.SH
142 # this is really the default rule for c files
144 ${CC} ${CPPFLAGS} ${CFLAGS} -c
$<
146 .PHONY
: depend
clean distclean
148 ${MKDEP} ${CPPFLAGS} ${BASE_SRCS} > .depend
151 ${RM} -f
*.o
*.exe
*~ y.tab.
* lex.yy.c ircd.core core ircd
154 lint
-aacgprxhH
$(CPPFLAGS
) -DIRCD_PREFIX
=\"@
prefix@
\" $(SRCS
) >>..
/lint.out
157 ${RM} -f Makefile version.c.last