2058N/A# Copyright (c) 2006, 2011, Oracle
and/or its affiliates. All rights reserved.
2058N/A# Permission is hereby granted, free of charge, to any person obtaining a
2058N/A# copy of this software and associated documentation files (the "Software"),
2058N/A# to deal in the Software without restriction, including without limitation
2058N/A# the rights to use, copy, modify, merge, publish, distribute, sublicense,
2058N/A#
and/or sell copies of the Software, and to permit persons to whom the
2058N/A# Software is furnished to do so, subject to the following conditions:
2058N/A# The above copyright notice and this permission notice (including the next
2058N/A# paragraph) shall be included in all copies or substantial portions of the
2058N/A# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
2058N/A# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
2058N/A# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL
2058N/A# THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
2058N/A# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
2058N/A# FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
2058N/AGFX_COMMON = ../../gfx_common
2058N/AINCL += -I ${GFX_COMMON}/include
3996N/ACFLAGS += ${DEBUG} -m64 -xCC ${DEFS} -DSUN__${DEV} -Dsun -Dsparc -DSVR4 \
3996N/A -DSYSV -D__EXTENSIONS__ -DDPMSExtension -DXRECORD -DEVI -DSHAPE -DXINPUT \
3996N/A -DXKB -DLBX -DXAPPGROUP -DXCSECURITY -DTOGCUP -DPANORAMIX -DNEED_DBE_BUF_BITS \
2058N/A -DNEED_DBE_BUF_VALIDATE -DPIXPRIV -DFBPM -DSUNSOFT -DSUNSOFT_BUYBACK -DXDPS \
2058N/A -DNEED_LINEHELPER -DINCLUDE_ALLOCA_H -DMITSHM -DNODBBS
all: libvtsSUNW${Dev}.so.1
libvtsSUNW${Dev}.so.1: $(LIB_OBJS) mapfile
${CC} ${CFLAGS} -M mapfile -G -lXext -lX11 -lm $(LIB_OBJS) -o $@
${CC} ${CFLAGS} -c ${INCL} -Kpic -xregs=no%appl ${GFX_COMMON}
/vts/gfx_vts.c -o $@
${CC} ${CFLAGS} ${INCL} ${GFX_COMMON}
/vts/xfb_uselib.c -ldl -lXext -lX11 -lm -L . -o $@
${Dev}_uselib64: xfb_uselib64
${CC} ${CFLAGS} -c ${INCL} -Kpic -xregs=no%appl -o $@ $<
rm -f ${Dev}_uselib64 xfb_uselib64 libvtsSUNW${Dev}.so.1 $(LIB_OBJS)
install: $(INSTALL_LIB_DIR)/libvtsSUNW${Dev}.so.1
$(INSTALL_LIB_DIR)/libvtsSUNW${Dev}.so.1: libvtsSUNW${Dev}.so.1