]>
Commit | Line | Data |
---|---|---|
212380e3 AC |
1 | # |
2 | # Makefile.in for ircd/src/io | |
3 | # | |
4 | # $Id: Makefile.in 1269 2006-04-30 16:51:11Z nenolod $ | |
5 | # | |
6 | CC = @CC@ | |
7 | INSTALL = @INSTALL@ | |
8 | INSTALL_BIN = @INSTALL_PROGRAM@ | |
9 | INSTALL_DATA = @INSTALL_DATA@ | |
10 | INSTALL_SUID = @INSTALL_PROGRAM@ -o root -m 4755 | |
11 | RM = @RM@ | |
12 | LEX = @LEX@ | |
13 | LEXLIB = @LEXLIB@ | |
14 | CFLAGS = @IRC_CFLAGS@ -DIRCD_PREFIX=\"@prefix@\" | |
15 | LDFLAGS = @LDFLAGS@ | |
16 | MKDEP = @MKDEP@ -DIRCD_PREFIX=\"@prefix@\" | |
17 | MV = @MV@ | |
18 | RM = @RM@ | |
19 | YACC = @YACC@ | |
20 | AR = @AR@ | |
21 | RANLIB = @RANLIB@ | |
22 | ||
23 | prefix = @prefix@ | |
24 | exec_prefix = @exec_prefix@ | |
25 | bindir = @bindir@ | |
26 | libexecdir = @libexecdir@ | |
27 | sysconfdir = @sysconfdir@ | |
28 | localstatedir = @localstatedir@ | |
29 | # Change this later! -- adrian | |
30 | moduledir = @prefix@/modules | |
31 | automoduledir = @prefix@/modules/autoload | |
32 | ||
33 | INCLUDES = -I../include -I../adns -I. | |
34 | CPPFLAGS = ${INCLUDES} @CPPFLAGS@ | |
35 | ||
36 | default: all | |
37 | ||
38 | BASE_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 | ||
48 | SRCS = ${BASE_SRCS} @SELECT_TYPE@.c | |
49 | ||
50 | OBJS = ${SRCS:.c=.o} | |
51 | ||
52 | all: libcharybdis.a | |
53 | ||
54 | build: all | |
55 | ||
56 | libcharybdis.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 | ||
67 | install: | |
68 | ||
69 | depend: | |
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 | ||
78 | clean: | |
79 | ${RM} -f *.o *.exe *~ libcharybdis.a | |
80 | ||
81 | lint: | |
82 | ||
83 | distclean: clean | |
84 | ${RM} -f Makefile version.c.last | |
85 | ||
86 | # DO NOT DELETE THIS LINE!!! | |
87 | # make depend needs it. |