File: Makefile.plugin

package info (click to toggle)
ggobi 2.1.11-2
  • links: PTS
  • area: main
  • in suites: bookworm, bullseye, buster, stretch
  • size: 13,208 kB
  • ctags: 6,166
  • sloc: ansic: 53,297; xml: 28,411; sh: 11,791; makefile: 264; sed: 16
file content (26 lines) | stat: -rw-r--r-- 951 bytes parent folder | download | duplicates (5)
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
# This is the basic structure of every plugin Makefile.am

# Every plugin provides a single library to GGobi, define it here.
# Its name should start with 'lib' and end with '.la'.
plugindir = $(datadir)/ggobi/plugins/$(PACKAGE_NAME)
plugin_LTLIBRARIES        = plugin.la

# Most plugins will only require GGobi and its dependencies (gtk, libxml2)
plugin_la_LDFLAGS  = @GGOBI_LIBS@ -module
plugin_la_CFLAGS   = @GGOBI_CFLAGS@ @SRC_DEBUG@

# Every plugin has an XML description and some docs
EXTRA_DIST = plugin.xml

if OS_WIN32
plugin_la_DEPENDENCIES=plugin.def
plugin_la_LDFLAGS+=-Wc,-s -no-undefined -export-symbols plugin.def
endif

# The .def file is autogenerated now from all symbols, until we clean up
# ggobi to the point where we can actually maintain the .def file.
plugin.def:
	echo EXPORTS > $@
	nm -g --defined-only $(plugin_la_SOURCES:%.c=.libs/plugin_la-%.o) > tmp
	sed -n '/^........ [T|C] _/s/^........ [T|C] _/ /p' tmp >> $@
	rm tmp