summaryrefslogtreecommitdiff
path: root/Makefile.Linux
diff options
context:
space:
mode:
Diffstat (limited to 'Makefile.Linux')
-rw-r--r--Makefile.Linux32
1 files changed, 32 insertions, 0 deletions
diff --git a/Makefile.Linux b/Makefile.Linux
new file mode 100644
index 000000000..04484d56a
--- /dev/null
+++ b/Makefile.Linux
@@ -0,0 +1,32 @@
+# Insp Main Makefile
+#
+#
+#
+#
+
+CC = g++
+PROGS = inspircd
+FLAGS = -fPIC -frtti -O3
+LDLIBS = -ldl
+MODPATH = modules/
+MODULES = m_cloaking.so m_foobar.so m_randquote.so
+MAKEARGS = 'PROGS=${PROGS}' 'FLAGS=${FLAGS}' 'CC=${CC}' 'LDLIBS=${LDLIBS}' 'MODULES=${MODULES}'
+
+all : ircd mods
+
+mods:
+ make -C src/modules DIRNAME="src/modules" $(MAKEARGS)
+ mv src/modules/*.so $(MODPATH)
+
+ircd:
+ make -C src DIRNAME="src" $(MAKEARGS)
+ cp src/inspircd bin/inspircd
+
+clean:
+ rm -rf src/*.o
+ rm -rf src/modules/*.o
+
+modclean:
+ rm -rf modules/*.so
+
+squeakyclean: modclean clean