1# examples/d/Makefile.examples.in for PLplot
2
3# Copyright (C) 2002 Maurice LeBrun
4# Copyright (C) 2002-2019 Alan W. Irwin
5# Copyright (C) 2003-2005 Rafael Laboissiere
6# Copyright (C) 2009 Werner Smekal
7# Copyright (C) 2012 Andrew Ross
8#
9# This file is part of PLplot.
10#
11# PLplot is free software; you can redistribute it and/or modify
12# it under the terms of the GNU Library General Public License as published by
13# the Free Software Foundation; version 2 of the License.
14#
15# PLplot is distributed in the hope that it will be useful,
16# but WITHOUT ANY WARRANTY; without even the implied warranty of
17# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
18# GNU Library General Public License for more details.
19#
20# You should have received a copy of the GNU Library General Public License
21# along with the file PLplot; if not, write to the Free Software
22# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301  USA
23
24SHELL = @SH_EXECUTABLE@
25DC = @DC@
26EXEEXT = @EXEEXT@
27
28PKG_CONFIG_ENV = @PKG_CONFIG_ENV@
29install_tree_d_RPATHCMD = @install_tree_d_RPATHCMD@
30
31EXECUTABLES_list = \
32		 x00d$(EXEEXT) \
33		 x01d$(EXEEXT) \
34		 x02d$(EXEEXT) \
35		 x03d$(EXEEXT) \
36		 x04d$(EXEEXT) \
37		 x05d$(EXEEXT) \
38		 x06d$(EXEEXT) \
39		 x07d$(EXEEXT) \
40		 x08d$(EXEEXT) \
41		 x09d$(EXEEXT) \
42		 x10d$(EXEEXT) \
43		 x11d$(EXEEXT) \
44		 x12d$(EXEEXT) \
45		 x13d$(EXEEXT) \
46		 x14d$(EXEEXT) \
47		 x15d$(EXEEXT) \
48		 x16d$(EXEEXT) \
49		 x17d$(EXEEXT) \
50		 x18d$(EXEEXT) \
51		 x19d$(EXEEXT) \
52		 x20d$(EXEEXT) \
53		 x21d$(EXEEXT) \
54		 x22d$(EXEEXT) \
55		 x23d$(EXEEXT) \
56		 x24d$(EXEEXT) \
57		 x25d$(EXEEXT) \
58		 x26d$(EXEEXT) \
59		 x27d$(EXEEXT) \
60		 x28d$(EXEEXT) \
61		 x29d$(EXEEXT) \
62		 x30d$(EXEEXT) \
63		 x31d$(EXEEXT) \
64		 x33d$(EXEEXT)
65
66all: $(EXECUTABLES_list)
67
68clean:
69	rm -f $(EXECUTABLES_list) *.o
70
71.d.o:
72	$(DC) $< -c -o $@ $(shell $(PKG_CONFIG_ENV) pkg-config @PC_STATIC_OPTION@ --cflags plplot-d)
73
74# target_link_libraries(x${STRING_INDEX}d plplotdmd plplot ${MATH_LIB})
75.o$(EXEEXT):
76	$(DC) $< -o $@ $(install_tree_d_RPATHCMD) $(shell $(PKG_CONFIG_ENV) pkg-config @PC_STATIC_OPTION@ --libs plplot-d plplot) @MATH_LIB@
77
78.SUFFIXES: .d .o $(EXEEXT)
79