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