- UPDATE : BAse makefile now provides an install target. Use like make install. The sdk will be installed to /usr/bin/assimp.

git-svn-id: https://assimp.svn.sourceforge.net/svnroot/assimp/trunk@537 67173fc5-114c-0410-ac8e-9d2fd5bffc1f
pull/1/head
kimmi 2010-02-03 21:49:34 +00:00
parent 61746a1efb
commit 08f18ec0fb
1 changed files with 16 additions and 6 deletions

View File

@ -8,12 +8,12 @@
# all Build a shared so from the whole library
# clean Cleanup object files, prepare for rebuild
# static Build a static library (*.a)
# install SDK will be installed to /usr/bin/assimp
# MACROS: (make clean before you change one)
# NOBOOST=1 Build against boost workaround
# SINGLETHREADED=1 Build single-threaded library
# DEBUG=1 Build debug build of library
#
# C++ object files
OBJECTS := $(patsubst %.cpp,%.o, $(wildcard *.cpp))
@ -24,6 +24,9 @@ OBJECTS += $(patsubst %.cpp,%.o, $(wildcard ./../contrib/irrXML/*.cpp))
OBJECTSC := $(patsubst %.c,%.oc, $(wildcard ./../contrib/zlib/*.c))
OBJECTSC += $(patsubst %.c,%.oc, $(wildcard ./../contrib/ConvertUTF/*.c))
# Directory for install
INSTALLDIR = /usr/bin/assimp
# Include flags for gcc
INCLUDEFLAGS =
@ -34,7 +37,8 @@ DEFINEFLAGS =
NAMESUFFIX =
# Output path for binaries
BINPATH = ../bin/gcc/
BINPATH = ../bin/gcc
INCPATH = ../include
# GCC compiler flags
CPPFLAGS=-Wall
@ -64,6 +68,8 @@ else
DEFINEFLAGS += -DNDEBUG -D_NDEBUG
endif
OUTPUT_NAME = dummy
# Output name of shared library
SHARED_TARGET = $(BINPATH)/libassimp$(NAMESUFFIX).so
@ -89,9 +95,13 @@ clean:
# target: static
# usage : build a static library (*.a)
static: $(STATIC)
static: $(STATIC) name_static
$(STATIC): $(OBJECTS) $(OBJECTSC)
ar rcs $@ $(OBJECTS) $(OBJECTSC)
install:
mkdir -p $(INSTALLDIR)
mkdir -p $(INSTALLDIR)/include
mkdir -p $(INSTALLDIR)/lib
mv $(BINPATH)/libassimp$(NAMESUFFIX).* $(INSTALLDIR)/lib
mv $(INCPATH)/* $(INSTALLDIR)/include