xref: /petsc/makefile (revision c094437bd21daf7164e8f30111a55c7db66f55db)
1#
2# This is the makefile for installing TAO. See the file
3# docs/installation.html for directions on installing TAO.
4# See also bmake/common for additional commands.
5#
6ALL: all
7
8
9# Call make recursively in these directory
10DIRS = src include docs
11
12include ${TAO_DIR}/bmake/packages
13include ${TAO_DIR}/bmake/tao_common
14
15#
16# Basic targets to build TAO libraries.
17# all     : builds the C/C++ and Fortran libraries
18all       : info tao_chkcxx chktao_dir tao_chklib_dir tao_deletelibs tao_build_c tao_build_fortran tao_shared
19#
20# Prints information about the system and version of TAO being compiled
21#
22info:
23	-@echo "=========================================="
24	-@echo " "
25	-@echo "See docs/troubleshooting.html and docs/bugreporting.html"
26	-@echo "for help with installation problems. Please send EVERYTHING"
27	-@echo "printed out below when reporting problems."
28	-@echo " "
29	-@echo "To subscribe to the TAO users mailing list, send mail to "
30	-@echo "majordomo@mcs.anl.gov with the message: "
31	-@echo "subscribe tao-news"
32	-@echo " "
33	-@echo "=========================================="
34	-@echo On `date` on `hostname`
35	-@echo Machine characteristics: `uname -a`
36	-@echo "-----------------------------------------"
37	-@echo "Using PETSc directory: ${PETSC_DIR}"
38	-@echo "Using PETSc arch: ${PETSC_ARCH}"
39	-@echo "Using TAO directory: ${TAO_DIR}"
40	-@echo "-----------------------------------------"
41	-@grep "define PETSC_VERSION" ${PETSC_DIR}/include/petscversion.h | ${SED} "s/........//"
42	-@grep TAO_VERSION_NUMBER include/tao_version.h | sed "s/........//"
43	-@echo "-----------------------------------------"
44	-@echo "Using include paths: ${TAO_INCLUDE}"
45	-@echo "------------------------------------------"
46	-@echo "Using C/C++ compiler: ${CC} ${CC_FLAGS} ${COPTFLAGS} ${CFLAGS}"
47	-@echo "C/C++ Compiler version: " `${CCV}`
48	-@if [ "${FC}" != "" ]; then \
49	   echo "Using Fortran compiler: ${FC} ${FC_FLAGS} ${FFLAGS} ${FPP_FLAGS}";\
50	   echo "Fortran Compiler version: " `${FCV}`;\
51         fi
52	-@echo "-----------------------------------------"
53	-@echo "Using C/C++ linker: ${CC_LINKER}"
54	-@if [ "${FC}" != "" ]; then \
55	   echo "Using Fortran linker: ${FC_LINKER}";\
56         fi
57	-@echo "-----------------------------------------"
58	-@echo "Using libraries: ${TAO_LIB}"
59	-@echo "------------------------------------------"
60	-@echo "Using mpirun: ${MPIEXEC}"
61	-@echo "=========================================="
62
63