18b30338255fca86400af3e261e79fc89f2f5ef6~suv# Makefile for libxf86config.a
18b30338255fca86400af3e261e79fc89f2f5ef6~suv# Copyright (c) 2008, Oracle and/or its affiliates. All rights reserved.
18b30338255fca86400af3e261e79fc89f2f5ef6~suv# Permission is hereby granted, free of charge, to any person obtaining a
18b30338255fca86400af3e261e79fc89f2f5ef6~suv# copy of this software and associated documentation files (the "Software"),
18b30338255fca86400af3e261e79fc89f2f5ef6~suv# to deal in the Software without restriction, including without limitation
18b30338255fca86400af3e261e79fc89f2f5ef6~suv# the rights to use, copy, modify, merge, publish, distribute, sublicense,
18b30338255fca86400af3e261e79fc89f2f5ef6~suv# and/or sell copies of the Software, and to permit persons to whom the
18b30338255fca86400af3e261e79fc89f2f5ef6~suv# Software is furnished to do so, subject to the following conditions:
18b30338255fca86400af3e261e79fc89f2f5ef6~suv# The above copyright notice and this permission notice (including the next
18b30338255fca86400af3e261e79fc89f2f5ef6~suv# paragraph) shall be included in all copies or substantial portions of the
18b30338255fca86400af3e261e79fc89f2f5ef6~suv# Software.
18b30338255fca86400af3e261e79fc89f2f5ef6~suv# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
18b30338255fca86400af3e261e79fc89f2f5ef6~suv# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
18b30338255fca86400af3e261e79fc89f2f5ef6~suv# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL
18b30338255fca86400af3e261e79fc89f2f5ef6~suv# THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
18b30338255fca86400af3e261e79fc89f2f5ef6~suv# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
18b30338255fca86400af3e261e79fc89f2f5ef6~suv# FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
18b30338255fca86400af3e261e79fc89f2f5ef6~suv# DEALINGS IN THE SOFTWARE.
18b30338255fca86400af3e261e79fc89f2f5ef6~suvVPATH =$(FBC_SRC_DIR):$(XF86_SRC_DIR)
18b30338255fca86400af3e261e79fc89f2f5ef6~suv# Preprocessor flags
18b30338255fca86400af3e261e79fc89f2f5ef6~suvXF86_DEFINE= -DSMI_FBCONFIG \
18b30338255fca86400af3e261e79fc89f2f5ef6~suv -DHAS_SAVED_IDS_AND_SETEUID -DPROJROOT="/tmp/Xorg-KEM"
18b30338255fca86400af3e261e79fc89f2f5ef6~suvXF86_INC = -I$(XF86_SRC_DIR) -I$(FBC_SRC_DIR)
18b30338255fca86400af3e261e79fc89f2f5ef6~suv# Code modules
18b30338255fca86400af3e261e79fc89f2f5ef6~suvFBC_HDRS = \
18b30338255fca86400af3e261e79fc89f2f5ef6~suvXF86_HDRS = \
18b30338255fca86400af3e261e79fc89f2f5ef6~suvXF86_CSRCS = \
18b30338255fca86400af3e261e79fc89f2f5ef6~suvXF86_OBJ_FILES = $(XF86_CSRCS:.c=.o)
18b30338255fca86400af3e261e79fc89f2f5ef6~suvXF86_OBJS = $(XF86_OBJ_FILES:%=$(XF86_BIN_DIR)/%)
18b30338255fca86400af3e261e79fc89f2f5ef6~suvall: $(XF86_BIN_DIR) $(XF86_BIN_DIR)/$(LIB_XF86_A)
18b30338255fca86400af3e261e79fc89f2f5ef6~suv# Archive library build rule
18b30338255fca86400af3e261e79fc89f2f5ef6~suv$(XF86_BIN_DIR)/$(LIB_XF86_A): $(XF86_OBJS)
18b30338255fca86400af3e261e79fc89f2f5ef6~suv $(AR) -r $@ $^
18b30338255fca86400af3e261e79fc89f2f5ef6~suv# Component-specific compilation rule
18b30338255fca86400af3e261e79fc89f2f5ef6~suv$(XF86_BIN_DIR)/%.o: $(XF86_SRC_DIR)/%.c $(XF86_HDRS) $(FBC_HDRS)
18b30338255fca86400af3e261e79fc89f2f5ef6~suv $(CC) $(XF86_DEFINE) $(XF86_INC) $(CFLAGS) -c -o $@ $<
18b30338255fca86400af3e261e79fc89f2f5ef6~suv# Directories
18b30338255fca86400af3e261e79fc89f2f5ef6~suv$(XF86_BIN_DIR):
18b30338255fca86400af3e261e79fc89f2f5ef6~suv [ -d $@ ] || mkdir -p $@
18b30338255fca86400af3e261e79fc89f2f5ef6~suv -rm -f $(XF86_OBJS) $(XF86_SRC_DIR)/*~
18b30338255fca86400af3e261e79fc89f2f5ef6~suvclobber: clean
18b30338255fca86400af3e261e79fc89f2f5ef6~suv -rm -f $(XF86_BIN_DIR)/$(LIB_XF86_A)