Files
geant4/environments/g4py/config/build.gmk
T
2016-06-09 14:55:03 +02:00

36 lines
697 B
Plaintext

# $Id: build.gmk,v 1.3 2006/08/08 05:11:44 kmura Exp $
# ===========================================================
# Script for building a module
# ===========================================================
headers := $(wildcard *.hh)
sources := $(wildcard *.cc)
objects := $(patsubst %.cc, %.o, $(sources))
.PHONY: clean debug
# building module...
ifdef MODULE
module_name := $(MODULE).$(modext)
$(module_name) : $(objects)
$(build-module)
endif
# building shared library...
ifdef LIBRARY
module_name := $(LIBRARY).$(soext)
$(module_name) : $(objects)
$(build-library)
endif
module : $(module_name)
clean :
@-rm -f $(module_name)
@-rm -f $(objects)
debug:
@echo debug...