makefile 2.79 KB
Newer Older
1
CC = g++
2 3
C_OPTIMIZE_SWITCH = -O3 -DHAVE_INLINE -DGSL_RANGE_CHECK_OFF
LIBS = -lgsl -lgslcblas -lgomp
4

5
CFLAGS = -Wall ${C_OPTIMIZE_SWITCH} -fopenmp
6

7 8 9 10 11 12 13 14 15
## Define sparse output format
#  SPARSE_MM   clear text ascii format
#  SPARSE_COO  coordinate format, binary
#  SPARSE_CSR  compressed row storage, most space efficient, default
#CFLAGS += -DSPARSE_MM
#CFLAGS += -DSPARSE_COO
#CFLAGS += -DSPARSE_CSR


16
run_secorder: run_secorder.o secorder_rec_1p.o calc_sqrtcov_rec_1p.o calc_rhos.o calc_stats_1p.o
17
	${CC} run_secorder.o secorder_rec_1p.o calc_sqrtcov_rec_1p.o calc_rhos.o calc_stats_1p.o -o $@ ${LIBS}
18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60

run_secorder_gephi: run_secorder_gephi.o secorder_rec_1p.o calc_sqrtcov_rec_1p.o calc_rhos.o calc_stats_1p.o
	${CC} run_secorder_gephi.o secorder_rec_1p.o calc_sqrtcov_rec_1p.o calc_rhos.o calc_stats_1p.o -o run_secorder_gephi ${LIBS}

gen_mult_secorder: gen_mult_secorder.o secorder_rec_1p.o calc_sqrtcov_rec_1p.o calc_rhos.o calc_stats_1p.o
	${CC} gen_mult_secorder.o secorder_rec_1p.o calc_sqrtcov_rec_1p.o calc_rhos.o calc_stats_1p.o -o gen_mult_secorder ${LIBS}

run_secorder_2p: run_secorder_2p.o secorder_rec_2p.o calc_sqrtcov_rec_2p.o calc_rhos.o calc_stats_2p.o
	${CC} run_secorder_2p.o secorder_rec_2p.o calc_sqrtcov_rec_2p.o calc_rhos.o calc_stats_2p.o -o run_secorder_2p ${LIBS}

run_ei_balanced: run_ei_balanced.o secorder_rec_2p.o calc_sqrtcov_rec_2p.o calc_rhos.o calc_stats_2p.o
	${CC} run_ei_balanced.o secorder_rec_2p.o calc_sqrtcov_rec_2p.o calc_rhos.o calc_stats_2p.o -o run_ei_balanced ${LIBS}

run_secorder_gen: run_secorder_gen.o secorder_gen.o calc_sqrtcov_gen.o calc_rhos.o calc_stats_2p.o calc_stats_1p.o
	${CC} run_secorder_gen.o secorder_gen.o calc_sqrtcov_gen.o calc_rhos.o calc_stats_2p.o  calc_stats_1p.o -o run_secorder_gen ${LIBS}

testsoinput: testsoinput.o calc_rhos.o secorder_input.o
	${CC} testsoinput.o calc_rhos.o secorder_input.o -o testsoinput ${LIBS}

testsoinput.o: secorder_input.hpp calc_rhos.o
secorder_input.o: secorder_input.hpp calc_rhos.o

run_secorder.o: secorder_rec_1p.hpp calc_stats_1p.hpp
run_secorder_gephi.o: secorder_rec_1p.hpp calc_stats_1p.hpp
gen_mult_secorder.o: secorder_rec_1p.hpp calc_stats_1p.hpp
run_secorder_2p.o: secorder_rec_2p.hpp calc_stats_2p.hpp
run_ei_balanced.o: secorder_rec_2p.hpp calc_stats_2p.hpp
run_secorder_gen.o: secorder_gen.hpp calc_stats_2p.hpp
secorder_rec_1p.o: secorder_rec_1p.hpp calc_sqrtcov_rec_1p.hpp calc_rhos.hpp
secorder_rec_2p.o: secorder_rec_2p.hpp calc_sqrtcov_rec_2p.hpp calc_rhos.hpp calc_stats_2p.hpp
secorder_gen.o: secorder_gen.hpp calc_sqrtcov_gen.hpp calc_rhos.hpp 
calc_sqrtcov_rec_1p.o: calc_sqrtcov_rec_1p.hpp
calc_sqrtcov_rec_2p.o: calc_sqrtcov_rec_2p.hpp
calc_sqrtcov_gen.o: calc_sqrtcov_gen.hpp
calc_rhos.o: calc_rhos.hpp
calc_stats_1p.o: calc_stats_1p.hpp
calc_stats_2p.o: calc_stats_2p.hpp


%.o : %.cpp
	${CC} -c ${CFLAGS} $<

clean:
61
	rm *.o