@@ -67,58 +67,57 @@ endif
6767
6868SRC = sorting.f90 enumeration_types.f90 io_utils.f90 arrow_related.f90 tree_class.f90 \
6969 labeling_related.f90 \
70- derivative_structure_generator.f90 enumeration_utilities.f90 # \
71- #kgrid_utilities.f90 cwrapper.f90
70+ derivative_structure_generator.f90 enumeration_utilities.f90
7271
73- OBJS = ${SRC:.f90=.o}
72+ OBJS = ${SRC:.f90=.o}
7473LIBS = $(LBD1 ) /libcomparestructs.a $(LBD1 ) /libutils.a $(LBD1 ) /libsym.a \
7574 $(LBD1 ) /librational.a $(LBD1 ) /libcombinatorics.a $(LBD2 ) /libpolya.a
7675VPATH: = ../aux_src: ../src
7776
7877.SUFFIXES :
7978.SUFFIXES : .f .f90 .f95 .o
8079
80+ pre_comp :
81+ +$(MAKE ) -C ../symlib/src
82+ +$(MAKE ) -C ../polya/fortran
8183
8284libenum.a : ${OBJS}
8385 ar ru $@ $?
8486 ranlib $@
8587
8688all : libenum.a enum.x find_structure_in_list.x 2Dplot.x makestr.x compare_enum_files.x polya.x
8789
88- enum.x : ${OBJS} driver.o
90+ enum.x : pre_comp ${OBJS} driver.o
8991 ${F90} ${LDFLAGS} -o $@ ${OBJS} driver.o ${LIBS}
9092
91- polya.x : ${OBJS} driver_polya.o
93+ polya.x : pre_comp ${OBJS} driver_polya.o
9294 ${F90} ${LDFLAGS} -o $@ ${OBJS} driver_polya.o ${LIBS}
9395
9496# HNF_counter.x: ${OBJS} HNF_counter.o
9597# ${F90} ${LDFLAGS} -o $@ kgrid_utilities.o HNF_counter.o libenum.a ${#LIBS}
9698
97- 2Dplot.x : make2Dplot.o splot.o
99+ 2Dplot.x : pre_comp make2Dplot.o splot.o
98100 ${F90} ${LDFLAGS} -o $@ splot.o make2Dplot.o ${LIBS}
99101
100- makestr.x : makeStr.o
102+ makestr.x : pre_comp libenum.a makeStr.o
101103 ${F90} ${LDFLAGS} -o $@ makeStr.o libenum.a ${LIBS}
102104
103- find_structure_in_list.x : ${OBJS} find_structure_in_list.o
105+ find_structure_in_list.x : pre_comp ${OBJS} find_structure_in_list.o
104106 ${F90} ${LDFLAGS} -o $@ enumeration_utilities.o find_structure_in_list.o libenum.a ${LIBS}
105107
106- convert_structures_to_enumformat.x : ${OBJS} convert_structures_to_enumformat.o
107- ${F90} ${LDFLAGS} -o $@ enumeration_utilities.o convert_structures_to_enumformat.o libenum.a ${LIBS}
108+ convert_structures_to_enumformat.x : pre_comp ${OBJS} convert_structures_to_enumformat.o
109+ ${F90} ${LDFLAGS} -o $@ convert_structures_to_enumformat.o libenum.a ${LIBS}
108110
109- makestr.2d : makeStr2d.o
111+ makestr.2d : pre_comp makeStr2d.o
110112 ${F90} ${LDFLAGS} -o $@ makeStr2d.o libenum.a ${LIBS}
111113
112- makeperovstr.x : makePerovStr.o
113- ${F90} ${LDFLAGS} -o $@ makePerovStr.o ${LIBS}
114+ makeperovstr.x : pre_comp cwrapper.o makePerovStr.o
115+ ${F90} ${LDFLAGS} -o $@ cwrapper.o makePerovStr.o ${LIBS}
114116
115- makestructin .x : makeStrIn .o
116- ${F90} ${LDFLAGS} -o $@ makeStrIn .o libenum.a ${LIBS}
117+ randReduceTest .x : pre_comp cwrapper.o random_lattice_driver .o
118+ ${F90} ${LDFLAGS} -o $@ cwrapper.o random_lattice_driver .o libenum.a ${LIBS}
117119
118- randReduceTest.x : random_lattice_driver.o
119- ${F90} ${LDFLAGS} -o $@ random_lattice_driver.o libenum.a ${LIBS}
120-
121- compare_enum_files.x : compare_two_enum_files.o
120+ compare_enum_files.x : pre_comp compare_two_enum_files.o
122121 ${F90} ${LDFLAGS} -o $@ compare_two_enum_files.o libenum.a ${LIBS}
123122
124123.f95.o :
@@ -131,8 +130,12 @@ compare_enum_files.x: compare_two_enum_files.o
131130
132131
133132CLEAN = *.o *.mod *.a *.x svn-commit.*
134- clean :
133+ clean :
134+ +$(MAKE ) clean -C ../symlib/src
135+ +$(MAKE ) clean -C ../polya/fortran
135136 rm -f ${CLEAN}
136137clobber :
138+ +$(MAKE ) clobber -C ../symlib/src
139+ +$(MAKE ) clobber -C ../polya/fortran
137140 rm -f ${CLEAN} * ~ \# *
138141 make
0 commit comments