hepmc - Diff between revs 237 and 285
Subversion Repositories:
| Rev 237 | Rev 285 | |||
|---|---|---|---|---|
| Line 1... | Line 1... | |||
| 1 | ## Process this file with automake to produce Makefile.in | 1 | ## Process this file with automake to produce Makefile.in | |
| 2 | - | |||
| 3 | if USE_GMAKE | - | ||
| 4 | MAKE = gmake | - | ||
| 5 | endif | - | ||
| 6 | 2 | |||
| 7 | INCLUDES = -I$(top_builddir) -I$(top_srcdir) | 3 | INCLUDES = -I$(top_builddir) -I$(top_srcdir) | |
| 8 | 4 | |||
| 9 | libHepMC_a_SOURCES = \ | - | ||
| - | 5 | libHepMC_la_SOURCES = \ | ||
| 10 | CommonIO.cc \ | 6 | CommonIO.cc \ | |
| 11 | CompareGenEvent.cc \ | 7 | CompareGenEvent.cc \ | |
| 12 | Flow.cc \ | 8 | Flow.cc \ | |
| 13 | GenEvent.cc \ | 9 | GenEvent.cc \ | |
| 14 | GenParticle.cc \ | 10 | GenParticle.cc \ | |
| Line 20... | Line 16... | |||
| 20 | IO_GenEvent.cc \ | 16 | IO_GenEvent.cc \ | |
| 21 | ParticleData.cc \ | 17 | ParticleData.cc \ | |
| 22 | Polarization.cc \ | 18 | Polarization.cc \ | |
| 23 | SearchVector.cc | 19 | SearchVector.cc | |
| 24 | 20 | |||
| 25 | libHepMC_so_OBJECTS = $(patsubst %.cc,$(shareddir)/%.$(OBJEXT),$(libHepMC_a_SOURCES)) | - | ||
| - | 21 | lib_LTLIBRARIES = libHepMC.la | ||
| 26 | 22 | |||
| 27 | # these if/else blocks will be parsed by automake and translated | - | ||
| 28 | if BUILD_SHARED | - | ||
| 29 | shareddir = shared | - | ||
| 30 | if BUILD_VISUAL | 23 | if BUILD_VISUAL | |
| 31 | lib_shared = HepMC.$(SHEXT) | 24 | lib_shared = HepMC.$(SHEXT) | |
| 32 | else | 25 | else | |
| 33 | lib_shared = libHepMC.$(SHEXT) | - | ||
| - | 26 | lib_shared = libHepMC.so | ||
| 34 | endif | 27 | endif | |
| 35 | SHFLAGS = @MY_SHFLAGS@ | - | ||
| 36 | SHLINK = @MY_SHLINK@ | - | ||
| 37 | SHNAME = @MY_SHNAME@ | - | ||
| 38 | endif | - | ||
| 39 | if BUILD_STATIC | - | ||
| 40 | lib_LIBRARIES = libHepMC.a | - | ||
| 41 | endif | - | ||
| 42 | - | |||
| 43 | CLEANFILES = $(lib_shared) | - | ||
| 44 | - | |||
| 45 | all-local: $(shareddir) $(lib_shared) | - | ||
| 46 | - | |||
| 47 | $(shareddir): | - | ||
| 48 | test -d $(shareddir) || mkdir $(shareddir) | - | ||
| 49 | - | |||
| 50 | if BUILD_VISUAL | - | ||
| 51 | $(lib_shared): $(libHepMC_so_OBJECTS) | - | ||
| 52 | $(SHLINK) $(SHNAME)$@ $(libHepMC_so_OBJECTS) | - | ||
| 53 | - | |||
| 54 | $(shareddir)/%.$(OBJEXT): %.cc | - | ||
| 55 | $(CXXCOMPILE) $(SHFLAGS) /c /Fo$@ $< | - | ||
| 56 | else | - | ||
| 57 | $(lib_shared): $(libHepMC_so_OBJECTS) | - | ||
| 58 | $(CXXLINK) $(SHLINK) $(SHNAME)$@ $(libHepMC_so_OBJECTS) -o $@ | - | ||
| 59 | - | |||
| 60 | $(shareddir)/%.$(OBJEXT): %.cc | - | ||
| 61 | $(CXXCOMPILE) $(SHFLAGS) -c -o $@ $< | - | ||
| 62 | endif | - | ||
| 63 | - | |||
| 64 | install-exec-local: $(lib_shared) | - | ||
| 65 | @$(NORMAL_INSTALL) | - | ||
| 66 | test -z "$(libdir)" || $(mkdir_p) "$(DESTDIR)$(libdir)" | - | ||
| 67 | @list='$(lib_shared)'; for p in $$list; do \ | - | ||
| 68 | if test -f $$p; then \ | - | ||
| 69 | echo " $(INSTALL) '$$p' '$(DESTDIR)$(libdir)/$$p'"; \ | - | ||
| 70 | $(INSTALL) "$$p" "$(DESTDIR)$(libdir)/$$f"; \ | - | ||
| 71 | else :; fi; \ | - | ||
| 72 | done | - | ||
| 73 | - | |||
| 74 | clean-local: | - | ||
| 75 | -test -d $(shareddir) && rm -f $(shareddir)/*.$(OBJEXT) | - | ||
| 76 | - | |||
| 77 | distclean-local: | - | ||
| 78 | -test -d $(shareddir) && rm -rf ./$(shareddir) | - | ||
