0N/A#
0N/A# Copyright (c) 2006, 2011, Oracle and/or its affiliates. All rights reserved.
0N/A#
0N/A# Permission is hereby granted, free of charge, to any person obtaining a
911N/A# copy of this software and associated documentation files (the "Software"),
810N/A# to deal in the Software without restriction, including without limitation
0N/A# the rights to use, copy, modify, merge, publish, distribute, sublicense,
0N/A# and/or sell copies of the Software, and to permit persons to whom the
0N/A# Software is furnished to do so, subject to the following conditions:
0N/A#
0N/A# The above copyright notice and this permission notice (including the next
0N/A# paragraph) shall be included in all copies or substantial portions of the
0N/A# Software.
0N/A#
0N/A# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
0N/A# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
0N/A# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL
0N/A# THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
0N/A# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
0N/A# FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
0N/A# DEALINGS IN THE SOFTWARE.
0N/A#
0N/A
0N/AGFX_COMMON = ../../gfx_common
0N/AINSTALL_LIB_DIR = $(DESTDIR)/usr/lib/sparcv9
0N/A
0N/A#
0N/A# Compilation flags
0N/A#
0N/A#DEBUG = -g $(SBFLAG)
0N/A#DEFS =
0N/ADEFS = -DVTS_STUBS
0N/AINCL = -I ../common/include
0N/AINCL += -I ${GFX_COMMON}/include
156N/AINCL += -I ${GFX_COMMON}/vts/include
493N/A
0N/ACFLAGS += ${DEBUG} -m64 -xCC ${DEFS} -DSUN__${DEV} -Dsun -Dsparc -DSVR4 \
0N/A -DSYSV -D__EXTENSIONS__ -DDPMSExtension -DXRECORD -DEVI -DSHAPE -DXINPUT \
818N/A -DXKB -DLBX -DXAPPGROUP -DXCSECURITY -DTOGCUP -DPANORAMIX -DNEED_DBE_BUF_BITS \
0N/A -DNEED_DBE_BUF_VALIDATE -DPIXPRIV -DFBPM -DSUNSOFT -DSUNSOFT_BUYBACK -DXDPS \
911N/A -DNEED_LINEHELPER -DINCLUDE_ALLOCA_H -DMITSHM -DNODBBS
911N/A
911N/ALIB_CSRCS = libvtsSUNW${Dev}.c ${GFX_COMMON}/vts/gfx_vts.c tools.c \
911N/A mapper.c memory.c chip.c ${DEV_CSRCS}
0N/ALIB_OBJS = libvtsSUNW${Dev}.o gfx_vts.o tools.o mapper.o memory.o chip.o \
493N/A ${DEV_OBJS}
493N/A
156N/A#
0N/A# Build rules
0N/A#
156N/A
156N/Aall: libvtsSUNW${Dev}.so.1
0N/A
0N/AlibvtsSUNW${Dev}.so.1: $(LIB_OBJS) mapfile
818N/A ${CC} ${CFLAGS} ${LIB_LDFLAGS} -M mapfile -G -lXext -lX11 $(LIB_OBJS) -o $@
818N/A
779N/Agfx_vts.o: ${GFX_COMMON}/vts/gfx_vts.c $(HDRS)
364N/A ${CC} ${CFLAGS} -c ${INCL} -Kpic -xregs=no%appl ${GFX_COMMON}/vts/gfx_vts.c -o $@
156N/A
156N/Axfb_uselib64: ${GFX_COMMON}/vts/xfb_uselib.c $(HDRS)
0N/A ${CC} ${CFLAGS} ${INCL} ${GFX_COMMON}/vts/xfb_uselib.c -ldl -lXext -lX11 -lm -L . -o $@
591N/A
591N/A${Dev}_uselib64: xfb_uselib64
591N/A rm -f $@
591N/A ln -s xfb_uselib64 $@
591N/A
591N/A%.o: %.c $(HDRS)
591N/A ${CC} ${CFLAGS} -c ${INCL} -Kpic -xregs=no%appl -o $@ $<
0N/A
156N/Aclean:
493N/A rm -f ${Dev}_uselib64 xfb_uselib64 libvtsSUNW${Dev}.so.1 $(LIB_OBJS)
493N/A
156N/Atidy:
493N/A rm -f *~
493N/A
837N/Ainstall: $(INSTALL_LIB_DIR)/libvtsSUNW${Dev}.so.1
837N/A
846N/A$(INSTALL_LIB_DIR)/libvtsSUNW${Dev}.so.1: libvtsSUNW${Dev}.so.1
493N/A $(INSTALL) -m 0755 $? $@
493N/A
156N/A