summaryrefslogtreecommitdiff
path: root/src/modules/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'src/modules/Makefile')
-rw-r--r--src/modules/Makefile22
1 files changed, 22 insertions, 0 deletions
diff --git a/src/modules/Makefile b/src/modules/Makefile
new file mode 100644
index 000000000..75f6f6ab2
--- /dev/null
+++ b/src/modules/Makefile
@@ -0,0 +1,22 @@
+# (C) ChatSpike development team
+# Makefile by <Craig@ChatSpike.net>
+# Small modifications by <brain@ChatSpike.net>
+#
+
+CXXFLAGS = -I../../include ${FLAGS}
+
+MODS = `/bin/ls *.cpp | sed 's/.cpp//'`
+MODULES = $(MODS)
+
+MODS2 = `/bin/ls *.cpp`
+MODULES2 = $(MODS2:.cpp=.so)
+
+main:
+ rm -f .make ; \
+ for i in $(MODULES) ; do \
+ echo "$(CXX) $(CXXFLAGS) -shared -o $$i `echo $$i | sed 's/.so/.cpp/'`">>.make ; \
+ done ; chmod u+x .make ; ./.make
+
+
+all: main
+