ViewVC Help
View File | Revision Log | Show Annotations | Download File
/cvs/ermyth/src/Makefile.in
Revision: 1.10
Committed: Sun Sep 9 20:05:52 2007 UTC (16 years, 8 months ago) by pippijn
Branch: MAIN
Changes since 1.9: +3 -2 lines
Log Message:
- changed configurations to the c++ stdlib
- more #defines to enum
- removed getopt.h and link.h from the system as they were unused
- reworked logstreams
- added an itoa with old syntax
- made klines objects
- moved some global variables into appropriate classes
- fixed boost.foreach's compiler workaround #if's
- allow other files to add exceptions with ADD_EXCEPTION
- changed mynick_t to c++ object
- moved servers.h out of atheme.h
- corrected PING from inspircd 1.2

File Contents

# User Rev Content
1 pippijn 1.1 # Copyright © 2007 Pippijn van Steenhoven / The Ermyth Team
2     # Copyright © 2005 Atheme Development Group
3 pippijn 1.2 # Rights to this code are documented in doc/pod/license.pod.
4 pippijn 1.1 #
5     # This file contains build instructions.
6     #
7 pippijn 1.10 # $Id: Makefile.in,v 1.9 2007-09-05 11:23:15 pippijn Exp $
8 pippijn 1.1 #
9    
10     CXX = @CXX@
11     RM = @RM@
12     MV = @MV@
13     CP = @CP@
14     INSTALL = @INSTALL@
15     prefix = @prefix@
16     exec_prefix = @exec_prefix@
17     datarootdir = @datarootdir@
18     bindir = @bindir@
19     datadir = @datadir@
20     sysconfdir = @sysconfdir@
21     libdir = @libdir@
22     sbindir = @sbindir@
23     localstatedir = @localstatedir@
24     DOCDIR = @DOCDIR@
25     MODDIR = @MODDIR@
26     DATADIR = @DATADIR@
27     RUNDIR = @RUNDIR@
28     LOGDIR = @LOGDIR@
29     SHAREDIR = @SHAREDIR@
30     BIN = @PACKAGE_NAME@@EXEEXT@
31     LIB = lib@PACKAGE_NAME@.so
32     MKDEP = @MKDEP@
33     CXXFLAGS = @CXXFLAGS@ -I../include -DBINDIR=\"$(bindir)\"
34     PICFLAGS = @PICFLAGS@
35    
36     VERSION = @PACKAGE_VERSION@
37    
38     LIBS = @LIBS@
39     LDFLAGS = @LDFLAGS@ @LTLIBINTL@
40     RPATH = @RPATH@
41     CPPFLAGS = @CPPFLAGS@
42     SOCKET_ENGINE = @SOCKET_ENGINE@.C
43    
44     # Want absolute paths?
45     SRCDIR = .
46     @ABSPATHS@SRCDIR= @SRCDIR@/src
47    
48     default: all
49    
50     ACCOUNT_SRCS = \
51     $(SRCDIR)/account.C \
52     $(SRCDIR)/account/chanacs.C \
53     $(SRCDIR)/account/metadata.C \
54     $(SRCDIR)/account/mychan.C \
55     $(SRCDIR)/account/mynick.C \
56     $(SRCDIR)/account/myuser.C
57    
58     LIB_SRCS = \
59     $(SRCDIR)/authcookie.C \
60     $(SRCDIR)/base64.C \
61     $(SRCDIR)/channels.C \
62     $(SRCDIR)/cidr.C \
63     $(SRCDIR)/cmode.C \
64     $(SRCDIR)/commandtree.C \
65     $(SRCDIR)/ctcp-common.C \
66     $(SRCDIR)/conf.C \
67     $(SRCDIR)/confparse.C \
68     $(SRCDIR)/connection.C \
69     $(SRCDIR)/crypto.C \
70     $(SRCDIR)/datastream.C \
71     $(SRCDIR)/dlink.C \
72     $(SRCDIR)/event.C \
73     $(SRCDIR)/flags.C \
74     $(SRCDIR)/function.C \
75     $(SRCDIR)/global.C \
76     $(SRCDIR)/help.C \
77     $(SRCDIR)/logger.C \
78     $(SRCDIR)/match.C \
79     $(SRCDIR)/md5.C \
80     $(SRCDIR)/module.C \
81     $(SRCDIR)/node.C \
82     $(SRCDIR)/object.C \
83     $(SRCDIR)/packet.C \
84     $(SRCDIR)/parse.C \
85     $(SRCDIR)/phandler.C \
86     $(SRCDIR)/pmodule.C \
87     $(SRCDIR)/privs.C \
88     $(SRCDIR)/ptasks.C \
89 pippijn 1.7 $(SRCDIR)/random.C \
90 pippijn 1.1 $(SRCDIR)/send.C \
91     $(SRCDIR)/servers.C \
92     $(SRCDIR)/services.C \
93     $(SRCDIR)/servtree.C \
94 pippijn 1.7 $(SRCDIR)/shstr.C \
95 pippijn 1.1 $(SRCDIR)/signal.C \
96     $(SRCDIR)/string.C \
97     $(SRCDIR)/svsignore.C \
98     $(SRCDIR)/table.C \
99     $(SRCDIR)/template.C \
100     $(SRCDIR)/tokenize.C \
101     $(SRCDIR)/ubase64.C \
102     $(SRCDIR)/uid.C \
103     $(SRCDIR)/uplink.C \
104 pippijn 1.10 $(SRCDIR)/users.C \
105     $(SRCDIR)/util.C \
106 pippijn 1.1 $(SRCDIR)/${SOCKET_ENGINE}
107    
108 pippijn 1.5 SRCS = ${ACCOUNT_SRCS} ${LIB_SRCS} $(SRCDIR)/version.C
109 pippijn 1.1
110     OBJS = ${SRCS:.C=.o}
111    
112     all: ${BIN} ../dist/example.userserv.conf
113    
114     build: all
115    
116     ${BIN}: main.C ${LIB}
117     @echo " LD $@"
118 pippijn 1.7 @${CXX} -L${SRCDIR} -L${SRCDIR}/../modules -l@PACKAGE_NAME@ -lservices ${CXXFLAGS} ${LIBS} ${LDFLAGS} main.C -o $@
119 pippijn 1.1
120     ${LIB}: $(OBJS)
121     @echo " LD $@"
122     @${CXX} ${PICFLAGS} ${OBJS} ${LIBS} ${LDFLAGS} -o $@
123     @$(MV) version.C version.C.last
124    
125     ../dist/example.userserv.conf: ../dist/example.conf
126     (echo '/* example.userserv.conf, autogenerated from example.conf */'; \
127     sed -e 's@loadmodule "modules/nickserv/identify";@#&@' \
128     -e 's@loadmodule "modules/nickserv/ghost";@#&@' \
129     -e 's@#loadmodule "modules/nickserv/login";@loadmodule "modules/nickserv/login";@' \
130     -e 's/spam;/#spam;/' \
131     -e 's/#no_nick_ownership;/no_nick_ownership;/' \
132     -e 's/nick = "NickServ";/nick = "UserServ";/' \
133     -e 's/user = "NickServ";/user = "UserServ";/' \
134     -e 's/real = "Nickname Services";/real = "User Registration Services";/' ../dist/example.conf) >../dist/example.userserv.conf
135    
136     install: build
137     $(INSTALL) -m 755 -d $(DESTDIR)$(prefix)
138     $(INSTALL) -m 755 -d $(DESTDIR)$(bindir)
139     $(INSTALL) -m 755 -d $(DESTDIR)$(sysconfdir)
140     $(INSTALL) -m 755 -d $(DESTDIR)$(localstatedir)
141     $(INSTALL) -m 755 -d $(DESTDIR)$(LOGDIR)
142     $(INSTALL) -m 755 -d $(DESTDIR)$(RUNDIR)
143     $(INSTALL) -m 755 -d $(DESTDIR)$(DATADIR)
144     $(INSTALL) -m 755 -c $(BIN) $(DESTDIR)$(bindir)
145     $(INSTALL) -m 755 -c $(LIB) $(DESTDIR)$(bindir)
146     $(INSTALL) -m 640 -c ../dist/example.conf $(DESTDIR)$(sysconfdir)
147     $(INSTALL) -m 640 -c ../dist/example.motd $(DESTDIR)$(sysconfdir)
148     $(INSTALL) -m 640 -c ../dist/example.userserv.conf $(DESTDIR)$(sysconfdir)
149 pippijn 1.6 $(INSTALL) -m 640 -c ../dist/ermyth.chk $(DESTDIR)$(sysconfdir)/ermyth.chk.sample
150 pippijn 1.1
151     @echo "----------------------------------------------------------------"
152     @echo ">>> Remember to cd to ${prefix} and edit your config file.";
153     @echo "----------------------------------------------------------------"
154    
155     #deinstall:
156     # if [ -d ${prefix} ] ; then \
157     # $(RM) -rf ${prefix}; \
158     # fi
159    
160     $(SRCDIR)/version.C:
161     @/bin/sh ./version.sh $(VERSION)
162    
163     .C.o:
164     @echo " CC $@"
165     @${CXX} ${PICFLAGS} ${CPPFLAGS} ${CXXFLAGS} -c $< -o $@
166    
167     .PHONY: depend clean distclean
168     # This sed command sucks but I don't know a better way -- jilles
169     depend:
170     @${MKDEP} ${PICFLAGS} ${CPPFLAGS} ${CXXFLAGS} ${LIB_SRCS} | sed -e 's|\([^.]*\.o\):|$(SRCDIR)/\1:|' > .depend
171 pippijn 1.5 @${MKDEP} ${PICFLAGS} ${CPPFLAGS} ${CXXFLAGS} ${ACCOUNT_SRCS} | sed -e 's|\([^.]*\.o\):|$(SRCDIR)/account/\1:|' >> .depend
172 pippijn 1.1
173     clean:
174 pippijn 1.3 @${RM} -f ${OBJS} *.exe *~ version.C ${BIN}.core core ${LIB} ${BIN} ../dist/example.userserv.conf
175 pippijn 1.1
176     distclean: clean
177     @${RM} -f Makefile version.C.last .depend
178    
179     maintainer-clean: distclean
180    
181     include .depend