# examples/d/Makefile.examples.in for PLplot
###
### Process this file with configure to produce Makefile.examples
###
# Copyright (C) 2008 Werner Smekal
#
# 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 = @SH_EXECUTABLE@
DC = @DC@
EXEEXT = @EXEEXT@

PKG_CONFIG_ENV = @PKG_CONFIG_ENV@
RPATHCMD = @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 @PC_STATIC_OPTION@ --cflags plplot-d)

# target_link_libraries(x${STRING_INDEX}d plplotdmd plplot ${MATH_LIB})
.o$(EXEEXT):
	$(DC) $< -o $@ $(RPATHCMD) $(shell $(PKG_CONFIG_ENV) pkg-config @PC_STATIC_OPTION@ --libs plplot-d plplot) @MATH_LIB@

.SUFFIXES: .d .o $(EXEEXT)
