1 # For building the dlz_perl_driver driver we don't use
2 # the bind9 build structure as the aim is to provide an
3 # perl_driver that is separable from the bind9 source tree
5 CFLAGS
+= -fPIC
-O2
-I..
/include
7 LIBNAME
= dlz_perl_driver.so
11 dlz_perl_driver.o
: dlz_perl_driver.c
12 $(CC
) $(CFLAGS
) `${FLAGS_PERL} -MExtUtils::Embed -e ccopts` -c
-o dlz_perl_driver.o dlz_perl_driver.c
15 dlz_perl_callback_clientinfo.c
: dlz_perl_callback_clientinfo.xs
16 ${FLAGS_PERL} `${FLAGS_PERL} -MConfig -le 'print $$Config{privlibexp}'`/ExtUtils
/xsubpp
-prototypes
-typemap
`${FLAGS_PERL} -MConfig -le 'print $$Config{privlibexp}'`/ExtUtils
/typemap dlz_perl_callback_clientinfo.xs
> dlz_perl_callback_clientinfo.c
18 dlz_perl_callback_clientinfo.o
: dlz_perl_callback_clientinfo.c
19 $(CC
) $(CFLAGS
) `${FLAGS_PERL} -MExtUtils::Embed -e ccopts` -c
-o dlz_perl_callback_clientinfo.o dlz_perl_callback_clientinfo.c
22 dlz_perl_callback.c
: dlz_perl_callback.xs
23 ${FLAGS_PERL} `${FLAGS_PERL} -MConfig -le 'print $$Config{privlibexp}'`/ExtUtils
/xsubpp
-prototypes
-typemap
`${FLAGS_PERL} -MConfig -le 'print $$Config{privlibexp}'`/ExtUtils
/typemap dlz_perl_callback.xs
> dlz_perl_callback.c
25 dlz_perl_callback.o
: dlz_perl_callback.c
26 $(CC
) $(CFLAGS
) `${FLAGS_PERL} -MExtUtils::Embed -e ccopts` -c
-o dlz_perl_callback.o dlz_perl_callback.c
29 $(LIBNAME
): dlz_perl_driver.o dlz_perl_callback_clientinfo.o dlz_perl_callback.o
30 $(CC
) $(LDFLAGS
) -shared
-o
$(LIBNAME
) dlz_perl_driver.o dlz_perl_callback_clientinfo.o dlz_perl_callback.o
`${FLAGS_PERL} -MExtUtils::Embed -e ldopts`
33 rm -f dlz_perl_driver.o dlz_perl_driver.so dlz_perl_callback_clientinfo.c dlz_perl_callback_clientinfo.o dlz_perl_callback.c dlz_perl_callback.o