srcdir = @srcdir@
VPATH = @srcdir@

include ../MakeVars

LDLIBS += $(LAPACK) $(BLAS)

PSILIBS = -lPSI_dpd -lPSI_qt -lPSI_chkpt -lPSI_iwl -lPSI_psio -lPSI_ciomr -lPSI_ipv1

CSRC = \
BT2.c  Fae.c     Wmbej.c                 d1diag.c      get_moinfo.c  t2.c     \
CT2.c  FaetT2.c  WmbejT2.c  Z.c          diagnostic.c  get_params.c  tau.c    \
DT2.c  Fme.c     Wmnij.c    ZT2.c        diis.c        init_amps.c   taut.c   \
ET2.c  Fmi.c     WmnijT2.c  ccenergy.c   dijabT2.c     sort_amps.c   tsave.c  \
FT2.c  FmitT2.c             converged.c  energy.c      t1.c          update.c \
cache.c priority.c spinad_amps.c BT2_AO.c halftrans.c  AO_contribute.c status.c \
local.c lmp2.c new_d1diag.c amp_write.c rotate.c fock_build.c \
diis_RHF.c diis_UHF.c diis_ROHF.c analyze.c \

BINOBJ = $(CSRC:%.c=%.o)

include ../MakeRules

ifneq ($(DODEPEND),no)
$(BINOBJ:%.o=%.d): $(DEPENDINCLUDE)
include $(BINOBJ:%.o=%.d)
endif

install_man:: ccenergy.1
	$(MKDIRS) $(mandir)/man1
	$(INSTALL_INCLUDE) $^ $(mandir)/man1

