Rev | Line | |
---|
[807] | 1 | # $Id: GNUmakefile,v 1.7 2006/06/23 13:15:34 ahoward Exp $ |
---|
| 2 | # -------------------------------------------------------------- |
---|
| 3 | # GNUmakefile Michael Dressel |
---|
| 4 | # -------------------------------------------------------------- |
---|
| 5 | |
---|
| 6 | name := G4KernelWrapper |
---|
| 7 | G4TARGET := $(name) |
---|
| 8 | G4EXLIB := true |
---|
| 9 | |
---|
| 10 | ifndef G4INSTALL |
---|
| 11 | G4INSTALL = ../.. |
---|
| 12 | endif |
---|
| 13 | include $(G4INSTALL)/config/architecture.gmk |
---|
| 14 | |
---|
| 15 | SWIGFLAGS = -I./ \ |
---|
| 16 | -I${G4INSTALL}/source/global/management/include \ |
---|
| 17 | -I${G4INSTALL}/source/geometry/biasing/include \ |
---|
| 18 | -I${G4INSTALL}/source/digits_hits/detector/include \ |
---|
| 19 | -I${G4INSTALL}/source/event/include \ |
---|
| 20 | -I${G4INSTALL}/source/processes/transportation/include \ |
---|
| 21 | -I${G4INSTALL}/source/visualization/management/include \ |
---|
| 22 | -I${TIARA_BASE}/source/CLHEPWrapper/include \ |
---|
| 23 | -I${CLHEP_BASE_DIR}/include |
---|
| 24 | |
---|
| 25 | include $(TIARA_BASE)/source/swig.gmk |
---|
| 26 | |
---|
| 27 | .PHONY: all tiaraClean |
---|
| 28 | |
---|
| 29 | all: $(SWIGSO) |
---|
| 30 | |
---|
| 31 | include $(G4INSTALL)/config/binmake.gmk |
---|
| 32 | |
---|
| 33 | CPPFLAGS += -I$(PYTHON_INCLUDE_DIR) |
---|
| 34 | LDFLAGS += -L$(PYTHON_LIB_DIR) |
---|
| 35 | LDLIBS += -lpython$(PYTHONVERSION) \ |
---|
| 36 | -lnsl \ |
---|
| 37 | -ldl \ |
---|
| 38 | -lreadline \ |
---|
| 39 | -ltermcap \ |
---|
| 40 | -lieee \ |
---|
| 41 | -lpthread \ |
---|
| 42 | -lutil |
---|
| 43 | |
---|
| 44 | tiaraClean: |
---|
| 45 | @echo Cleaning up $(G4WORKDIR)/tmp/$(G4SYSTEM)/$(name) |
---|
| 46 | @rm -rf $(G4WORKDIR)/tmp/$(G4SYSTEM)/$(name) |
---|
| 47 | @rm -f *.pyc |
---|
Note: See
TracBrowser
for help on using the repository browser.