blob: e210318b8e0ef334177e8638f2f409c8fc1e04a8 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
|
AUTOMAKE_OPTIONS = 1.7
INCLUDES = $(PYTHON_INCLUDES) $(GLIB_CFLAGS) -DPY_SSIZE_T_CLEAN
pkgincludedir = $(includedir)/pygtk-2.0
pkginclude_HEADERS = pyglib.h
lib_LTLIBRARIES = libpyglib-2.0-@PYTHON_BASENAME@.la
pkgpyexecdir = $(pyexecdir)
pyglibdir = $(pkgpyexecdir)/glib
pyglib_PYTHON = \
__init__.py \
option.py
pyglib_LTLIBRARIES = _glib.la
common_ldflags = -module -avoid-version
if PLATFORM_WIN32
common_ldflags += -no-undefined
endif
libpyglib_2_0_@PYTHON_BASENAME@_la_CFLAGS = $(GLIB_CFLAGS)
libpyglib_2_0_@PYTHON_BASENAME@_la_LIBADD = $(GLIB_LIBS) $(FFI_LIBS)
libpyglib_2_0_@PYTHON_BASENAME@_la_SOURCES = \
pyglib.c \
pyglib.h \
pyglib-private.h \
pyglib-python-compat.h
_glib_la_CFLAGS = $(GLIB_CFLAGS)
_glib_la_LDFLAGS = $(common_ldflags) -export-symbols-regex "_glib|PyInit__glib"
_glib_la_LIBADD = $(GLIB_LIBS) libpyglib-2.0-@PYTHON_BASENAME@.la
_glib_la_SOURCES = \
glibmodule.c \
pygiochannel.c \
pygiochannel.h \
pygoptioncontext.c \
pygoptioncontext.h \
pygoptiongroup.c \
pygoptiongroup.h \
pygmaincontext.c \
pygmaincontext.h \
pygmainloop.c \
pygmainloop.h \
pygsource.c \
pygsource.h \
pygspawn.c \
pygspawn.h
if PLATFORM_WIN32
_glib_la_CFLAGS += -DPLATFORM_WIN32
endif
all: $(pyglib_LTLIBRARIES:.la=.so)
check-local: $(pyglib_LTLIBRARIES:.la=.so)
clean-local:
rm -f $(pyglib_LTLIBRARIES:.la=.so)
.la.so:
$(LN_S) .libs/$@ $@ || true
-include $(top_srcdir)/git.mk
|