summaryrefslogtreecommitdiff
path: root/vfs/null_plugin/Makefile
diff options
context:
space:
mode:
authorTomas Bzatek <tbzatek@users.sourceforge.net>2008-06-07 20:34:49 +0200
committerTomas Bzatek <tbzatek@users.sourceforge.net>2008-06-07 20:34:49 +0200
commitecde167da74c86bc047aaf84c5e548cf65a5da98 (patch)
treea015dfda84f28a65811e3aa0d369f8f211ec8c60 /vfs/null_plugin/Makefile
downloadtuxcmd-release-0.6.36-dev.tar.xz
Diffstat (limited to 'vfs/null_plugin/Makefile')
-rw-r--r--vfs/null_plugin/Makefile22
1 files changed, 22 insertions, 0 deletions
diff --git a/vfs/null_plugin/Makefile b/vfs/null_plugin/Makefile
new file mode 100644
index 0000000..f2c6e7e
--- /dev/null
+++ b/vfs/null_plugin/Makefile
@@ -0,0 +1,22 @@
+# path definitions
+DESTDIR = /usr
+INSTALL=install -c
+INSTALL_DATA = ${INSTALL} -m 644
+LIB_SUFFIX=`if test \`uname -m\` = x86_64; then echo 64; fi`
+
+# compiler options
+CC = gcc
+CFLAGS = -Wall -O2 -g
+
+
+all shared static: null_plugin
+
+null_plugin: null_plugin.c
+ $(CC) -c null_plugin.c -I. -fPIC -I/usr/include $(CFLAGS)
+ $(CC) -shared -Wall -o libnull_plugin.so null_plugin.o
+
+install::
+ $(INSTALL) ./libnull_plugin.so $(DESTDIR)/lib$(LIB_SUFFIX)/tuxcmd/
+
+clean:
+ rm -f *.o libnull_plugin.so