File: Makefile.am

package info (click to toggle)
crossfire 1.71.0%2Bdfsg1-2
  • links: PTS
  • area: main
  • in suites: buster
  • size: 28,076 kB
  • sloc: ansic: 85,126; sh: 11,978; perl: 2,659; lex: 2,044; makefile: 1,271
file content (34 lines) | stat: -rw-r--r-- 873 bytes parent folder | download | duplicates (2)
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
plugindir=$(pkglibdir)/plugins

SUBDIRS = include

if PYTHON_PLUGIN
plugin_LTLIBRARIES = cfpython.la
else
plugin_LTLIBRARIES =
endif
cfpython_la_SOURCES = cfpython.c\
	cfpython_archetype.c\
	cfpython_object.c\
	cfpython_map.c\
	cfpython_party.c\
	cfpython_region.c\
	cjson.c\
	../common/plugin_common.c\
	../common/hashtable.c

cfpython_la_CPSOURCES = cfpython.c\
	cfpython_archetype.c\
	cfpython_object.c\
	cfpython_party.c\
	cfpython_region.c\
	cfpython_map.c

cfpython_la_LIBADD = @PYTHON_LIB@ @PY_LIBS@
cfpython_la_LDFLAGS = -module -avoid-version -rdynamic
AM_CPPFLAGS = -I$(srcdir)/include -I$(top_srcdir)/plugins/common/include -I$(top_srcdir)/include @PY_INCLUDES@

proto:
	cproto -D__CEXTRACT__ -o include/cfpython_proto.h $(CPPFLAGS) $(AM_CPPFLAGS) \
		`echo $(cfpython_la_CPSOURCES) " " | $(AWK) -v RS=" " '/.c$$/ { print }'`
	chmod 644 include/cfpython_proto.h