summaryrefslogtreecommitdiffstats
path: root/src/makefiles/Makefile.netbsd
diff options
context:
space:
mode:
Diffstat (limited to 'src/makefiles/Makefile.netbsd')
-rw-r--r--src/makefiles/Makefile.netbsd6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/makefiles/Makefile.netbsd b/src/makefiles/Makefile.netbsd
new file mode 100644
index 0000000..eb86e0b
--- /dev/null
+++ b/src/makefiles/Makefile.netbsd
@@ -0,0 +1,6 @@
+rpath = -Wl,-R'$(rpathdir)'
+
+
+# Rule for building a shared library from a single .o file
+%.so: %.o
+ $(CC) $(CFLAGS) $< $(LDFLAGS) $(LDFLAGS_SL) -shared -o $@