diff options
author | Aaron LI <aaronly.me@outlook.com> | 2017-02-07 14:33:22 +0800 |
---|---|---|
committer | Aaron LI <aaronly.me@outlook.com> | 2017-02-07 14:33:22 +0800 |
commit | e6cb89d7e126e0cba4ea29ad91b3b96f7014f451 (patch) | |
tree | af7802b54ffd00791ec529e2aa7f0066ce202eb8 /mass_profile/Makefile | |
parent | 3c2a468273fe1d07f19bf784d7f878ea008a0925 (diff) | |
download | chandra-acis-analysis-e6cb89d7e126e0cba4ea29ad91b3b96f7014f451.tar.bz2 |
Remove graphical plot report (depends on PGPLOT)
Therefore remove the depends on PGPLOT (from HEASoft) and X11 libraries.
Diffstat (limited to 'mass_profile/Makefile')
-rw-r--r-- | mass_profile/Makefile | 76 |
1 files changed, 26 insertions, 50 deletions
diff --git a/mass_profile/Makefile b/mass_profile/Makefile index b6418ab..3bf9aa0 100644 --- a/mass_profile/Makefile +++ b/mass_profile/Makefile @@ -22,8 +22,6 @@ else endif OPT_UTIL_INC ?= -I../opt_utilities -PGPLOT_INC= -I$(HEADAS)/include -PGPLOT_LIB= -L. -lcpgplot -lpgplot -lX11 -lgfortran TARGETS= fit_nfw_sbp fit_dbeta_sbp fit_beta_sbp \ fit_direct_beta calc_distance fit_wang2012_model \ @@ -31,52 +29,36 @@ TARGETS= fit_nfw_sbp fit_dbeta_sbp fit_beta_sbp \ fit_lt_bpl cooling_time calc_lx_dbeta calc_lx_beta HEADERS= projector.hpp spline.hpp vchisq.hpp -all: pgplot $(TARGETS) - -pgplot: libcpgplot.a libpgplot.a - -libcpgplot.a: -ifdef HEADAS - ln -s $(HEADAS)/lib/libcpgplot*.a ./$@ -else - $(error HEASoft not initialized) -endif - -libpgplot.a: -ifdef HEADAS - ln -s $(HEADAS)/lib/libpgplot*.a ./$@ -else - $(error HEASoft not initialized) -endif +all: $(TARGETS) # NOTE: # Object/source files should placed *before* libraries (order matters) -fit_nfw_sbp: fit_nfw_sbp.o plot_reporter.o - $(CXX) $(CXXFLAGS) $^ -o $@ $(OPT_UTIL_INC) $(PGPLOT_INC) $(PGPLOT_LIB) +fit_nfw_sbp: fit_nfw_sbp.o + $(CXX) $(CXXFLAGS) $^ -o $@ $(OPT_UTIL_INC) -fit_dbeta_sbp: fit_dbeta_sbp.o beta_cfg.o report_error.o plot_reporter.o - $(CXX) $(CXXFLAGS) $^ -o $@ $(OPT_UTIL_INC) $(PGPLOT_INC) $(PGPLOT_LIB) +fit_dbeta_sbp: fit_dbeta_sbp.o beta_cfg.o report_error.o + $(CXX) $(CXXFLAGS) $^ -o $@ $(OPT_UTIL_INC) -fit_beta_sbp: fit_beta_sbp.o beta_cfg.o dump_fit_qdp.o plot_reporter.o - $(CXX) $(CXXFLAGS) $^ -o $@ $(OPT_UTIL_INC) $(PGPLOT_INC) $(PGPLOT_LIB) +fit_beta_sbp: fit_beta_sbp.o beta_cfg.o dump_fit_qdp.o + $(CXX) $(CXXFLAGS) $^ -o $@ $(OPT_UTIL_INC) -fit_wang2012_model: fit_wang2012_model.o plot_reporter.o - $(CXX) $(CXXFLAGS) $^ -o $@ $(OPT_UTIL_INC) $(PGPLOT_INC) $(PGPLOT_LIB) +fit_wang2012_model: fit_wang2012_model.o + $(CXX) $(CXXFLAGS) $^ -o $@ $(OPT_UTIL_INC) -fit_nfw_mass: fit_nfw_mass.o plot_reporter.o - $(CXX) $(CXXFLAGS) $^ -o $@ $(OPT_UTIL_INC) $(PGPLOT_INC) $(PGPLOT_LIB) +fit_nfw_mass: fit_nfw_mass.o + $(CXX) $(CXXFLAGS) $^ -o $@ $(OPT_UTIL_INC) -fit_direct_beta: fit_direct_beta.o plot_reporter.o - $(CXX) $(CXXFLAGS) $^ -o $@ $(OPT_UTIL_INC) $(PGPLOT_INC) $(PGPLOT_LIB) +fit_direct_beta: fit_direct_beta.o + $(CXX) $(CXXFLAGS) $^ -o $@ $(OPT_UTIL_INC) -calc_lx: calc_lx.o calc_distance.o plot_reporter.o - $(CXX) $(CXXFLAGS) $^ -o $@ $(OPT_UTIL_INC) $(PGPLOT_INC) $(PGPLOT_LIB) +calc_lx: calc_lx.o calc_distance.o + $(CXX) $(CXXFLAGS) $^ -o $@ $(OPT_UTIL_INC) -calc_lx_dbeta: calc_lx_dbeta.o beta_cfg.o report_error.o plot_reporter.o - $(CXX) $(CXXFLAGS) $^ -o $@ $(OPT_UTIL_INC) $(PGPLOT_INC) $(PGPLOT_LIB) +calc_lx_dbeta: calc_lx_dbeta.o beta_cfg.o report_error.o + $(CXX) $(CXXFLAGS) $^ -o $@ $(OPT_UTIL_INC) -calc_lx_beta: calc_lx_beta.o beta_cfg.o dump_fit_qdp.o plot_reporter.o - $(CXX) $(CXXFLAGS) $^ -o $@ $(OPT_UTIL_INC) $(PGPLOT_INC) $(PGPLOT_LIB) +calc_lx_beta: calc_lx_beta.o beta_cfg.o dump_fit_qdp.o + $(CXX) $(CXXFLAGS) $^ -o $@ $(OPT_UTIL_INC) calc_distance: calc_distance_main.o calc_distance.o $(CXX) $(CXXFLAGS) -o $@ $^ @@ -98,28 +80,25 @@ cooling_time: cooling_time.cpp fit_nfw_sbp.o: fit_nfw_sbp.cpp nfw_ne.hpp $(HEADERS) - $(CXX) $(CXXFLAGS) -c $< $(OPT_UTIL_INC) $(PGPLOT_INC) + $(CXX) $(CXXFLAGS) -c $< $(OPT_UTIL_INC) fit_dbeta_sbp.o: fit_dbeta_sbp.cpp constrained_dbeta.hpp $(HEADERS) - $(CXX) $(CXXFLAGS) -c $< $(OPT_UTIL_INC) $(PGPLOT_INC) + $(CXX) $(CXXFLAGS) -c $< $(OPT_UTIL_INC) fit_beta_sbp.o: fit_beta_sbp.cpp beta.hpp $(HEADERS) - $(CXX) $(CXXFLAGS) -c $< $(OPT_UTIL_INC) $(PGPLOT_INC) + $(CXX) $(CXXFLAGS) -c $< $(OPT_UTIL_INC) fit_wang2012_model.o: fit_wang2012_model.cpp wang2012_model.hpp chisq.hpp - $(CXX) $(CXXFLAGS) -c $< $(OPT_UTIL_INC) $(PGPLOT_INC) + $(CXX) $(CXXFLAGS) -c $< $(OPT_UTIL_INC) fit_nfw_mass.o: fit_nfw_mass.cpp nfw.hpp chisq.hpp - $(CXX) $(CXXFLAGS) -c $< $(OPT_UTIL_INC) $(PGPLOT_INC) + $(CXX) $(CXXFLAGS) -c $< $(OPT_UTIL_INC) calc_lx_dbeta.o: calc_lx_dbeta.cpp constrained_dbeta.hpp $(HEADERS) - $(CXX) $(CXXFLAGS) -c $< $(OPT_UTIL_INC) $(PGPLOT_INC) + $(CXX) $(CXXFLAGS) -c $< $(OPT_UTIL_INC) calc_lx_beta.o: calc_lx_beta.cpp beta.hpp $(HEADERS) - $(CXX) $(CXXFLAGS) -c $< $(OPT_UTIL_INC) $(PGPLOT_INC) - -plot_reporter.o: plot_reporter.cpp plot_reporter.hpp - $(CXX) $(CXXFLAGS) -c $< $(PGPLOT_INC) + $(CXX) $(CXXFLAGS) -c $< $(OPT_UTIL_INC) beta_cfg.o: beta_cfg.cpp beta_cfg.hpp $(CXX) $(CXXFLAGS) -c $< @@ -142,6 +121,3 @@ calc_distance.o: calc_distance.cc calc_distance.h adapt_trapezoid.h clean: rm -f *.o $(TARGETS) - -cleanall: clean - rm -f libpgplot.a libcpgplot.a |