1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31
|
--- a/fortran_wrapper/Makefile.am
+++ b/fortran_wrapper/Makefile.am
@@ -1 +1,5 @@
-EXTRA_DIST = README Makefile.alt fastjetfortran.cc fastjet_fortran_example.f
+EXTRA_DIST = README Makefile.alt fastjet_fortran_example.f
+
+lib_LTLIBRARIES = libfastjet-fortran.la
+libfastjet_fortran_la_SOURCES = fastjetfortran.cc
+libfastjet_fortran_la_CXXFLAGS = -I$(srcdir)/../include -I$(srcdir)/../plugins/SISCone
--- a/fortran_wrapper/Makefile.alt
+++ b/fortran_wrapper/Makefile.alt
@@ -18,7 +18,7 @@ F77FLAGS = -O -g
# get the fastjet libraries
CXXFLAGS += $(shell $(FASTJET_CONFIG) --cxxflags)
-LIBS += $(shell $(FASTJET_CONFIG) --libs --plugins )
+LIBS += -lsiscone_spherical -lsiscone -lfastjet-fortran $(shell $(FASTJET_CONFIG) --libs --plugins )
# add the standard C++ libraries
LIBS += -lstdc++
@@ -31,8 +31,8 @@ LIBS += -lstdc++
FC=gfortran
F77=gfortran
-fastjet_fortran_example: fastjet_fortran_example.o fastjetfortran.o
- $(FC) -o fastjet_fortran_example fastjet_fortran_example.o fastjetfortran.o $(LIBS)
+fastjet_fortran_example: fastjet_fortran_example.o
+ $(FC) -o fastjet_fortran_example fastjet_fortran_example.o $(LIBS)
# on some systems (e.g. MacOX 10.14 with native c++) one needs to link
# with the C++ compiler rather than the Fortran one
#$(CXX) -o fastjet_fortran_example fastjet_fortran_example.o fastjetfortran.o $(LIBS) -L/usr/local/lib/gcc/10 -lgfortran
|