/usr/share/sdpa/libexample/Makefile is in libsdpa-dev 7.3.11+dfsg-1ubuntu1.
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 | #############################################################
# List of examples for callable-library
#
# example1.cpp: Solve example1.dat-s using inputElements
# example2.cpp: Solve example2.dat using inputElements
# example3.cpp: Solve example1.dat-s with initial point
# example4.cpp: Solve twice with smaller epsilonStar
# example5.cpp: Solve problems reading from file
# example6.cpp: Solve problems reading from file with initial point
#
#############################################################
.PHONY: all lib clean cleanall distclean
.SUFFIXES: .exe
# after "make install", you can find
# 'make.inc' in 'share/sdpa' sub-directory under the installed directory
# For example
# make MAKE_INCLUDE_DIR=/usr/share/sdpa
# or
# make MAKE_INCLUDE_DIR=/usr/local/share/sdpa
MAKE_INCLUDE_DIR=..
-include ${MAKE_INCLUDE_DIR}/make.inc
# after "make install", you can find
# 'make.inc' in 'share/sdpa' sub-directory under the installed directory
# For example
# make MAKE_INCLUDE_DIR=/usr/share/sdpa
# or
# make MAKE_INCLUDE_DIR=/usr/local/share/sdpa
SRC = $(wildcard example?.cpp)
EXE = $(subst .cpp,.exe,$(SRC))
all: ${EXE}
%.exe: %.o
${CXX} ${CXXFLAGS} ${CPPFLAGS} -o $@ $< ${SDPA_LIBS}
.cpp.o:
${CXX} -c ${CXXFLAGS} ${CPPFLAGS} \
-I${SDPA_DIR}/include ${MUMPS_INCLUDE} ${PTHREAD_INCLUDE} \
-o $@ $<
clean:
rm -f *.o *~
cleanall: clean
rm -f *.exe
distclean: cleanall
install: all
uninstall:
|