]> jfr.im git - irc/rqf/shadowircd.git/blame - libcharybdis/Makefile.in
[svn] - update config files
[irc/rqf/shadowircd.git] / libcharybdis / Makefile.in
CommitLineData
212380e3 1#
2# Makefile.in for ircd/src/io
3#
4# $Id: Makefile.in 1269 2006-04-30 16:51:11Z nenolod $
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@
14CFLAGS = @IRC_CFLAGS@ -DIRCD_PREFIX=\"@prefix@\"
15LDFLAGS = @LDFLAGS@
16MKDEP = @MKDEP@ -DIRCD_PREFIX=\"@prefix@\"
17MV = @MV@
18RM = @RM@
19YACC = @YACC@
20AR = @AR@
21RANLIB = @RANLIB@
22
23prefix = @prefix@
24exec_prefix = @exec_prefix@
25bindir = @bindir@
26libexecdir = @libexecdir@
27sysconfdir = @sysconfdir@
28localstatedir = @localstatedir@
29# Change this later! -- adrian
30moduledir = @prefix@/modules
31automoduledir = @prefix@/modules/autoload
32
33INCLUDES = -I../include -I../adns -I.
34CPPFLAGS = ${INCLUDES} @CPPFLAGS@
35
36default: all
37
38BASE_SRCS = \
39 balloc.c \
40 commio.c \
41 event.c \
42 libcharybdis.c \
43 linebuf.c \
44 memory.c \
45 snprintf.c \
46 tools.c
47
48SRCS = ${BASE_SRCS} @SELECT_TYPE@.c
49
50OBJS = ${SRCS:.c=.o}
51
52all: libcharybdis.a
53
54build: all
55
56libcharybdis.a: ${OBJS}
57 rm -f $@
58 ${AR} cqv $@ ${OBJS}
59 ${RANLIB} $@
60
61# this is really the default rule for c files
62.c.o:
63 ${CC} ${CPPFLAGS} ${CFLAGS} -c $<
64
65.PHONY: depend clean distclean
66
67install:
68
69depend:
70 @${MKDEP} ${CPPFLAGS} ${BASE_SRCS} ${EXTRA_SRCS} > .depend.tmp
71 @sed -e '/^# DO NOT DELETE THIS LINE/,$$d' <Makefile >Makefile.depend
72 @echo '# DO NOT DELETE THIS LINE!!!' >>Makefile.depend
73 @echo '# make depend needs it.' >>Makefile.depend
74 @cat .depend.tmp >>Makefile.depend
75 @mv Makefile.depend Makefile
76 @rm -f .depend.tmp
77
78clean:
79 ${RM} -f *.o *.exe *~ libcharybdis.a
80
81lint:
82
83distclean: clean
84 ${RM} -f Makefile version.c.last
85
86# DO NOT DELETE THIS LINE!!!
87# make depend needs it.