mirror of
https://gitlab.com/apparmor/apparmor.git
synced 2025-03-06 09:21:00 +01:00

This patch moves the apparmor.h and aalogparse.h headers from the libapparmor/src/ directory to a new directory libapparmor/include/. The apparmor.h header is stored in a sys/ directory within libapparmor/include/ to match its usual install location in /usr/include/sys/, simplifying the #include statements of source that wishes to include either the in-tree or system installed version of the header (i.e. #include <sys/apparmor.h> can be used everywhere). The patch size is inflated by the movements of the header files, which are unchanged except for their locations. Otherwise, the rest of the changes are to modify the include search path or to stop looking in $CWD for one of the headers. Signed-off-by: Steve Beattie <steve@nxnw.org> Acked-by: Tyler Hicks <tyhicks@canonical.com>
34 lines
1 KiB
Makefile
34 lines
1 KiB
Makefile
EXTRA_DIST =Makefile.PL libapparmor_wrap.c LibAppArmor.pm examples/*.pl
|
|
|
|
if HAVE_PERL
|
|
noinst_DATA =LibAppArmor.so
|
|
|
|
libapparmor_wrap.c: $(srcdir)/../SWIG/libapparmor.i
|
|
$(SWIG) -perl -I$(srcdir)/../../include -module LibAppArmor -o $@ $(srcdir)/../SWIG/libapparmor.i
|
|
|
|
MOSTLYCLEANFILES=libapparmor_wrap.c LibAppArmor.pm
|
|
|
|
LibAppArmor.pm: libapparmor_wrap.c
|
|
|
|
Makefile.perl: Makefile.PL LibAppArmor.pm
|
|
$(PERL) $< PREFIX=$(prefix) MAKEFILE=$@
|
|
sed -ie 's/^LD_RUN_PATH.*//g' Makefile.perl
|
|
|
|
LibAppArmor.so: libapparmor_wrap.c Makefile.perl
|
|
if test ! -f libapparmor_wrap.c; then cp $(srcdir)/libapparmor_wrap.c . ; fi
|
|
$(MAKE) -fMakefile.perl
|
|
if test $(top_srcdir) != $(top_builddir) ; then rm -f libapparmor_wrap.c ; fi
|
|
|
|
install-exec-local: Makefile.perl
|
|
$(MAKE) -fMakefile.perl install_vendor
|
|
|
|
# sadly there is no make uninstall for perl
|
|
#uninstall-local: Makefile.perl
|
|
#$(MAKE) -fMakefile.perl uninstall
|
|
|
|
clean-local:
|
|
if test -f Makefile.perl; then $(MAKE) -fMakefile.perl realclean; fi
|
|
#rm -f Makefile.perl Makefile.perl.old
|
|
rm -f *.so # *.o
|
|
|
|
endif
|