# examples/d/Makefile.examples.in for PLplot

# Copyright (C) 2002 Maurice LeBrun
# Copyright (C) 2002-2019 Alan W. Irwin
# Copyright (C) 2003-2005 Rafael Laboissiere
# Copyright (C) 2009 Werner Smekal
# Copyright (C) 2012 Andrew Ross
#
# This file is part of PLplot.
#
# PLplot is free software; you can redistribute it and/or modify
# it under the terms of the GNU Library General Public License as published by
# the Free Software Foundation; version 2 of the License.
#
# PLplot is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
# GNU Library General Public License for more details.
#
# You should have received a copy of the GNU Library General Public License
# along with the file PLplot; if not, write to the Free Software
# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301  USA

SHELL = /usr/bin/bash
DC = /usr/bin/dmd   -version=Phobos -I/include -I/import
EXEEXT = 

PKG_CONFIG_ENV = PKG_CONFIG_PATH="/usr/lib64/pkgconfig::/usr/lib64/pkgconfig:/usr/share/pkgconfig"
install_tree_d_RPATHCMD = 

EXECUTABLES_list = \
		 x00d$(EXEEXT) \
		 x01d$(EXEEXT) \
		 x02d$(EXEEXT) \
		 x03d$(EXEEXT) \
		 x04d$(EXEEXT) \
		 x05d$(EXEEXT) \
		 x06d$(EXEEXT) \
		 x07d$(EXEEXT) \
		 x08d$(EXEEXT) \
		 x09d$(EXEEXT) \
		 x10d$(EXEEXT) \
		 x11d$(EXEEXT) \
		 x12d$(EXEEXT) \
		 x13d$(EXEEXT) \
		 x14d$(EXEEXT) \
		 x15d$(EXEEXT) \
		 x16d$(EXEEXT) \
		 x17d$(EXEEXT) \
		 x18d$(EXEEXT) \
		 x19d$(EXEEXT) \
		 x20d$(EXEEXT) \
		 x21d$(EXEEXT) \
		 x22d$(EXEEXT) \
		 x23d$(EXEEXT) \
		 x24d$(EXEEXT) \
		 x25d$(EXEEXT) \
		 x26d$(EXEEXT) \
		 x27d$(EXEEXT) \
		 x28d$(EXEEXT) \
		 x29d$(EXEEXT) \
		 x30d$(EXEEXT) \
		 x31d$(EXEEXT) \
		 x33d$(EXEEXT)

all: $(EXECUTABLES_list)

clean:
	rm -f $(EXECUTABLES_list) *.o

.d.o:
	$(DC) $< -c -o $@ $(shell $(PKG_CONFIG_ENV) pkg-config  --cflags plplot-d)

# target_link_libraries(xd plplotdmd plplot /usr/lib64/libm.so)
.o$(EXEEXT):
	$(DC) $< -o $@ $(install_tree_d_RPATHCMD) $(shell $(PKG_CONFIG_ENV) pkg-config  --libs plplot-d plplot) /usr/lib64/libm.so

.SUFFIXES: .d .o $(EXEEXT)
