Welcome to mirror list, hosted at ThFree Co, Russian Federation.

Makefile.noswig « swig « intern « freestyle « blender « source - git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: 368c4fb173b44db3975df93f9cc90dda541cef4a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
# # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # #
#                             W A R N I N G ! ! !                             #
#             a u t h o r i z e d    p e r s o n a l    o n l y               #
# # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # #

CXX	  = g++
RM	  = rm -f
INSTALL	  = install

PYTHON_VERSION_MAJ = 2
PYTHON_VERSION_MIN = 2

BUILD     = debug
PLATEFORM = linux-g++
MODNAME   = Freestyle

LIBNAME   = _${MODNAME}.so
LIBDIR    = ../../build/${PLATEFORM}/${BUILD}/lib/python
IPATH     = -I../geometry -I../image -I../scene_graph -I../stroke \
            -I../system -I../view_map -I../winged_edge \
            -I/usr/include/python${PYTHON_VERSION_MAJ}.${PYTHON_VERSION_MIN}
OPTI      = #-O3 -funroll-loops -fomit-frame-pointer -ffast-math -march=i686
DBUG      = #-ggdb #-pg
WARN	  = -w #-W -Wall #-pedantic -ansi

CFLAGS    = ${OPTI} ${DBUG} ${WARN} ${IPATH}
LDFLAGS   = ${OPTI} ${DBUG} ${WARN} ${LPATH}

PY_SRC    = Freestyle.py
CXX_SRC	  = ModuleWrapper.cpp
CXX_INC	  = ${CXX_SRC:.cpp=.h}
CXX_OBJ	  = ${CXX_SRC:.cpp=.o}

ifndef DBUG
  STRIP   = strip --strip-all ${LIBDIR}/${LIBNAME}
endif

# # # # # # # # # # # # # # # #   R u l e s   # # # # # # # # # # # # # # # # #

all	: cxx

.PHONY	: clean re

clean	:  cxx_clean

re	:  cxx_re

# # # # # # # # #   P y t h o n   &   C + +   r u l e s   # # # # # # # # # # #

cxx	: ${CXX_OBJ} ${PY_SRC}
	${INSTALL} -d ${LIBDIR}
	${CC} -shared -o ${LIBDIR}/${LIBNAME} ${CXX_OBJ}
	${INSTALL} ${PY_SRC} ${LIBDIR}
	@${STRIP}

.cpp.o	: ${CXX_INC} ${CXX_SRC}
	${CXX} ${CFLAGS} -c $< -o $@

.PHONY	: cxx_clean cxx_re

cxx_clean	:
	${RM} *~ \#* .\#* *.core gmon.out ${CXX_OBJ} 

cxx_re	: cxx_clean cxx_all