source: trunk/environments/g4py/config/build.gmk @ 1337

Last change on this file since 1337 was 1337, checked in by garnier, 14 years ago

tag geant4.9.4 beta 1 + modifs locales

File size: 697 bytes
Line 
1# $Id: build.gmk,v 1.3 2006/08/08 05:11:44 kmura Exp $
2# ===========================================================
3#   Script for building a module
4# ===========================================================
5headers := $(wildcard *.hh)
6sources := $(wildcard *.cc)
7objects := $(patsubst %.cc, %.o, $(sources))
8
9.PHONY: clean debug
10
11# building module...
12ifdef MODULE
13  module_name := $(MODULE).$(modext)
14
15$(module_name) : $(objects)
16        $(build-module)
17endif
18
19# building shared library...
20ifdef LIBRARY
21  module_name := $(LIBRARY).$(soext)
22
23$(module_name) : $(objects)
24        $(build-library)
25endif
26
27module : $(module_name)
28
29clean :
30        @-rm -f $(module_name)
31        @-rm -f $(objects)
32
33debug:
34        @echo debug...
35
Note: See TracBrowser for help on using the repository browser.