1# examples/fortran/Makefile.examples.in for PLplot 2 3# Copyright (C) 2002-2019 Alan W. Irwin 4# Copyright (C) 2003-2005 Rafael Laboissiere 5# Copyright (C) 2004-2012 Andrew Ross 6# Copyright (C) 2008-2016 Arjen Markus 7# 8# This file is part of PLplot. 9# 10# PLplot is free software; you can redistribute it and/or modify 11# it under the terms of the GNU Library General Public License as published by 12# the Free Software Foundation; version 2 of the License. 13# 14# PLplot is distributed in the hope that it will be useful, 15# but WITHOUT ANY WARRANTY; without even the implied warranty of 16# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 17# GNU Library General Public License for more details. 18# 19# You should have received a copy of the GNU Library General Public License 20# along with the file PLplot; if not, write to the Free Software 21# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA 22 23SHELL = @SH_EXECUTABLE@ 24Fortran = @FC@ 25EXEEXT = @EXEEXT@ 26 27PKG_CONFIG_ENV = @PKG_CONFIG_ENV@ 28install_tree_fortran_RPATHCMD = @install_tree_fortran_RPATHCMD@ 29 30EXECUTABLES_list = \ 31 x00f$(EXEEXT) \ 32 x01f$(EXEEXT) \ 33 x02f$(EXEEXT) \ 34 x03f$(EXEEXT) \ 35 x04f$(EXEEXT) \ 36 x05f$(EXEEXT) \ 37 x06f$(EXEEXT) \ 38 x07f$(EXEEXT) \ 39 x08f$(EXEEXT) \ 40 x09f$(EXEEXT) \ 41 x10f$(EXEEXT) \ 42 x11f$(EXEEXT) \ 43 x12f$(EXEEXT) \ 44 x13f$(EXEEXT) \ 45 x14f$(EXEEXT) \ 46 x15f$(EXEEXT) \ 47 x16f$(EXEEXT) \ 48 x16af$(EXEEXT) \ 49 x17f$(EXEEXT) \ 50 x18f$(EXEEXT) \ 51 x19f$(EXEEXT) \ 52 x20f$(EXEEXT) \ 53 x21f$(EXEEXT) \ 54 x22f$(EXEEXT) \ 55 x23f$(EXEEXT) \ 56 x24f$(EXEEXT) \ 57 x25f$(EXEEXT) \ 58 x26f$(EXEEXT) \ 59 x27f$(EXEEXT) \ 60 x28f$(EXEEXT) \ 61 x29f$(EXEEXT) \ 62 x30f$(EXEEXT) \ 63 x31f$(EXEEXT) \ 64 x33f$(EXEEXT) 65 66 67all: $(EXECUTABLES_list) 68 69clean: 70 rm -f $(EXECUTABLES_list) 71 72# target_link_libraries(x${STRING_INDEX}fortran plfortrandemolib plplotfortran 73# plplotfortranc) Note, the corresponding *.pc file lists both plplotfortran 74# and plplotfortranc as PUBLIC libraries. Note, some Fortran compilers 75# (e.g., nagfor) by default do not look for included files (e.g., 76# plfortrandemos.inc included by x21f.f90) in the location of the source 77# file when the build is occurring in a different directory so must 78# specify an extra -I option for that. 79.f90$(EXEEXT): 80 $(Fortran) @MODULESINCCMD@ $< -o $@ $(install_tree_fortran_RPATHCMD) $(shell $(PKG_CONFIG_ENV) pkg-config @PC_STATIC_OPTION@ --cflags --libs plplot-fortran) -lplfortrandemolib -I"@DATA_DIR@"/examples/fortran 81 82.SUFFIXES: .f90 $(EXEEXT) 83