# examples/tk/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) 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 = /bin/bash
CC = /usr/bin/cc  -g -O2 -Werror=implicit-function-declaration -ffile-prefix-map=/build/reproducible-path/plplot-5.15.0+dfsg3=. -fstack-protector-strong -Wformat -Werror=format-security -fvisibility=hidden -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -D_TIME_BITS=64 -Wdate-time -D_FORTIFY_SOURCE=2 -I/usr/include/octave-11.1.0/octave/.. -I/usr/include/octave-11.1.0/octave -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -D_TIME_BITS=64 -Wdate-time -D_FORTIFY_SOURCE=2 -I/usr/include/octave-11.1.0/octave/.. -I/usr/include/octave-11.1.0/octave
EXEEXT = 

PKG_CONFIG_ENV = PKG_CONFIG_PATH="/usr/lib/arm-linux-gnueabihf/pkgconfig"
install_tree_tk_RPATHCMD = 

EXECUTABLES_list = xtk01$(EXEEXT)
# Second and fourth examples depend on itk.
itk_EXECUTABLES_list = xtk02$(EXEEXT) xtk04$(EXEEXT)

all: $(EXECUTABLES_list) $(itk_EXECUTABLES_list)

clean:
	rm -f $(EXECUTABLES_list) $(itk_EXECUTABLES_list)

#if(tcltk_in_plplot_library)
#  target_link_libraries(xtk04 plplottcltk_Main plplot /usr/lib/arm-linux-gnueabihf/libtk.so /usr/lib/arm-linux-gnueabihf/libtcl.so /usr/lib/arm-linux-gnueabihf/libm.so)
#else(tcltk_in_plplot_library)
#  target_link_libraries(xtk04 plplottcltk_Main plplottcltk tclmatrix plplot /usr/lib/arm-linux-gnueabihf/libtk.so /usr/lib/arm-linux-gnueabihf/libtcl.so /usr/lib/arm-linux-gnueabihf/libm.so)
#endif(tcltk_in_plplot_library)
.c$(EXEEXT):
#	$(CC) $< -o $@ $(install_tree_tk_RPATHCMD) $(shell $(PKG_CONFIG_ENV) pkg-config  --cflags plplot-tcl_Main plplot) $(shell $(PKG_CONFIG_ENV) pkg-config  --libs plplot-tcl_Main plplot) -L"/usr/lib/arm-linux-gnueabihf" -ltk -L"/usr/lib/arm-linux-gnueabihf" -ltcl /usr/lib/arm-linux-gnueabihf/libm.so
	$(CC) $< -o $@ $(install_tree_tk_RPATHCMD) $(shell $(PKG_CONFIG_ENV) pkg-config  --cflags --libs plplot-tcl_Main plplot-tcl plplot) -ltclmatrix -L"/usr/lib/arm-linux-gnueabihf" -ltk -L"/usr/lib/arm-linux-gnueabihf" -ltcl /usr/lib/arm-linux-gnueabihf/libm.so

.SUFFIXES: .c $(EXEEXT)
