PKG_LIBS = $(BLAS_LIBS) $(FLIBS)

CSRC = init.c runiran.c
FMODSRC = compute.f90
FSRC = hetmixOrd.f90 hetmixlin.f90 hetmixCont.f90 Jointhet.f90 calculusTransfo.f90 predictCont.f90 predictMult.f90 postprob2.f90 cvpl.f90 predictYcond.f90 mpjhet.f90 hetmixMult.f90 iteminfo.f90 Integ.f90

# Define order of compilation
OBJECTS = $(CSRC:.c=.o) $(FMODSRC:.f90=.o) $(FSRC:.f90=.o) 

$(SHLIB): $(OBJECTS)


#Setup dependencies for parallel make
hetmixCont.o: compute.o
hetmixlin.o: compute.o
hetmixOrd.o: compute.o
Jointhet.o: compute.o
predictCont.o: compute.o
predictMult.o: compute.o
predictYcond.o: compute.o
postprob2.o: compute.o Jointhet.o
cvpl.o: compute.o Jointhet.o
calculusTransfo.o: compute.o
mpjhet.o: compute.o
hetmixMult.o: compute.o
iteminfo.o: compute.o
compute.o: runiran.o
Integ.o: compute.o

