Debian Codegraph @

modules/scripting/perl/api/Makefile

raw
1 # Copyright (c) 2010 Atheme Development Group
2 # Rights to this code are documented in doc/LICENSE.
3
4 PLUGIN = Atheme$(PLUGIN_SUFFIX)
5
6 SRCS = Atheme.c perl_command.c perl_utilities.c perl_hooks.c
7
8 include ../../../../extra.mk
9 include ../../../../buildsys.mk
10
11 plugindir = $(MODDIR)/modules/scripting/lib
12
13 CPPFLAGS += -I../../../../include -I. -I../../../../libmowgli-2/src/libmowgli
14 CPPFLAGS += $(PERL_CFLAGS)
15 CFLAGS += $(PLUGIN_CFLAGS)
16 LDFLAGS += $(PLUGIN_LDFLAGS)
17 LIBS += -L../../../../libathemecore -lathemecore ${LDFLAGS_RPATH} -L../../../../libmowgli-2/src/libmowgli
18
19 # Some of the code from Perl is not designed to compile with warnings.
20 PERL_WARN_HACKS = -Wno-redundant-decls -Wno-float-equal -Wno-unused-value
21 PERL_WARN_HACKS += -Wno-nested-externs -Wno-unused-variable -Wno-shadow
22 CFLAGS += $(PERL_WARN_HACKS)
23 # This does not make any sense, but other warning flags are in CPPFLAGS too.
24 CPPFLAGS += $(PERL_WARN_HACKS)
25
26 Atheme.c: $(wildcard *.xs) typemap
27 xsubpp -prototypes -typemap typemap Atheme.xs >$@ || rm -f $@
28
29 perl_hooks.c: make_perl_hooks.pl ../../../../include/hooktypes.in
30 perl make_perl_hooks.pl