1
# examples/c/Makefile.examples.in for PLplot
3
### Process this file with configure to produce Makefile.examples
5
# Copyright (C) 2002, 2004 Alan W. Irwin
6
# Copyright (C) 2004 Rafael Laboissiere
7
# Copyright (C) 2004 Andrew Ross
9
# This file is part of PLplot.
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.
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.
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
28
PKG_CONFIG_ENV = PKG_CONFIG_PATH=/usr/local/lib/pkgconfig
29
RPATHCMD = -Wl,-rpath -Wl,/usr/local/lib
31
#PLPLOTCANVAS_EXECUTABLES_list = \
32
# plplotcanvas_demo$(EXEEXT) \
33
# plplotcanvas_animation$(EXEEXT)
35
extXdrawable_EXECUTABLES_list = \
36
extXdrawable_demo$(EXEEXT)
38
extcairo_EXECUTABLES_list = \
39
ext-cairo-test$(EXEEXT)
75
$(PLPLOTCANVAS_EXECUTABLES_list) \
76
$(extXdrawable_EXECUTABLES_list) \
77
$(extcairo_EXECUTABLES_list)
79
all: $(EXECUTABLES_list)
82
rm -f $(EXECUTABLES_list)
84
#plplotcanvas_demo$(EXEEXT): plplotcanvas_demo.c
85
# $(CC) $< -o $@ $(RPATHCMD) \
86
# `$(PKG_CONFIG_ENV) pkg-config --cflags --libs plplot$(LIB_TAG)-gnome2`
88
## `plplot-config --cflags --libs --with-gcw`
90
#plplotcanvas_animation$(EXEEXT): plplotcanvas_animation.c
91
# $(CC) $< -o $@ $(RPATHCMD) \
92
# `$(PKG_CONFIG_ENV) pkg-config --cflags --libs plplot$(LIB_TAG)-gnome2` \
93
# `pkg-config --cflags --libs gthread-2.0`
95
## $@ `plplot-config --cflags --libs --with-gcw` \
98
extXdrawable_demo$(EXEEXT): extXdrawable_demo.c
99
$(CC) $< -o $@ $(RPATHCMD) \
100
`$(PKG_CONFIG_ENV) pkg-config --cflags --libs plplot$(LIB_TAG) gtk+-x11-2.0`
102
ext-cairo-test$(EXEEXT): ext-cairo-test.c
103
$(CC) $< -o $@ $(RPATHCMD) \
104
`$(PKG_CONFIG_ENV) pkg-config --cflags --libs plplot$(LIB_TAG) cairo`
107
$(CC) $< -o $@ $(RPATHCMD) `$(PKG_CONFIG_ENV) pkg-config --cflags --libs plplot$(LIB_TAG)`
108
# $(CC) $< -o $@ `plplot-config --cflags --libs`
110
.SUFFIXES: .c $(EXEEXT)