Makefile.am 778 Bytes
Newer Older
1 2
#
# Makefile for the Python Gnumeric plugin.
3 4 5 6 7 8 9
#

#
# We should build in the extension subdirectory as well.
#
SUBDIRS = ext

10 11 12 13 14 15 16 17 18 19
#
# Where can we find the Gnumeric include files.
#
GNUMERIC_SRC_DIR = $(srcdir)/../../src

#
# Where to install the plugin
#
plugindir = $(libdir)/gnumeric/plugins

20
CFLAGS += $(PERL_CCCDLFLAGS)				\
21 22 23 24 25 26
	-I$(GNUMERIC_SRC_DIR)				\
	-DGNOMELOCALEDIR=\""$(datadir)/locale"\" 	\
	-I$(includedir)					\
	$(PERL_CCOPTS)					\
	$(GNOME_INCLUDEDIR)

27 28 29 30 31 32 33 34 35 36 37

plugin_PROGRAMS = perl.so

.c.o:
	$(CC) $(CFLAGS) -c $<

perl.so: perl.o xsinit.o
	$(PERL_LD) $(PERL_LDDLFLAGS) -o perl.so perl.o xsinit.o $(PERL_LDOPTS)

xsinit.c:
	perl -MExtUtils::Embed -e xsinit -- -o xsinit.c
38 39 40 41 42 43

Perlscriptsdir = $(datadir)/gnumeric/perl

Perlscripts_DATA = startup.pl

EXTRA_DIST = startup.pl