Makefile.am 817 Bytes
Newer Older
1 2
#
# Makefile for the Python Gnumeric plugin.
3 4
#

5 6 7 8 9 10 11 12 13 14
#
# Where can we find the Gnumeric include files.
#
GNUMERIC_SRC_DIR = $(srcdir)/../../src

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

15
CFLAGS += $(PERL_CCCDLFLAGS)				\
16 17 18 19 20 21
	-I$(GNUMERIC_SRC_DIR)				\
	-DGNOMELOCALEDIR=\""$(datadir)/locale"\" 	\
	-I$(includedir)					\
	$(PERL_CCOPTS)					\
	$(GNOME_INCLUDEDIR)

22 23 24 25 26 27

plugin_PROGRAMS = perl.so

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

28
perl.so: perl.o xsinit.o ext.timestamp
29 30 31 32
	$(PERL_LD) $(PERL_LDDLFLAGS) -o perl.so perl.o xsinit.o $(PERL_LDOPTS)

xsinit.c:
	perl -MExtUtils::Embed -e xsinit -- -o xsinit.c
33

34 35 36 37
ext.timestamp:
	( cd ext ; perl Makefile.PL LIB=$(datadir)/gnumeric/perl/lib )
	touch ext.timestamp

38 39 40 41 42
Perlscriptsdir = $(datadir)/gnumeric/perl

Perlscripts_DATA = startup.pl

EXTRA_DIST = startup.pl