Files
pystring/Makefile
Jeremy Selan aa52269ea2 added os.path functionality (limited subset)
Exposed a limited set of function from os.path (most of those which rely on pur
string processing have been implemented).  These have been added in an
architecture specific manner to match the python implementation. (I.e., join on
windows uses '\', and joing on linux uses '/'.  The python 2.6 implementation
were used as reference, and for unit test validation.
2011-06-20 16:53:56 -07:00

25 lines
608 B
Makefile

LIBTOOL = libtool
LIBDIR = /usr/lib
CXX = g++
CXXFLAGS = -g -O3 -Wall -Wextra -Wshadow -Wconversion -Wcast-qual -Wformat=2
all: libpystring.la
pystring.lo: pystring.h pystring.cpp
$(LIBTOOL) --mode=compile --tag=CXX $(CXX) $(CXXFLAGS) -c pystring.cpp
libpystring.la: pystring.lo
$(LIBTOOL) --mode=link --tag=CXX $(CXX) -o $@ $< -rpath $(LIBDIR)
install: libpystring.la
$(LIBTOOL) --mode=install install -c $< $(LIBDIR)/$<
clean:
$(RM) -fr pystring.lo pystring.o libpystring.la .libs
.PHONY: test
test:
$(RM) -fr test
$(CXX) pystring.cpp test.cpp $(CXXFLAGS) -DPYSTRING_UNITTEST=1 -o test
./test