1117N/A#
1117N/A# Makefile for libSUNWast_conf.so
1117N/A#
1117N/A
1117N/A#
1425N/A# Copyright (c) 2008, 2013, 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/A
1117N/Ainclude Makefile.common
1117N/A
1117N/AVPATH =$(FBC_SRC_DIR):$(AST_SRC_DIR)
1117N/A
1117N/A
1117N/A#
1117N/A# Preprocessor flags
1117N/A#
1117N/A
1117N/AAST_DEFINE = $DEFINE
1117N/A
1117N/A#AST_INC = -I$(COMMON)/include -I$(COMMON)/lib -I$(OPENWINHOME)/include
1117N/A
1117N/AAST_INC = -I$(FBC_SRC_DIR) -I$(XF86_SRC_DIR) -I$(AST_SRC_DIR)
1117N/AAST_INC += -I$(GFX_COMMON)/include
1117N/A# AST_INC += -I../../staging/ast/common/include -I../../common/lib
1117N/A
1117N/A
1117N/A#
1117N/A# Linker flags
1117N/A#
1117N/A
1425N/ALIBS = $(L_FBC)
1117N/A
1117N/A
1117N/A#
1117N/A# Code modules
1117N/A#
1117N/A
1117N/AFBC_HDRS = \
1117N/A fbc.h \
1117N/A fbc_dev.h \
1117N/A fbc_properties.h \
1117N/A fbc_getargs.h \
1117N/A fbc_keywds.h \
1117N/A fbc_help.h \
1117N/A fbc_open_device.h \
1117N/A fbc_gamma_table.h \
1117N/A fbc_line_er.h \
1117N/A fbc_xorg.h \
1117N/A fbc_edit_config.h \
1117N/A fbc_Device.h \
1117N/A fbc_Screen.h \
1117N/A fbc_Monitor.h \
1117N/A fbc_Option.h \
1117N/A fbc_fields.h \
1117N/A fbc_open_master.h \
1117N/A fbc_prconf.h \
1117N/A fbc_predid.h \
1117N/A fbc_propt.h \
1117N/A fbc_res.h \
1117N/A sun_edid.h \
1117N/A fbc_mode_list.h \
1117N/A fbc_ask.h \
1117N/A fbc_error.h
1117N/A
1117N/AAST_HDRS = \
1117N/A ast_properties.h \
1117N/A ast_query_device.h \
1117N/A ast_res_try_now.h \
1117N/A ast_prconf.h \
1117N/A ast_predid.h
1117N/A
1117N/AAST_CSRCS = \
1117N/A ast_properties.c \
1117N/A ast_query_device.c \
1117N/A ast_res_try_now.c \
1117N/A ast_prconf.c \
1117N/A ast_predid.c
1117N/A
1117N/AAST_OBJ_FILES = $(AST_CSRCS:.c=.o)
1117N/AAST_OBJS = $(AST_OBJ_FILES:%=$(AST_BIN_DIR)/%)
1117N/A
1117N/A
1117N/Aall: $(AST_BIN_DIR) $(BIN_DIR)/$(LIB_AST_SO)$(VERS)
1117N/A
1117N/A
1117N/A# Library build rules
1117N/A
1117N/A$(BIN_DIR)/$(LIB_AST_SO)$(VERS): $(AST_OBJS) $(BIN_DIR)/$(LIB_FBC_SO)$(VERS)
1117N/A rm -f $(BIN_DIR)/$(LIB_AST_SO)
1196N/A $(CC) $(LIB_LDFLAGS) $(AST_OBJS) $(LIBS) $(DYNLIBFLAGS) -o $@
1117N/A ln -s $@ $(BIN_DIR)/$(LIB_AST_SO)
1117N/A
1117N/A$(BIN_DIR)/$(LIB_FBC_SO)$(VERS):
1117N/A $(MAKE) -f Makefile.fbc all
1117N/A
1117N/A# Component-specific compilation rules
1117N/A
1117N/A$(AST_BIN_DIR)/%.o: $(AST_SRC_DIR)/%.c $(FBC_HDRS) $(AST_HDRS)
1117N/A $(CC) $(AST_INC) $(CFLAGS) -c -o $@ $<
1117N/A
1117N/A
1117N/A# Directories
1117N/A
1117N/A$(AST_BIN_DIR):
1117N/A [ -d $@ ] || mkdir -p $@
1117N/A
1117N/A
1136N/Ainstall: all $(INSTALL_LIB_DIR)/$(LIB_AST_SO) $(INSTALL_LIB_DIR)/$(LIB_AST_SO)$(VERS)
1117N/A
1117N/A$(INSTALL_LIB_DIR)/$(LIB_AST_SO)$(VERS): $(LIB_AST_SO)$(VERS)
1117N/A $(INSTALL) -m 0555 $? $@
1117N/A
1136N/A$(INSTALL_LIB_DIR)/$(LIB_AST_SO): $(LIB_AST_SO)$(VERS)
1136N/A -rm -f $@
1136N/A ln -s $(LIB_AST_SO)$(VERS) $@
1136N/A
1117N/Aclean:
1117N/A rm -f $(AST_OBJS) $(AST_SRC_DIR)/*~
1117N/A
1117N/Aclobber: clean
1117N/A rm -f $(BIN_DIR)/$(LIB_AST_SO)$(VERS) $(BIN_DIR)/$(LIB_AST_SO)
1117N/A
1117N/A
1117N/A# End of Makefile.ast