ViewVC Help
View File | Revision Log | Show Annotations | View Changeset | Root Listing
root/svn/ircd-hybrid/src/Makefile.in
Revision: 65
Committed: Mon Oct 3 23:33:16 2005 UTC (20 years, 10 months ago) by adx
File size: 2527 byte(s)
Log Message:
- removed external references from libio/misc
- imported s_misc.c to libio, moved CurrentTime there

File Contents

# User Rev Content
1 adx 30 #
2     # Makefile.in for ircd/src
3     #
4 knight 31 # $Id$
5 adx 30 #
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     LDFLAGS = @LDFLAGS@
14     MKDEP = @MKDEP@
15     STDOUT = @STDOUT@
16     MV = @MV@
17     RM = @RM@
18     SED = @SED@
19    
20     prefix = @prefix@
21     exec_prefix = $(DESTDIR)@exec_prefix@
22     bindir = $(DESTDIR)@bindir@
23     sysconfdir = $(DESTDIR)@sysconfdir@
24     localstatedir = $(DESTDIR)@localstatedir@
25    
26     # must not have whitespace here
27     CLOBBER=@CLOBBER@
28    
29     # If you wish to change this, look in include/defaults.h also and change SPATH
30     PROGS = ircd
31    
32     SSL_LIBS = @SSL_LIBS@
33     SSL_INCLUDES = @SSL_INCLUDES@
34 adx 59 IRCDLIBS = @MODULES_LIBS@ @LIBS@ ../libio/libio.a $(SSL_LIBS)
35 adx 61 INCLUDES = -I../include $(SSL_INCLUDES)
36 adx 30 CPPFLAGS = ${INCLUDES} @CPPFLAGS@
37    
38     default: all
39    
40     y.tab.o: y.tab.c ircd_parser.y
41     ${CC} ${CPPFLAGS} ${CFLAGS} -I. -c y.tab.c
42    
43     lex.yy.o: y.tab.c lex.yy.c ircd_lexer.l
44     ${CC} ${CPPFLAGS} ${CFLAGS} -I. -c lex.yy.c
45    
46     SSL_SRCS = rsa.c
47    
48 adx 59 SRCS = \
49 adx 30 channel.c \
50     channel_mode.c \
51     client.c \
52     csvlib.c \
53     @DYNLINK_C@ \
54     getopt.c \
55     hash.c \
56     hostmask.c \
57     ircd.c \
58     ircd_signal.c \
59     lex.yy.c \
60     listener.c \
61     m_error.c \
62     modules.c \
63     motd.c \
64     numeric.c \
65     packet.c \
66     parse.c \
67     restart.c \
68     resv.c \
69     @SSL_SRCS_ENABLE@ \
70     s_auth.c \
71     s_conf.c \
72     s_gline.c \
73     s_serv.c \
74     s_stats.c \
75     s_user.c \
76     send.c \
77     version.c \
78     whowas.c \
79     y.tab.c
80    
81     OBJS = ${SRCS:.c=.o}
82    
83     all: .depend ircd
84    
85     build: all
86    
87 adx 59 ircd: @MODULES_LIBS@ ../libio/libio.a $(OBJS)
88 adx 30 ${CC} ${CFLAGS} ${LDFLAGS} -o $@ ${OBJS} ${IRCDLIBS}
89    
90     ../modules/libmodules.a:
91     cd ../modules && ${MAKE} ${MFLAGS}
92 adx 59 ../libio/libio.a:
93     cd ../libio && ${MAKE} ${MFLAGS}
94 adx 30
95     install-mkdirs:
96     mkdir -p $(DESTDIR)$(prefix) $(exec_prefix) $(bindir) $(sysconfdir) \
97     $(localstatedir)/logs
98    
99     install: install-mkdirs build
100     @for i in $(PROGS); do \
101     if test -f $(bindir)/$$i -a -z "$(CLOBBER)"; then \
102     echo $(MV) $(bindir)/$$i $(bindir)/$$i.old; \
103     $(MV) $(bindir)/$$i $(bindir)/$$i.old; \
104     fi; \
105     echo $(INSTALL_BIN) $$i $(bindir); \
106     $(INSTALL_BIN) $$i $(bindir); \
107     done
108    
109     # this is really the default rule for c files
110     .c.o:
111     ${CC} ${CPPFLAGS} ${CFLAGS} -c $<
112    
113     .depend:
114 adx 59 ${MKDEP} ${CPPFLAGS} ${SRCS} ${STDOUT}
115 adx 30 @${SED} -e '/^# Autogenerated - do not delete/,$$d' <Makefile >Makefile.depend
116     @echo "# Autogenerated - do not delete" >> Makefile.depend
117     @echo "include .depend" >> Makefile.depend
118     @${MV} Makefile.depend Makefile
119    
120     clean:
121     ${RM} -f *.o *.exe *~ *core ircd
122    
123     distclean: clean
124     ${RM} -f Makefile .depend
125    
126     .PHONY: clean distclean install install-mkdirs build

Properties

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