Makefile revision 7014882c6a3672fd0e5d60200af8643ae53c5928
0N/A#
0N/A# CDDL HEADER START
0N/A#
0N/A# The contents of this file are subject to the terms of the
0N/A# Common Development and Distribution License (the "License").
0N/A# You may not use this file except in compliance with the License.
0N/A#
0N/A# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
0N/A# or http://www.opensolaris.org/os/licensing.
0N/A# See the License for the specific language governing permissions
0N/A# and limitations under the License.
0N/A#
0N/A# When distributing Covered Code, include this CDDL HEADER in each
0N/A# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
0N/A# If applicable, add the following below this CDDL HEADER, with the
0N/A# fields enclosed by brackets "[]" replaced with your own identifying
0N/A# information: Portions Copyright [yyyy] [name of copyright owner]
0N/A#
0N/A# CDDL HEADER END
0N/A#
0N/A#
0N/A# Copyright 2009 Sun Microsystems, Inc. All rights reserved.
0N/A# Use is subject to license terms.
0N/A#
0N/A
0N/APROG = ucodeadm
0N/A
0N/APROG_OBJS = ucodeadm.o ucode_errno.o
0N/ACOMMON_OBJS = ucode_utils.o
0N/AOBJS = $(PROG_OBJS) $(COMMON_OBJS)
0N/ACOMMON_SRCDIR = ../../common/ucode
2080N/AERROR_HEADER = $(COMMON_SRCDIR)/ucode_errno.h
0N/ASRCS = $(PROG_OBJS:%.o=%.c) $(COMMON_OBJS:%.o=$(COMMON_SRCDIR)/%.c)
0N/A
0N/Ainclude ../Makefile.cmd
0N/A
2080N/APOFILE = ucodeadm_all.po
0N/APOFILES = $(PROG_OBJS:%.o=%.po)
0N/A
0N/AINTEL_UCODE_FILE = intel-ucode.txt
0N/AAMD_UCODE_FILE = amd-ucode.bin
0N/A
803N/AROOTUCODEPATH = $(ROOT)/platform/i86pc/ucode
0N/AROOTINTELUCODE = $(INTEL_UCODE_FILE:%=$(ROOTUCODEPATH)/%)
0N/AROOTAMDUCODE = $(AMD_UCODE_FILE:%=$(ROOTUCODEPATH)/%)
0N/A
0N/ACPPFLAGS = -I../../common -I../../uts/common
0N/ACFLAGS += $(CCVERBOSE)
0N/ACERRWARN += -_gcc=-Wno-uninitialized
0N/ACERRWARN += -_gcc=-Wno-type-limits
0N/ALINTFLAGS += -errtags -erroff=E_NAME_DEF_NOT_USED2
0N/ALINTFLAGS += -erroff=E_INCONS_ARG_DECL2,E_INCONS_VAL_TYPE_DECL2
0N/ALDLIBS = -lgen
0N/A
0N/ADIRMODE = 0755
0N/AFILEMODE = 0555
0N/A
0N/A$(ROOTINTELUCODE) := FILEMODE = 0444
0N/A$(ROOTAMDUCODE) := FILEMODE = 0444
0N/A
0N/Ainstall := TARGET = install
0N/Aclobber := TARGET = clobber
0N/A
0N/ACLEANFILES += $(PROG) $(OBJS) ucode_errno.c $(POFILES) $(POFILE)
0N/A
0N/A.KEEP_STATE:
0N/A
0N/Aall: $(PROG)
0N/A
0N/Ainstall: all $(ROOTUSRSBINPROG) $(ROOTUCODEPATH) $(ROOTINTELUCODE) $(ROOTAMDUCODE)
0N/A
0N/A_msg: ucodeadm_all.po
0N/A
0N/A%.o: $(COMMON_SRCDIR)/%.c
0N/A $(COMPILE.c) -o $@ $<
0N/A $(POST_PROCESS_O)
0N/A
0N/A$(PROG): $(OBJS) ucode_errno.c
2080N/A $(LINK.c) -o $(PROG) $(OBJS) $(LDLIBS)
2080N/A $(POST_PROCESS)
$(ROOTUCODEPATH):
$(INS.dir)
$(ROOTUCODEPATH)/%: %
$(INS.file)
clean:
-$(RM) $(CLEANFILES)
lint: lint_SRCS
include ../Makefile.targ
ucode_errno.c: $(COMMON_SRCDIR)/mkerrno.sh $(ERROR_HEADER)
sh $(COMMON_SRCDIR)/mkerrno.sh $(ERROR_HEADER) > $@
ucode_errno.po := XGETFLAGS += -a
$(POFILE): $(POFILES)
$(RM) $@
$(CAT) $(POFILES) > $@
FRC: