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