summaryrefslogtreecommitdiff
path: root/netfs/makefile.in
diff options
context:
space:
mode:
Diffstat (limited to 'netfs/makefile.in')
-rw-r--r--netfs/makefile.in63
1 files changed, 63 insertions, 0 deletions
diff --git a/netfs/makefile.in b/netfs/makefile.in
new file mode 100644
index 0000000..f7901ba
--- /dev/null
+++ b/netfs/makefile.in
@@ -0,0 +1,63 @@
+FUSEFLAGS=-D_FILE_OFFSET_BITS=64
+COMPFLAGS=-DTHREADSAFE -I ../libmisc -I /usr/include/libxml2
+myCXXFLAGS=${CXXFLAGS} ${COMPFLAGS} ${FUSEFLAGS}
+LDFLAGS=-lfuse -Xlinker --warn-once -L ../libmisc -l misc -l xml2
+CXX=g++
+CC=${CXX}
+default : makefile all
+
+-include makedeps.mk
+
+all : makedeps.mk tags netfs netfsd
+makefile : makefile.in
+ @echo "Makefile out of date. Please re-run configure."
+ @false
+
+makedeps.mk : $(patsubst %.cpp, %.d, $(wildcard *.cpp)) $(wildcard *.h)
+ cat *.d > $@
+
+%.o : %.d
+
+%.o : %.cpp
+ g++ -c ${myCXXFLAGS} $< -o $@
+%.d : %.cpp $(wildcard *.h)
+ g++ -M ${myCXXFLAGS} $< -o $@
+
+tags : $(wildcard *.c*) $(wildcard *.h)
+ @exuberant-ctags -R
+
+NETFSOBJS= \
+ comms.o \
+ fuse.o \
+ fuseapp.o \
+ msgtypes.o \
+
+NETFSDOBJS= \
+ comms.o \
+ daemon.o \
+ daemonConfig.o \
+ msgtypes.o \
+
+netfs : ${NETFSOBJS}
+ g++ -o $@ ${NETFSOBJS} ${LDFLAGS}
+
+netfsd : ${NETFSDOBJS}
+ g++ -o $@ ${NETFSDOBJS} ${LDFLAGS}
+
+.SUFFIXES: .cpp .o
+.PHONY: clean test mount umount install uninstall
+
+clean :
+ rm -f *.o *.d
+ rm -f netfsd netfs
+ rm -f makedeps.mk
+
+install : netfs netfsd
+ cp -f netfs /usr/bin/netfs
+ ln -sf /usr/bin/netfs /sbin/mount.netfs
+ cp -f netfsd /sbin/netfsd
+
+uninstall :
+ rm -f /usr/bin/netfs
+ rm -f /sbin/mount.netfs
+ rm -f /sbin/netfsd