+++ /dev/null
-NAME = path
-
-WORKDIR = $(PWD)/../..
-TMP = $(WORKDIR)/tmp/linux
-TGT = $(HOME)/local
-
-CXX = g++
-CC = gcc
-AR = ar
-CP = cp
-
-LIBFILE = libmsp$(NAME)
-
-MAKEFLAGS += -s --no-print-directory
-INCLUDE = -Isource -I$(TMP)/include
-LIB = -L$(TMP)
-DEBUG =
-CFLAGS = $(DEBUG) $(INCLUDE) -pipe -Wall
-CXXFLAGS = $(CFLAGS)
-
-PIC = -fPIC
-SHARED = .so
-STATIC = .a
-
-SRC = source
-OBJS = $(addprefix $(TMP)/, $(addsuffix .o, $(notdir $(basename $(wildcard $(SRC)/*.cpp)))))
-
-pkgincludedir = include/msp/$(NAME)
-libdir = lib
-
-.PHONY: all
-all: $(TMP) $(TMP)/$(LIBFILE)$(SHARED) $(TMP)/$(LIBFILE)$(STATIC) tmpheaders
-
-# Create temp directory
-$(TMP):
- mkdir -p $@
-
-# Dynamic library
-$(TMP)/$(LIBFILE)$(SHARED): $(OBJS)
- echo "Compiling $(notdir $@)"
- $(CXX) $^ -shared -o $@ $(LIB) $(LDFLAGS)
-
-# Static library
-$(TMP)/$(LIBFILE)$(STATIC): $(OBJS)
- echo "Compiling $(notdir $@)"
- $(AR) rcs $@ $^
-
-# Copy headers to temp
-.PHONY: tmpheaders
-tmpheaders: $(TMP)/$(pkgincludedir)
- $(CP) $(SRC)/*.h $<
-
-$(TMP)/$(pkgincludedir):
- mkdir -p $@
-
-# Library object file
-$(TMP)/%.o: $(SRC)/%.cpp $(wildcard $(SRC)/*.h)
- echo "Compiling $(NAME)/$(notdir $(basename $@))"
- $(CXX) $(PIC) $(CXXFLAGS) -c $< -o $@
-
-# Installs
-.PHONY: install
-install: install_lib
-
-$(TGT)/$(pkgincludedir):
- mkdir -p $@
-
-$(TGT)/$(libdir):
- mkdir -p $@
-
-.PHONY: install_headers
-install_headers: $(TGT)/$(pkgincludedir)
- echo "Installing $(NAME) headers to $<"
- $(CP) $(SRC)/*.h $<
-
-.PHONY: install_lib
-install_lib: $(TGT)/$(libdir) $(TMP)/$(LIBFILE)$(SHARED)
- echo "Installing dynamic library to $<"
- $(CP) $(TMP)/$(LIBFILE)$(SHARED) $<
-
-.PHONY: install_staticlib
-install_staticlib: $(TGT)/$(libdir) $(TMP)/$(LIBFILE)$(STATIC)
- echo "Installing static library to $<"
- $(CP) $(TMP)/$(LIBFILE)$(STATIC) $<
/* $Id$
-This file is part of libmsppath
-Copyright © 2006-2007 Mikko Rasa, Mikkosoft Productions
+This file is part of libmspfs
+Copyright © 2006-2008 Mikko Rasa, Mikkosoft Productions
Distributed under the LGPL
*/
/* $Id$
-This file is part of libmsppath
-Copyright © 2006-2007 Mikko Rasa, Mikkosoft Productions
+This file is part of libmspfs
+Copyright © 2006-2008 Mikko Rasa, Mikkosoft Productions
Distributed under the LGPL
*/
-#ifndef MSP_PATH_PATH_H_
-#define MSP_PATH_PATH_H_
+#ifndef MSP_FS_PATH_H_
+#define MSP_FS_PATH_H_
#include <ostream>
#include <string>
/* $Id$
-This file is part of libmsppath
-Copyright © 2006-2007 Mikko Rasa, Mikkosoft Productions
+This file is part of libmspfs
+Copyright © 2006-2008 Mikko Rasa, Mikkosoft Productions
Distributed under the LGPL
*/
/* $Id$
-This file is part of libmsppath
-Copyright © 2006-2007 Mikko Rasa, Mikkosoft Productions
+This file is part of libmspfs
+Copyright © 2006-2008 Mikko Rasa, Mikkosoft Productions
Distributed under the LGPL
*/
-#ifndef MSP_PATH_UTILS_H_
-#define MSP_PATH_UTILS_H_
+#ifndef MSP_FS_UTILS_H_
+#define MSP_FS_UTILS_H_
#include <sys/stat.h>
#include <list>