summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorbrain <brain@e03df62e-2008-0410-955e-edbf42e46eb7>2006-04-13 10:38:55 +0000
committerbrain <brain@e03df62e-2008-0410-955e-edbf42e46eb7>2006-04-13 10:38:55 +0000
commitb8a0e4415cad04fa30d891c6855429c376c23d7a (patch)
tree0bae004231d5aa417a1bf494b10ad35afce81555
parent1c86154cab44e718e9b37ccf857b19d5a9fc955b (diff)
Test
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@3875 e03df62e-2008-0410-955e-edbf42e46eb7
-rw-r--r--.Makefile.inc1
-rwxr-xr-xconfigure4
-rw-r--r--src/modes/Makefile8
-rw-r--r--src/modes/modeclasses.abin0 -> 1528 bytes
-rw-r--r--src/modes/test1.cpp0
-rw-r--r--src/modes/test2.cpp0
6 files changed, 11 insertions, 2 deletions
diff --git a/.Makefile.inc b/.Makefile.inc
index ca85da062..3101c21b5 100644
--- a/.Makefile.inc
+++ b/.Makefile.inc
@@ -34,6 +34,7 @@ mods:
ircd:
@echo "Making ircd..."
+ ${MAKE} -C src/modes DIRNAME="src/modes" $(MAKEARGS)
${MAKE} -C src DIRNAME="src" $(MAKEARGS)
install: all
diff --git a/configure b/configure
index edb4e3dbd..d5921c8e6 100755
--- a/configure
+++ b/configure
@@ -1336,7 +1336,7 @@ EOM
all: timer.o aes.o command_parse.o cull_list.o userprocess.o socketengine.o socket.o hashcomp.o channels.o mode.o xline.o inspstring.o dns.o base.o configreader.o inspsocket.o message.o $cmdobjs commands.o dnsqueue.o dynamic.o users.o modules.o wildcard.o helperfuncs.o \$(MODULES) inspircd.exe
inspircd.exe: inspircd.cpp ../include/base.h ../include/channels.h ../include/inspircd.h ../include/channels.h ../include/globals.h ../include/inspircd_config.h ../include/base.h
- \$(CC) -I../include \$(FLAGS) inspircd.cpp -o inspircd.exe \$(LDLIBS) channels.o mode.o xline.o inspstring.o dns.o base.o inspsocket.o configreader.o message.o $cmdobjs commands.o dnsqueue.o dynamic.o users.o modules.o wildcard.o helperfuncs.o hashcomp.o socket.o socketengine.o userprocess.o cull_list.o command_parse.o aes.o timer.o \$(MODULES)
+ \$(CC) -I../include \$(FLAGS) inspircd.cpp -o inspircd.exe \$(LDLIBS) channels.o mode.o xline.o inspstring.o dns.o base.o inspsocket.o configreader.o message.o $cmdobjs commands.o dnsqueue.o dynamic.o users.o modules.o wildcard.o helperfuncs.o hashcomp.o socket.o socketengine.o userprocess.o cull_list.o command_parse.o aes.o timer.o modes/modeclasses.a \$(MODULES)
EOM
}
@@ -1491,7 +1491,7 @@ libIRCDchannels.so: channels.cpp ../include/base.h ../include/channels.h ../incl
libIRCDmode.so: mode.cpp ../include/base.h ../include/mode.h ../include/inspircd.h ../include/channels.h ../include/users.h ../include/globals.h ../include/inspircd_config.h
\$(CC) -pipe -I../include \$(FLAGS) -export-dynamic -c mode.cpp
- \$(CC) -Wl,--rpath -Wl,$config{LIBRARY_DIR} -shared -o libIRCDmode.so mode.o
+ \$(CC) -Wl,--rpath -Wl,$config{LIBRARY_DIR} -shared -o libIRCDmode.so mode.o modes/modeclasses.a
libIRCDxline.so: xline.cpp ../include/base.h ../include/xline.h ../include/inspircd.h ../include/channels.h ../include/users.h ../include/globals.h ../include/inspircd_config.h
\$(CC) -pipe -I../include \$(FLAGS) -export-dynamic -c xline.cpp
diff --git a/src/modes/Makefile b/src/modes/Makefile
new file mode 100644
index 000000000..a9eb29ac7
--- /dev/null
+++ b/src/modes/Makefile
@@ -0,0 +1,8 @@
+CPPFILES = `/bin/ls -l | grep '\.cpp' | sed 's/^.* //' | grep -v svn`
+CC = i am cornholio
+CXXFLAGS = -I../../include ${FLAGS}
+
+all: ../../include/base.h ../../include/modules.h ../../include/inspircd.h ../../include/channels.h ../../include/users.h ../../include/globals.h ../../include/inspircd_config.h ../../include/mode.h
+ $(CC) -export-dynamic -c $(CPPFILES)
+ ar r modeclasses.a *.o
+
diff --git a/src/modes/modeclasses.a b/src/modes/modeclasses.a
new file mode 100644
index 000000000..a72a3a92d
--- /dev/null
+++ b/src/modes/modeclasses.a
Binary files differ
diff --git a/src/modes/test1.cpp b/src/modes/test1.cpp
new file mode 100644
index 000000000..e69de29bb
--- /dev/null
+++ b/src/modes/test1.cpp
diff --git a/src/modes/test2.cpp b/src/modes/test2.cpp
new file mode 100644
index 000000000..e69de29bb
--- /dev/null
+++ b/src/modes/test2.cpp