Home | History | Annotate | Line # | Download | only in libXcursor
Makefile revision 1.2
      1 #	$NetBSD: Makefile,v 1.2 2008/09/13 04:32:30 cube Exp $
      2 
      3 .include <bsd.own.mk>
      4 
      5 LIB=	Xcursor
      6 
      7 .PATH:	${X11SRCDIR.${LIB}}/src
      8 .PATH:	${X11SRCDIR.${LIB}}/include/X11/Xcursor
      9 .PATH:	${X11SRCDIR.${LIB}}/man
     10 SRCS=	cursor.c display.c file.c library.c xlib.c
     11 
     12 INCS=	Xcursor.h
     13 INCSDIR=${X11INCDIR}/X11/Xcursor
     14 
     15 MAN=	Xcursor.3
     16 
     17 CPPFLAGS+=	${X11FLAGS.THREADLIB}
     18 CPPFLAGS+=	-DICONDIR=\"${X11LIBDIR}/icons\"
     19 CPPFLAGS+=	-I${DESTDIR}${X11INCDIR}/X11/Xcursor
     20 CPPFLAGS+=	-I${X11SRCDIR.${LIB}}/../include
     21 
     22 LIBDPLIBS=\
     23 	Xrender	${.CURDIR}/../libXrender \
     24 	Xext	${.CURDIR}/../libXext \
     25 	X11	${.CURDIR}/../libX11/dynamic
     26 
     27 .if 0
     28 # XXX it would be really swell if SCRIPTS was available from bsd.lib.mk
     29 FILES=			xcursor.pc xcursor-config
     30 FILESDIR_xcursor.pc=	${X11USRLIBDIR}/pkgconfig
     31 FILESDIR_xcursor-config=${X11BINDIR}
     32 FILESOWN_xcursor-config=${BINOWN}
     33 FILESGRP_xcursor-config=${BINGRP}
     34 FILESMODE_xcursor-config=${BINMODE}
     35 
     36 CLEANFILES+=${FILES}
     37 realall: ${FILES}
     38 
     39 XCURSORDIR=	${X11SRCDIR.xc}/lib/Xcursor
     40 CONFIG_SUBST=	${HOST_SH} ${XCURSORDIR}/config-subst \
     41 		prefix="${X11ROOTDIR}" \
     42 		exec_prefix="${X11BINDIR}" \
     43 		libdir="${X11USRLIBDIR}" \
     44 		includedir="${X11INCDIR}" \
     45 		hardcode_libdir_flag_spec="-Wl,-rpath,${X11USRLIBDIR}" \
     46 		PACKAGE_VERSION="1.0.0"
     47 
     48 xcursor.pc:
     49 	${CONFIG_SUBST} < ${XCURSORDIR}/xcursor.pc.in > ${.TARGET}
     50 
     51 xcursor-config:
     52 	${CONFIG_SUBST} < ${XCURSORDIR}/xcursor-config.in > ${.TARGET}
     53 .endif
     54 
     55 PKGDIST=	${LIB}
     56 
     57 .include <bsd.x11.mk>
     58 .include <bsd.lib.mk>
     59