Last change
on this file since 1358 was
1337,
checked in by garnier, 14 years ago
|
tag geant4.9.4 beta 1 + modifs locales
|
File size:
1.3 KB
|
Rev | Line | |
---|
[1337] | 1 | # $Id: module.gmk,v 1.6 2009/05/14 09:10:02 kmura Exp $ |
---|
| 2 | # =========================================================== |
---|
| 3 | # Script for building a Boost-Python module |
---|
| 4 | # =========================================================== |
---|
| 5 | include $(G4PY_INSTALL)/config/sys/$(Q_SYSTEM).gmk |
---|
| 6 | |
---|
| 7 | # include/lib directives started... |
---|
| 8 | INCFLAGS := -I. |
---|
| 9 | LOPT := |
---|
| 10 | |
---|
| 11 | ifdef G4PY_EXLIB_LIBNAME |
---|
| 12 | ifdef G4PY_EXLIB_INCDIR |
---|
| 13 | INCFLAGS += -I$(G4PY_EXLIB_INCDIR) |
---|
| 14 | endif |
---|
| 15 | ifdef G4PY_EXLIB_LIBNAME |
---|
| 16 | LOPT += -L$(G4PY_EXLIB_LIBDIR) -l$(G4PY_EXLIB_LIBNAME) |
---|
| 17 | endif |
---|
| 18 | endif |
---|
| 19 | |
---|
| 20 | # Python... |
---|
| 21 | INCFLAGS += -I$(Q_PYTHON_INCDIR) |
---|
| 22 | |
---|
| 23 | |
---|
| 24 | # Boost.Python... |
---|
| 25 | ifneq ($(Q_BOOST_INCDIR), /usr/include) |
---|
| 26 | INCFLAGS += -I$(Q_BOOST_INCDIR) |
---|
| 27 | endif |
---|
| 28 | |
---|
| 29 | ifneq ($(Q_BOOST_LIBDIR), /usr/lib) |
---|
| 30 | ifneq ($(Q_BOOST_LIBDIR), /usr/lib64) |
---|
| 31 | LOPT += -L$(Q_BOOST_LIBDIR) |
---|
| 32 | endif |
---|
| 33 | endif |
---|
| 34 | |
---|
| 35 | LOPT += -l$(Q_BOOST_PYTHON_LIB) |
---|
| 36 | |
---|
| 37 | # Xerces-C ... |
---|
| 38 | ifdef Q_XERCESC_INCDIR |
---|
| 39 | ifneq ($(Q_XERCESC_INCDIR), /usr/include) |
---|
| 40 | INCFLAGS += -I$(Q_XERCESC_INCDIR) |
---|
| 41 | endif |
---|
| 42 | endif |
---|
| 43 | |
---|
| 44 | ifdef Q_XERCESC_LIBDIR |
---|
| 45 | ifneq ($(Q_XERCESC_LIBDIR), /usr/lib) |
---|
| 46 | ifneq ($(Q_XERCESC_LIBDIR), /usr/lib64) |
---|
| 47 | LOPT += -L$(Q_XERCESC_LIBDIR) |
---|
| 48 | endif |
---|
| 49 | endif |
---|
| 50 | |
---|
| 51 | LOPT += -lxerces-c |
---|
| 52 | endif |
---|
| 53 | |
---|
| 54 | # finished |
---|
| 55 | CXXFLAGS += $(INCFLAGS) |
---|
| 56 | |
---|
| 57 | ifdef COMPILE_G4PY |
---|
| 58 | CXXFLAGS += $(G4PY_INCFLAGS) |
---|
| 59 | LOPT += $(G4PY_LOPT) |
---|
| 60 | endif |
---|
| 61 | |
---|
| 62 | # ok, building... |
---|
| 63 | include $(G4PY_INSTALL)/config/build.gmk |
---|
| 64 | |
---|
Note: See
TracBrowser
for help on using the repository browser.