pkgsrc/devel/libiberty/application.mk
tv 234d98a3d3 nb1: Install ansidecl.h as libiberty_decl.h (to avoid collision). Done as
patches rather than altering custom tarball so as to keep the tarball as
close to FSF's source as possible.

Add application.mk convenience include to add to CPPFLAGS and LIBS enough
glue to use libiberty in a gcc-based app compile.
2005-01-18 21:58:55 +00:00

14 lines
420 B
Makefile

# $NetBSD: application.mk,v 1.1 2005/01/18 21:58:55 tv Exp $
# Convenience header to help pull libiberty into an application's build.
.include "../../mk/bsd.prefs.mk"
# currently requires GCC for "-include"
.if empty(PKGSRC_COMPILER:Mgcc)
PKG_FAIL_REASON+= "libiberty compatibility build requires gcc compiler"
.endif
.include "../../devel/libiberty/buildlink3.mk"
CPPFLAGS+= -include libiberty.h
LIBS+= -liberty