summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorrandomdan <randomdan@localhost>2010-08-30 04:12:56 +0000
committerrandomdan <randomdan@localhost>2010-08-30 04:12:56 +0000
commitff5f01375f6d3a47b7fa271485e3a0aeb822b3a2 (patch)
tree0207b82fcd634219ca9c13de8dc5657cca30cfef
parentInitial workings of project2 - renders gentoobrowse homepage (diff)
downloadnetfs-ff5f01375f6d3a47b7fa271485e3a0aeb822b3a2.tar.bz2
netfs-ff5f01375f6d3a47b7fa271485e3a0aeb822b3a2.tar.xz
netfs-ff5f01375f6d3a47b7fa271485e3a0aeb822b3a2.zip
Jam
-rw-r--r--netfs/Jamfile.jam33
-rwxr-xr-xnetfs/configure1
-rw-r--r--netfs/makefile.in71
3 files changed, 33 insertions, 72 deletions
diff --git a/netfs/Jamfile.jam b/netfs/Jamfile.jam
new file mode 100644
index 0000000..e00fa16
--- /dev/null
+++ b/netfs/Jamfile.jam
@@ -0,0 +1,33 @@
+using gcc ;
+
+alias libxmlpp : : : :
+ <cflags>"`pkg-config --cflags libxml++-2.6`"
+ <linkflags>"`pkg-config --libs libxml++-2.6`" ;
+alias fuse : : : :
+ <cflags>"-D_FILE_OFFSET_BITS=64"
+ <linkflags>"-lfuse" ;
+
+lib boost_regex : : <name>boost_regex ;
+lib boost_filesystem : : <name>boost_filesystem ;
+
+exe netfs :
+ libxmlpp
+ comms.cpp msgtypes.cpp
+ [ glob fuse*.cpp ]
+ ../libmisc
+ :
+ <include>../libmisc/
+ <library>boost_regex
+ <library>fuse
+ ;
+
+exe netfsd :
+ libxmlpp
+ comms.cpp msgtypes.cpp
+ [ glob daemon*.cpp ]
+ ../libmisc
+ :
+ <include>../libmisc/
+ <library>boost_regex
+ <library>fuse
+ ;
diff --git a/netfs/configure b/netfs/configure
deleted file mode 100755
index 4d06840..0000000
--- a/netfs/configure
+++ /dev/null
@@ -1 +0,0 @@
-cp makefile.in makefile
diff --git a/netfs/makefile.in b/netfs/makefile.in
deleted file mode 100644
index 4086315..0000000
--- a/netfs/makefile.in
+++ /dev/null
@@ -1,71 +0,0 @@
-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 \
- fuseFiles.o \
- fuseDirs.o \
- fuseMisc.o \
- fuseFS.o \
- msgtypes.o \
-
-NETFSDOBJS= \
- comms.o \
- daemon.o \
- daemonDirs.o \
- daemonFiles.o \
- daemonMisc.o \
- daemonFS.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