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