40 lines
925 B
Plaintext
40 lines
925 B
Plaintext
# $Id: g4compile.gmk,v 1.3 2008-06-05 02:25:08 kmura Exp $
|
|
# ===========================================================
|
|
# Script for building a Boost-Python module
|
|
# ===========================================================
|
|
include $(G4PY_INSTALL)/config/sys/$(Q_SYSTEM).gmk
|
|
|
|
# include/lib directives started...
|
|
INCFLAGS := -I.
|
|
LOPT :=
|
|
|
|
# Geant4
|
|
G4PY_INCFLAGS := -I$(Q_G4_INCDIR)
|
|
|
|
# CLHEP
|
|
G4PY_INCFLAGS += -I$(Q_CLHEP_INCDIR)
|
|
G4PY_LOPT += -L$(Q_CLHEP_LIBDIR) -l$(Q_CLHEP_LIB)
|
|
|
|
# finished
|
|
CXXFLAGS += $(INCFLAGS)
|
|
CXXFLAGS += $(G4PY_INCFLAGS)
|
|
LOPT += $(G4PY_LOPT)
|
|
|
|
# ===========================================================
|
|
# Script for building a module
|
|
# ===========================================================
|
|
headers := $(wildcard *.hh)
|
|
sources := $(wildcard *.cc)
|
|
objects := $(patsubst %.cc, %.o, $(sources))
|
|
|
|
.PHONY: clean debug
|
|
|
|
compile : $(objects)
|
|
|
|
clean :
|
|
@-rm -f $(objects)
|
|
|
|
debug:
|
|
@echo debug...
|
|
|