ViewVC Help
View File | Revision Log | Show Annotations | View Changeset | Root Listing
root/svn/branches/ircd-hybrid-newconf/src/Makefile.in
Revision: 1027
Committed: Sun Nov 8 13:01:13 2009 UTC (16 years, 9 months ago) by michael
File size: 2775 byte(s)
Log Message:
- Move old 7.3 sources to branches/ircd-hybrid-newconf

File Contents

# Content
1 #
2 # Makefile.in for ircd/src
3 #
4 # $Id$
5 #
6 @SET_MAKE@
7
8 CC = @CC@
9 INSTALL = @INSTALL@
10 INSTALL_BIN = @INSTALL_PROGRAM@
11 INSTALL_DATA = @INSTALL_DATA@
12 CFLAGS = @IRC_CFLAGS@
13 # XXX -undefined force strbuf objects to be linked in
14 LDFLAGS = @LDFLAGS@,-undefined=buf_init
15 MKDEP = @MKDEP@
16 STDOUT = @STDOUT@
17 MV = @MV@
18 RM = @RM@
19 SED = @SED@
20
21 prefix = @prefix@
22 exec_prefix = $(DESTDIR)@exec_prefix@
23 bindir = $(DESTDIR)@bindir@
24 sysconfdir = $(DESTDIR)@sysconfdir@
25 localstatedir = $(DESTDIR)@localstatedir@
26
27 # must not have whitespace here
28 CLOBBER=@CLOBBER@
29
30 # If you wish to change this, look in include/defaults.h also and change SPATH
31 PROGS = ircd
32
33 SSL_LIBS = @SSL_LIBS@
34 SSL_INCLUDES = @SSL_INCLUDES@
35 IRCDLIBS = @MODULES_LIBS@ @LIBS@ ../libio/libio.a $(SSL_LIBS)
36 INCLUDES = -I../include -I../libio $(SSL_INCLUDES)
37 CPPFLAGS = ${INCLUDES} -DIN_IRCD @CPPFLAGS@
38
39 default: all
40
41 SSL_SRCS = rsa.c
42
43 SRCS = \
44 conf/access.c \
45 conf/admin.c \
46 conf/auth.c \
47 conf/class.c \
48 conf/conf_channel.c \
49 conf/conf.c \
50 conf/connect.c \
51 conf/deny.c \
52 conf/gecos.c \
53 conf/general.c \
54 conf/glines.c \
55 conf/kill.c \
56 conf/listen.c \
57 conf/logging.c \
58 conf/modules.c \
59 conf/operator.c \
60 conf/resv.c \
61 conf/serverhide.c \
62 conf/serverinfo.c \
63 conf/shared.c \
64 conf/modern/lex.yy.c \
65 conf/modern/y.tab.c \
66 conf/modern/modern.c \
67 channel.c \
68 channel_mode.c \
69 client.c \
70 hash.c \
71 ircd.c \
72 ircd_signal.c \
73 listener.c \
74 modules.c\
75 motd.c \
76 numeric.c \
77 packet.c \
78 parse.c \
79 parse_aline.c \
80 restart.c \
81 @SSL_SRCS_ENABLE@ \
82 s_auth.c \
83 send.c \
84 server.c \
85 user.c \
86 watch.c \
87 whowas.c
88
89 OBJS = ${SRCS:.c=.o}
90
91 all: .depend ircd
92
93 build: all
94
95 ircd: @MODULES_LIBS@ ../libio/libio.a $(OBJS)
96 ${CC} ${CFLAGS} ${LDFLAGS} -o $@ ${OBJS} ${IRCDLIBS}
97
98 ../modules/libmodules.a:
99 cd ../modules && ${MAKE} ${MFLAGS}
100 ../libio/libio.a:
101 cd ../libio && ${MAKE} ${MFLAGS}
102
103 install-mkdirs:
104 mkdir -p $(DESTDIR)$(prefix) $(exec_prefix) $(bindir) $(sysconfdir) \
105 $(localstatedir)/logs
106
107 install: install-mkdirs build
108 @for i in $(PROGS); do \
109 if test -f $(bindir)/$$i -a -z "$(CLOBBER)"; then \
110 echo $(MV) $(bindir)/$$i $(bindir)/$$i.old; \
111 $(MV) $(bindir)/$$i $(bindir)/$$i.old; \
112 fi; \
113 echo $(INSTALL_BIN) $$i $(bindir); \
114 $(INSTALL_BIN) $$i $(bindir); \
115 done
116
117 # this is really the default rule for c files
118 .c.o:
119 ${CC} ${CPPFLAGS} ${CFLAGS} -c -o ${<:.c=.o} $<
120
121 .depend:
122 ${MKDEP} ${CPPFLAGS} ${SRCS} ${STDOUT}
123 @${SED} -e '/^# Autogenerated - do not delete/,$$d' <Makefile >Makefile.depend
124 @echo "# Autogenerated - do not delete" >> Makefile.depend
125 @echo "include .depend" >> Makefile.depend
126 @${MV} Makefile.depend Makefile
127
128 clean:
129 ${RM} -f *.o conf/*.o *.exe *~ *core ircd
130
131 distclean: clean
132 ${RM} -f Makefile .depend
133
134 .PHONY: clean distclean install install-mkdirs build

Properties

Name Value
svn:eol-style native
svn:keywords Id Revision