1 ## Process this file with automake to produce Makefile.in
3 INCLUDES = -I$(top_srcdir)/girepository
17 # Why do I have to do this automake?
18 scannerlexer.h: scannerlexer.c
20 noinst_LTLIBRARIES = libgiscanner.la
22 libgiscanner_la_SOURCES = \
28 libgiscanner_la_LIBADD = $(GOBJECT_LIBS)
29 libgiscanner_la_CFLAGS = $(GOBJECT_CFLAGS)
31 GCOVSOURCES = $(libgiscanner_la_SOURCES)
34 pkgpyexecdir = $(pkglibdir)/giscanner
35 pkgpyexec_LTLIBRARIES = _giscanner.la
57 _giscanner_la_CFLAGS = \
60 -I$(top_srcdir)/giscanner
61 _giscanner_la_LIBADD = libgiscanner.la $(GOBJECT_LIBS)
63 _giscanner_la_LDFLAGS = \
64 -module -avoid-version -export-symbols-regex init_giscanner
67 # Yuck. Probably there is a way to get this from Python, but I don't
68 # know how. Use -Wl to avoid libtool crack.
69 _giscanner_la_LDFLAGS += -Wl,$(pyexecdir)/../../libs/libpython25.a -no-undefined
72 _giscanner_la_SOURCES = giscannermodule.c
75 BUILT_SOURCES += _giscanner.pyd
76 CLEANFILES += _giscanner.pyd
78 _giscanner.pyd: _giscanner.la
79 cp .libs/_giscanner.dll $@
82 mv $(pkgpyexecdir)/_giscanner.dll $(pkgpyexecdir)/_giscanner.pyd
83 rm $(pkgpyexecdir)/_giscanner.dll.a
84 rm $(pkgpyexecdir)/_giscanner.la
87 include $(top_srcdir)/gcov.mak