diff --git a/Makefile.edison b/Makefile.edison deleted file mode 100644 index 9e89076..0000000 --- a/Makefile.edison +++ /dev/null @@ -1,87 +0,0 @@ -MPICXX := $(HPCP_MPICXX) -CXXFLAGS := $(HPCP_CXXFLAGS) $(HPCP_OMPFLAGS) -#CXXFLAGS := -O0 -g -m64 -fPIC -DNDEBUG -std=c++11 -fopenmp - -BOOST := -lboost_mpi-mt -lboost_filesystem-mt -lboost_system-mt -ifeq "$(HPCP_DYNAMIC)" "FALSE" - BOOST := -lboost_mpi-mt-s -lboost_filesystem-mt-s -lboost_system-mt-s -endif - -#LEVELSROOT = /project/projectdirs/planck/modules/edison/gnu/level_s-20140506-20140609 -LEVELSROOT = /project/projectdirs/planck/modules/edison/shared_gnu/level_s-20140506-20141014 -PREFIX = /project/projectdirs/planck/software/keskital/edison-shared - -IScalm = IScalm_edison.a # Allows machine specific naming - -CMULT_INCLUDE := -I$(LEVELSROOT)/include $(shell toastconfig --cppflags) -TODGEN_INCLUDE := $(CMULT_INCLUDE) -I$(boost_PREFIX)/include - -# libhealpic_cxx.a and libcxxsupport.a are explicitly referenced because of a possible conflict -# with Healpix versions of the same file - -CMULT_LINK := $(shell toastconfig --mpiflibs) $(HPCP_LDFLAGS) $(HPCP_LIBS) \ - -L$(LEVELSROOT)/lib -lfftpack -lc_utils $(LEVELSROOT)/lib/libhealpix_cxx.a $(LEVELSROOT)/lib/libcxxsupport.a -lcfitsio - -TODGEN_LINK := $(IScalm) $(CMULT_LINK) \ - -L$(boost_PREFIX)/lib $(BOOST) - -CMULT_OBJECTS := cmult.o cmult_module.o -TODGEN_OBJECTS := IScalm2TOD.o IScalm2TOD_module.o injector.o - -all : IScalm2TOD cmult $(IScalm) almread tod2tod - -# cmult rules - -cmult_module.o: cmult_module.cc - $(MPICXX) $(CXXFLAGS) $(CMULT_INCLUDE) -c $< - -cmult.o: cmult_module.o cmult.cc - $(MPICXX) $(CXXFLAGS) $(CMULT_INCLUDE) -c cmult.cc - -cmult : $(CMULT_OBJECTS) - $(MPICXX) -o cmult $(CMULT_OBJECTS) $(CMULT_LINK) - -# almread rules - -almread.o: almread.cpp almread.hpp - $(MPICXX) $(CXXFLAGS) $(CMULT_INCLUDE) -c almread.cpp - -almread : almread.o - $(MPICXX) -o almread almread.o $(CMULT_LINK) - -# IScalm2TOD rules - -$(IScalm) : cmult_module.o - ar rsv $(IScalm) cmult_module.o - -injector.o: injector.cpp injector.hpp - $(MPICXX) $(CXXFLAGS) $(TODGEN_INCLUDE) -c injector.cpp - -IScalm2TOD_module.o: IScalm2TOD_module.cc injector.hpp - $(MPICXX) $(CXXFLAGS) $(TODGEN_INCLUDE) -c $< - -IScalm2TOD.o: IScalm2TOD_module.o IScalm2TOD.cc - $(MPICXX) $(CXXFLAGS) $(TODGEN_INCLUDE) -c IScalm2TOD.cc - -IScalm2TOD : $(TODGEN_OBJECTS) $(IScalm) - $(MPICXX) -o IScalm2TOD $(TODGEN_OBJECTS) $(TODGEN_LINK) - -# tod2tod rules - -tod2tod_module.o: tod2tod_module.cc injector.hpp - $(MPICXX) $(CXXFLAGS) $(TODGEN_INCLUDE) -c $< - -tod2tod.o: tod2tod_module.o tod2tod.cc - $(MPICXX) $(CXXFLAGS) $(TODGEN_INCLUDE) -c tod2tod.cc - -tod2tod : tod2tod.o tod2tod_module.o injector.o - $(MPICXX) -o tod2tod tod2tod.o tod2tod_module.o injector.o $(TODGEN_LINK) - -# Other - -install: IScalm2TOD - cp -f IScalm2TOD $(PREFIX)/bin/ - chmod g+rX,o+rX $(PREFIX)/bin/IScalm2TOD - -clean: - rm -f *~ *.o