mirror of
https://github.com/znc/znc.git
synced 2026-06-11 17:25:04 +02:00
cc52a7d2be
Workaround for broken swig, which allows old swig versions to work too. These files should be removed when fixed swig is released. Thanks to Juvenal for suggestion.
38 lines
758 B
Makefile
38 lines
758 B
Makefile
all:
|
|
|
|
VPATH := $(srcdir)
|
|
|
|
ifneq "$(V)" ""
|
|
VERBOSE=1
|
|
endif
|
|
ifeq "$(VERBOSE)" ""
|
|
Q=@
|
|
E=@echo
|
|
C=-s
|
|
else
|
|
Q=
|
|
E=@\#
|
|
C=
|
|
endif
|
|
|
|
.SECONDARY:
|
|
|
|
all: modperl/ZNC.cpp modperl/ZNC.pm modperl/functions.cpp modperl/swigperlrun.h
|
|
|
|
modperl/swigperlrun.h:
|
|
@mkdir -p modperl
|
|
$(Q)$(SWIG) -perl5 -c++ -shadow -external-runtime $@
|
|
|
|
modperl/ZNC.cpp: modperl/modperl.i modperl/module.h modperl/CString.i
|
|
$(E) Generating ZNC API for Perl...
|
|
@mkdir -p modperl
|
|
$(Q)$(SWIG) -perl5 -c++ -shadow -outdir modperl -I$(srcdir) -I$(srcdir)/../swig_lib/perl5 -MD -MF .depend/modperl.swig.dep -w362,315,401,402 -o $@ $<
|
|
|
|
modperl/ZNC.pm: modperl/ZNC.cpp
|
|
|
|
modperl/functions.cpp: modperl/codegen.pl modperl/functions.in
|
|
@mkdir -p modperl
|
|
$(Q)$(PERL) $^ $@
|
|
|
|
-include .depend/modperl.swig.dep
|