1269N/A#
1269N/A# Makefile for libSUNWmga_conf.so
1269N/A#
1269N/A
1269N/A#
1425N/A# Copyright (c) 2008, 2013, Oracle and/or its affiliates. All rights reserved.
1269N/A#
1269N/A# Permission is hereby granted, free of charge, to any person obtaining a
1269N/A# copy of this software and associated documentation files (the "Software"),
1269N/A# to deal in the Software without restriction, including without limitation
1269N/A# the rights to use, copy, modify, merge, publish, distribute, sublicense,
1269N/A# and/or sell copies of the Software, and to permit persons to whom the
1269N/A# Software is furnished to do so, subject to the following conditions:
1269N/A#
1269N/A# The above copyright notice and this permission notice (including the next
1269N/A# paragraph) shall be included in all copies or substantial portions of the
1269N/A# Software.
1269N/A#
1269N/A# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
1269N/A# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
1269N/A# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL
1269N/A# THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
1269N/A# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
1269N/A# FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
1269N/A# DEALINGS IN THE SOFTWARE.
1269N/A#
1269N/A
1269N/A
1269N/Ainclude Makefile.common
1269N/A
1269N/AVPATH =$(FBC_SRC_DIR):$(MGA_SRC_DIR)
1269N/A
1269N/A
1269N/A#
1269N/A# Preprocessor flags
1269N/A#
1269N/A
1269N/AMGA_DEFINE = $DEFINE
1269N/A
1269N/A#MGA_INC = -I$(COMMON)/include -I$(COMMON)/lib -I$(OPENWINHOME)/include
1269N/A
1269N/AMGA_INC = -I$(FBC_SRC_DIR) -I$(XF86_SRC_DIR) -I$(MGA_SRC_DIR)
1269N/AMGA_INC += -I$(GFX_COMMON)/include
1269N/A# MGA_INC += -I../../staging/mga/common/include -I../../common/lib
1269N/A
1269N/A
1269N/A#
1269N/A# Linker flags
1269N/A#
1269N/A
1425N/ALIBS = $(L_FBC)
1269N/A
1269N/A
1269N/A#
1269N/A# Code modules
1269N/A#
1269N/A
1269N/AFBC_HDRS = \
1269N/A fbc.h \
1269N/A fbc_dev.h \
1269N/A fbc_properties.h \
1269N/A fbc_getargs.h \
1269N/A fbc_keywds.h \
1269N/A fbc_help.h \
1269N/A fbc_open_device.h \
1269N/A fbc_gamma_table.h \
1269N/A fbc_line_er.h \
1269N/A fbc_xorg.h \
1269N/A fbc_edit_config.h \
1269N/A fbc_Device.h \
1269N/A fbc_Screen.h \
1269N/A fbc_Monitor.h \
1269N/A fbc_Option.h \
1269N/A fbc_fields.h \
1269N/A fbc_open_master.h \
1269N/A fbc_prconf.h \
1269N/A fbc_predid.h \
1269N/A fbc_propt.h \
1269N/A fbc_res.h \
1269N/A sun_edid.h \
1269N/A fbc_mode_list.h \
1269N/A fbc_ask.h \
1269N/A fbc_error.h
1269N/A
1269N/AMGA_HDRS = \
1269N/A mga_properties.h \
1269N/A mga_query_device.h \
1269N/A mga_res_try_now.h \
1269N/A mga_prconf.h \
1269N/A mga_predid.h
1269N/A
1269N/AMGA_CSRCS = \
1269N/A mga_properties.c \
1269N/A mga_query_device.c \
1269N/A mga_res_try_now.c \
1269N/A mga_prconf.c \
1269N/A mga_predid.c
1269N/A
1269N/AMGA_OBJ_FILES = $(MGA_CSRCS:.c=.o)
1269N/AMGA_OBJS = $(MGA_OBJ_FILES:%=$(MGA_BIN_DIR)/%)
1269N/A
1269N/A
1269N/Aall: $(MGA_BIN_DIR) $(BIN_DIR)/$(LIB_MGA_SO)$(VERS)
1269N/A
1269N/A
1269N/A# Library build rules
1269N/A
1269N/A$(BIN_DIR)/$(LIB_MGA_SO)$(VERS): $(MGA_OBJS) $(BIN_DIR)/$(LIB_FBC_SO)$(VERS)
1269N/A rm -f $(BIN_DIR)/$(LIB_MGA_SO)
1269N/A $(CC) $(LIB_LDFLAGS) $(MGA_OBJS) $(LIBS) $(DYNLIBFLAGS) -o $@
1269N/A ln -s $@ $(BIN_DIR)/$(LIB_MGA_SO)
1269N/A
1269N/A$(BIN_DIR)/$(LIB_FBC_SO)$(VERS):
1269N/A $(MAKE) -f Makefile.fbc all
1269N/A
1269N/A# Component-specific compilation rules
1269N/A
1269N/A$(MGA_BIN_DIR)/%.o: $(MGA_SRC_DIR)/%.c $(FBC_HDRS) $(MGA_HDRS)
1269N/A $(CC) $(MGA_INC) $(CFLAGS) -c -o $@ $<
1269N/A
1269N/A
1269N/A# Directories
1269N/A
1269N/A$(MGA_BIN_DIR):
1269N/A [ -d $@ ] || mkdir -p $@
1269N/A
1269N/A
1269N/Ainstall: all $(INSTALL_LIB_DIR)/$(LIB_MGA_SO) $(INSTALL_LIB_DIR)/$(LIB_MGA_SO)$(VERS)
1269N/A
1269N/A$(INSTALL_LIB_DIR)/$(LIB_MGA_SO)$(VERS): $(LIB_MGA_SO)$(VERS)
1269N/A $(INSTALL) -m 0555 $? $@
1269N/A
1269N/A$(INSTALL_LIB_DIR)/$(LIB_MGA_SO): $(LIB_MGA_SO)$(VERS)
1269N/A -rm -f $@
1269N/A ln -s $(LIB_MGA_SO)$(VERS) $@
1269N/A
1269N/Aclean:
1269N/A rm -f $(MGA_OBJS) $(MGA_SRC_DIR)/*~
1269N/A
1269N/Aclobber: clean
1269N/A rm -f $(BIN_DIR)/$(LIB_MGA_SO)$(VERS) $(BIN_DIR)/$(LIB_MGA_SO)
1269N/A
1269N/A
1269N/A# End of Makefile.mga