Skip to content

Commit 4b55a2b

Browse files
committed
add a Makefile that builds a static and shared libpystring library
using libtool; this will handle platform differences nicely git-svn-id: http://pystring.googlecode.com/svn/trunk@19 e90ac086-db91-11dd-a3d5-f9b94b98161c
1 parent 1bae479 commit 4b55a2b

File tree

1 file changed

+18
-0
lines changed

1 file changed

+18
-0
lines changed

Makefile

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
LIBTOOL = libtool
2+
LIBDIR = /usr/lib
3+
CXX = g++
4+
CXXFLAGS = -g -O3 -Wall
5+
6+
all: libpystring.la
7+
8+
pystring.lo: pystring.h pystring.cpp
9+
$(LIBTOOL) --mode=compile --tag=CXX $(CXX) $(CXXFLAGS) -c pystring.cpp
10+
11+
libpystring.la: pystring.lo
12+
$(LIBTOOL) --mode=link --tag=CXX $(CXX) -o $@ $< -rpath $(LIBDIR)
13+
14+
install: libpystring.la
15+
$(LIBTOOL) --mode=install install -c $< $(LIBDIR)/$<
16+
17+
clean:
18+
$(RM) -fr pystring.lo pystring.o libpystring.la .libs

0 commit comments

Comments
 (0)