/usr/share/psi/plugin/Makefile.template is in psi4-data 4.0~beta5+dfsg-2.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 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 | #
# Plugin Makefile generated by Psi4.
#
# You shouldn't need to modify anything in this file.
#
# Location of your PSI4 source
top_srcdir = @top_srcdir@
# Location of your PSI4 install, by default as listed
top_objdir = @top_objdir@
# Start by figuring out whether we're on Linux or Mac (sorry, Mr. Gates)
UNAME := $(shell uname)
include $(top_objdir)/src/bin/MakeVars
# Reset these values, MakeVars changes them to valud only valid in Psi4's objdir
# Location of your PSI4 source
top_srcdir = @top_srcdir@
# Location of your PSI4 install, by default as listed
top_objdir = @top_objdir@
PSITARGET = $(shell basename `pwd`).so
PSILIBS = -L$(top_objdir)/lib -lPSI_plugin
CXXSRC = $(notdir $(wildcard *.cc))
DEPENDINCLUDE = $(notdir $(wildcard *.h))
BINOBJ = $(CXXSRC:%.cc=%.o)
default:: $(PSITARGET)
# Add the flags needed for shared library creation
ifeq ($(UNAME), Linux)
LDFLAGS = -shared
endif
ifeq ($(UNAME), Darwin)
LDFLAGS = -shared -undefined dynamic_lookup
CXXOTH += -fno-common
endif
# The object files
%.o: %.cc
$(CXX) $(CXXFLAGS) $(CXXINCLUDE) -c $< $(OUTPUT_OPTION)
$(PSITARGET): $(BINOBJ)
$(CXX) $(LDFLAGS) -o $@ $^ $(CXXDBG) $(PSILIBS)
# Erase all compiled intermediate files
clean:
rm -f $(BINOBJ) $(PSITARGET) *.d *.pyc *.test output.dat psi.timer.dat
# Dependency handling
%.d: %.cc
$(CXXDEPEND) $(CXXDEPENDFLAGS) $(CXXFLAGS) $(CXXINCLUDE) $< | sed 's/^$*.o/$*.o $*.d/g' > $(@F)
ifneq ($(DODEPEND),no)
$(BINOBJ:%.o=%.d): $(DEPENDINCLUDE)
include $(BINOBJ:%.o=%.d)
endif
|