2 # Makefile.in for ircd/src
6 INSTALL_BIN
= @INSTALL_PROGRAM@
7 INSTALL_DATA
= @INSTALL_DATA@
8 INSTALL_SUID
= @INSTALL_PROGRAM@
-o root
-m
4755
13 CFLAGS
= @IRC_CFLAGS@
-DIRCD_PREFIX
=\"@
prefix@
\"
15 MKDEP
= @MKDEP@
-DIRCD_PREFIX
=\"@
prefix@
\"
20 exec_prefix = @
exec_prefix@
23 libexecdir
= @libexecdir@
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@
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
97 SRCS
= ${BASE_SRCS
:.s
=.o
}
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
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
; \
133 $(INSTALL_BIN
) $$i $(DESTDIR
)$(bindir); \
136 version.c
: version.c.SH
137 /bin
/sh .
/version.c.SH
140 # this is really the default rule for c files
142 ${CC} ${CPPFLAGS} ${CFLAGS} -c
$<
144 .PHONY
: depend
clean distclean
146 ${MKDEP} ${CPPFLAGS} ${BASE_SRCS} > .depend
149 ${RM} -f
*.o
*.exe
*~ y.tab.
* lex.yy.c ircd.core core ircd
152 lint
-aacgprxhH
$(CPPFLAGS
) -DIRCD_PREFIX
=\"@
prefix@
\" $(SRCS
) >>..
/lint.out
155 ${RM} -f Makefile version.c.last