# $NetBSD: buildlink.mk,v 1.6 2001/07/01 22:59:21 jlam Exp $ # # This Makefile fragment is included by packages that use Mesa. # # To use this Makefile fragment, simply: # # (1) Include this Makefile fragment in the package Makefile, # (2) Add ${BUILDLINK_DIR}/include to the front of the C preprocessor's header # search path, and # (3) Add ${BUILDLINK_DIR}/lib to the front of the linker's library search # path. .if !defined(MESA_BUILDLINK_MK) MESA_BUILDLINK_MK= # defined .include "../../mk/bsd.buildlink.mk" USE_MESA= # defined # We double-list because we're not sure if the files are in ${X11BASE} # or in ${LOCALBASE}. BUILDLINK_PREFIX.Mesa-x11base= ${X11BASE} BUILDLINK_FILES.Mesa-x11base= include/GL/* BUILDLINK_FILES.Mesa-x11base+= lib/libGL.* BUILDLINK_FILES.Mesa-x11base+= lib/libGLU.* BUILDLINK_FILES.Mesa-x11base+= lib/libglut.* BUILDLINK_TARGETS.Mesa= Mesa-x11base-buildlink BUILDLINK_PREFIX.Mesa-localbase= ${LOCALBASE} BUILDLINK_FILES.Mesa-localbase= include/GL/* BUILDLINK_FILES.Mesa-localbase+= lib/libGL.* BUILDLINK_FILES.Mesa-localbase+= lib/libGLU.* BUILDLINK_FILES.Mesa-localbase+= lib/libglut.* BUILDLINK_TARGETS.Mesa+= Mesa-localbase-buildlink BUILDLINK_TARGETS+= ${BUILDLINK_TARGETS.Mesa} pre-configure: ${BUILDLINK_TARGETS.Mesa} Mesa-x11base-buildlink: _BUILDLINK_USE Mesa-localbase-buildlink: _BUILDLINK_USE .endif # MESA_BUILDLINK_MK