summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/Makefile.FreeBSD20
-rw-r--r--src/Makefile.Linux20
-rw-r--r--src/modules/Makefile.FreeBSD17
-rw-r--r--src/modules/Makefile.Linux17
4 files changed, 74 insertions, 0 deletions
diff --git a/src/Makefile.FreeBSD b/src/Makefile.FreeBSD
new file mode 100644
index 000000000..0b7a8b8c9
--- /dev/null
+++ b/src/Makefile.FreeBSD
@@ -0,0 +1,20 @@
+# Insp Makefile :p
+#
+#
+#
+
+CC = im a cheezeball
+
+SRC_1 = inspircd.cpp inspircd_util.cpp inspircd_io.cpp
+SRC_2 = dynamic.cpp users.cpp modules.cpp wildcard.cpp
+
+SRC = $(SRC_1) $(SRC_2)
+OBJS = $(SRC:.cpp=.o)
+
+CXXFLAGS = -I$../../include ${FLAGS}
+
+all: inspircd
+
+inspircd: $(OBJS)
+ $(CXX) -rdynamic $^ -o $@ $(LDLIBS)
+
diff --git a/src/Makefile.Linux b/src/Makefile.Linux
new file mode 100644
index 000000000..0b7a8b8c9
--- /dev/null
+++ b/src/Makefile.Linux
@@ -0,0 +1,20 @@
+# Insp Makefile :p
+#
+#
+#
+
+CC = im a cheezeball
+
+SRC_1 = inspircd.cpp inspircd_util.cpp inspircd_io.cpp
+SRC_2 = dynamic.cpp users.cpp modules.cpp wildcard.cpp
+
+SRC = $(SRC_1) $(SRC_2)
+OBJS = $(SRC:.cpp=.o)
+
+CXXFLAGS = -I$../../include ${FLAGS}
+
+all: inspircd
+
+inspircd: $(OBJS)
+ $(CXX) -rdynamic $^ -o $@ $(LDLIBS)
+
diff --git a/src/modules/Makefile.FreeBSD b/src/modules/Makefile.FreeBSD
new file mode 100644
index 000000000..af59f2b72
--- /dev/null
+++ b/src/modules/Makefile.FreeBSD
@@ -0,0 +1,17 @@
+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
+
diff --git a/src/modules/Makefile.Linux b/src/modules/Makefile.Linux
new file mode 100644
index 000000000..af59f2b72
--- /dev/null
+++ b/src/modules/Makefile.Linux
@@ -0,0 +1,17 @@
+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
+