… | |
… | |
2 | # Copyright © 2005 Atheme Development Group |
2 | # Copyright © 2005 Atheme Development Group |
3 | # Rights to this code are documented in doc/pod/license.pod. |
3 | # Rights to this code are documented in doc/pod/license.pod. |
4 | # |
4 | # |
5 | # This file contains build instructions. |
5 | # This file contains build instructions. |
6 | # |
6 | # |
7 | # $Id: Makefile.in,v 1.6 2007/07/25 01:05:17 pippijn Exp $ |
7 | # $Id: Makefile.in,v 1.7 2007/08/28 17:08:12 pippijn Exp $ |
8 | # |
8 | # |
9 | |
9 | |
10 | CXX = @CXX@ |
10 | CXX = @CXX@ |
11 | RM = @RM@ |
11 | RM = @RM@ |
12 | MV = @MV@ |
12 | MV = @MV@ |
… | |
… | |
43 | |
43 | |
44 | # Want absolute paths? |
44 | # Want absolute paths? |
45 | SRCDIR = . |
45 | SRCDIR = . |
46 | @ABSPATHS@SRCDIR= @SRCDIR@/src |
46 | @ABSPATHS@SRCDIR= @SRCDIR@/src |
47 | |
47 | |
48 | BUILDDIR = @BUILDDIR@ |
|
|
49 | |
|
|
50 | default: all |
48 | default: all |
51 | |
49 | |
52 | ACCOUNT_SRCS = \ |
50 | ACCOUNT_SRCS = \ |
53 | $(SRCDIR)/account.C \ |
51 | $(SRCDIR)/account.C \ |
54 | $(SRCDIR)/account/chanacs.C \ |
52 | $(SRCDIR)/account/chanacs.C \ |
… | |
… | |
56 | $(SRCDIR)/account/mychan.C \ |
54 | $(SRCDIR)/account/mychan.C \ |
57 | $(SRCDIR)/account/mynick.C \ |
55 | $(SRCDIR)/account/mynick.C \ |
58 | $(SRCDIR)/account/myuser.C |
56 | $(SRCDIR)/account/myuser.C |
59 | |
57 | |
60 | LIB_SRCS = \ |
58 | LIB_SRCS = \ |
61 | $(SRCDIR)/arc4random.C \ |
|
|
62 | $(SRCDIR)/authcookie.C \ |
59 | $(SRCDIR)/authcookie.C \ |
63 | $(SRCDIR)/balloc.C \ |
|
|
64 | $(SRCDIR)/base64.C \ |
60 | $(SRCDIR)/base64.C \ |
65 | $(SRCDIR)/callback.C \ |
|
|
66 | $(SRCDIR)/channels.C \ |
61 | $(SRCDIR)/channels.C \ |
67 | $(SRCDIR)/cidr.C \ |
62 | $(SRCDIR)/cidr.C \ |
68 | $(SRCDIR)/cmode.C \ |
63 | $(SRCDIR)/cmode.C \ |
69 | $(SRCDIR)/commandtree.C \ |
64 | $(SRCDIR)/commandtree.C \ |
70 | $(SRCDIR)/ctcp-common.C \ |
65 | $(SRCDIR)/ctcp-common.C \ |
… | |
… | |
78 | $(SRCDIR)/event.C \ |
73 | $(SRCDIR)/event.C \ |
79 | $(SRCDIR)/flags.C \ |
74 | $(SRCDIR)/flags.C \ |
80 | $(SRCDIR)/function.C \ |
75 | $(SRCDIR)/function.C \ |
81 | $(SRCDIR)/global.C \ |
76 | $(SRCDIR)/global.C \ |
82 | $(SRCDIR)/help.C \ |
77 | $(SRCDIR)/help.C \ |
83 | $(SRCDIR)/hook.C \ |
|
|
84 | $(SRCDIR)/linker.C \ |
|
|
85 | $(SRCDIR)/logger.C \ |
78 | $(SRCDIR)/logger.C \ |
86 | $(SRCDIR)/match.C \ |
79 | $(SRCDIR)/match.C \ |
87 | $(SRCDIR)/md5.C \ |
80 | $(SRCDIR)/md5.C \ |
88 | $(SRCDIR)/memory.C \ |
|
|
89 | $(SRCDIR)/module.C \ |
81 | $(SRCDIR)/module.C \ |
90 | $(SRCDIR)/node.C \ |
82 | $(SRCDIR)/node.C \ |
91 | $(SRCDIR)/object.C \ |
83 | $(SRCDIR)/object.C \ |
92 | $(SRCDIR)/packet.C \ |
84 | $(SRCDIR)/packet.C \ |
93 | $(SRCDIR)/parse.C \ |
85 | $(SRCDIR)/parse.C \ |
94 | $(SRCDIR)/phandler.C \ |
86 | $(SRCDIR)/phandler.C \ |
95 | $(SRCDIR)/pmodule.C \ |
87 | $(SRCDIR)/pmodule.C \ |
96 | $(SRCDIR)/privs.C \ |
88 | $(SRCDIR)/privs.C \ |
97 | $(SRCDIR)/ptasks.C \ |
89 | $(SRCDIR)/ptasks.C \ |
|
|
90 | $(SRCDIR)/random.C \ |
98 | $(SRCDIR)/send.C \ |
91 | $(SRCDIR)/send.C \ |
99 | $(SRCDIR)/servers.C \ |
92 | $(SRCDIR)/servers.C \ |
100 | $(SRCDIR)/services.C \ |
93 | $(SRCDIR)/services.C \ |
101 | $(SRCDIR)/servtree.C \ |
94 | $(SRCDIR)/servtree.C \ |
|
|
95 | $(SRCDIR)/shstr.C \ |
102 | $(SRCDIR)/signal.C \ |
96 | $(SRCDIR)/signal.C \ |
103 | $(SRCDIR)/string.C \ |
97 | $(SRCDIR)/string.C \ |
104 | $(SRCDIR)/svsignore.C \ |
98 | $(SRCDIR)/svsignore.C \ |
105 | $(SRCDIR)/table.C \ |
99 | $(SRCDIR)/table.C \ |
106 | $(SRCDIR)/template.C \ |
100 | $(SRCDIR)/template.C \ |
… | |
… | |
119 | |
113 | |
120 | build: all |
114 | build: all |
121 | |
115 | |
122 | ${BIN}: main.C ${LIB} |
116 | ${BIN}: main.C ${LIB} |
123 | @echo " LD $@" |
117 | @echo " LD $@" |
124 | @${CXX} -L${SRCDIR} -l@PACKAGE_NAME@ ${CXXFLAGS} ${LIBS} ${LDFLAGS} main.C -o $@ |
118 | @${CXX} -L${SRCDIR} -L${SRCDIR}/../modules -l@PACKAGE_NAME@ -lservices ${CXXFLAGS} ${LIBS} ${LDFLAGS} main.C -o $@ |
125 | |
119 | |
126 | ${LIB}: $(OBJS) |
120 | ${LIB}: $(OBJS) |
127 | @echo " LD $@" |
121 | @echo " LD $@" |
128 | @${CXX} ${PICFLAGS} ${OBJS} ${LIBS} ${LDFLAGS} -o $@ |
122 | @${CXX} ${PICFLAGS} ${OBJS} ${LIBS} ${LDFLAGS} -o $@ |
129 | @$(MV) version.C version.C.last |
123 | @$(MV) version.C version.C.last |