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 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98
|
#----------------------------*- makefile-gmake -*------------------------------
# ========= |
# \\ / F ield | OpenFOAM: The Open Source CFD Toolbox
# \\ / O peration |
# \\ / A nd | www.openfoam.com
# \\/ M anipulation |
#------------------------------------------------------------------------------
# Copyright (C) 2019 OpenCFD Ltd.
#------------------------------------------------------------------------------
# License
# This file is part of OpenFOAM, licensed under GNU General Public License
# <http://www.gnu.org/licenses/>.
#
# File
# wmake/makefiles/info
#
# Description
# Makefile to generate information.
# Used by wmake -show-*
#
#------------------------------------------------------------------------------
#------------------------------------------------------------------------------
# Use POSIX shell
#------------------------------------------------------------------------------
SHELL = /bin/sh
#------------------------------------------------------------------------------
# No default suffix rules used
#------------------------------------------------------------------------------
.SUFFIXES:
#------------------------------------------------------------------------------
# Some default values
#------------------------------------------------------------------------------
# Shared library extension (with '.' separator)
EXT_SO = .so
#------------------------------------------------------------------------------
# Compilation rules
#------------------------------------------------------------------------------
GENERAL_RULES = $(WM_DIR)/rules/General
include $(GENERAL_RULES)/general
# Commands
COMPILE_C := $(strip $(cc) $(cFLAGS))
COMPILE_CXX := $(strip $(CC) $(c++FLAGS))
#------------------------------------------------------------------------------
# Display information
#------------------------------------------------------------------------------
.PHONY: api
api:
@echo "$(lastword $(subst =, ,$(WM_VERSION)))"
.PHONY: ext-so
ext-so:
@echo "$(EXT_SO)"
.PHONY: compile-c
compile-c:
@echo "$(COMPILE_C)"
.PHONY: compile-cxx
compile-cxx:
@echo "$(COMPILE_CXX)"
.PHONY: c
c:
@echo "$(firstword $(cc))"
.PHONY: cxx
cxx:
@echo "$(firstword $(CC))"
.PHONY: cflags
cflags:
@echo "$(wordlist 2,$(words $(COMPILE_C)), $(COMPILE_C))"
.PHONY: cxxflags
cxxflags:
@echo "$(wordlist 2,$(words $(COMPILE_CXX)), $(COMPILE_CXX))"
.PHONY: cflags-arch
cflags-arch:
@echo "$(strip $(cARCH))"
.PHONY: cxxflags-arch
cxxflags-arch:
@echo "$(strip $(c++ARCH))"
#----------------------------- vim: set ft=make: ------------------------------
|