Makefile revision bb25c06cca41ca78e5fb87fbb8e81d55beb18c95
1008N/A#
1008N/A# CDDL HEADER START
1008N/A#
1008N/A# The contents of this file are subject to the terms of the
1008N/A# Common Development and Distribution License (the "License").
1008N/A# You may not use this file except in compliance with the License.
1008N/A#
1008N/A# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
6983N/A# or http://www.opensolaris.org/os/licensing.
6983N/A# See the License for the specific language governing permissions
1008N/A# and limitations under the License.
1008N/A#
1008N/A# When distributing Covered Code, include this CDDL HEADER in each
1008N/A# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
6983N/A# If applicable, add the following below this CDDL HEADER, with the
6983N/A# fields enclosed by brackets "[]" replaced with your own identifying
6983N/A# information: Portions Copyright [yyyy] [name of copyright owner]
6983N/A#
1008N/A# CDDL HEADER END
1008N/A#
1008N/A#
1008N/A# uts/sparc/elfexec/Makefile
1008N/A# Copyright 2006 Sun Microsystems, Inc. All rights reserved.
4129N/A# Use is subject to license terms.
1008N/A#
1008N/A#ident "%Z%%M% %I% %E% SMI"
1008N/A#
1008N/A# This makefile drives the production of the elfexec exec kernel
1008N/A# module.
1008N/A#
4129N/A# sparc architecture dependent
2358N/A#
2358N/A
2358N/A#
2358N/A# Path to the base of the uts directory tree (usually /usr/src/uts).
2358N/A#
2358N/AUTSBASE = ../..
2358N/A
2358N/A#
2358N/A# Define the module and object file sets.
2358N/A#
2358N/AMODULE = elfexec
2358N/AELFEXEC_OBJS_32 =
4129N/AELFEXEC_OBJS_64 = elf32.o elf32_notes.o old32_notes.o
2358N/AELFEXEC_OBJS += $(ELFEXEC_OBJS_$(CLASS))
1008N/AOBJECTS = $(ELFEXEC_OBJS:%=$(OBJS_DIR)/%)
1008N/ALINTS = $(ELFEXEC_OBJS:%.o=$(LINTS_DIR)/%.ln)
1008N/AROOTMODULE = $(ROOT_EXEC_DIR)/$(MODULE)
1008N/A
1008N/A#
2333N/A# Include common rules.
1008N/A#
1008N/Ainclude $(UTSBASE)/sparc/Makefile.sparc
1008N/A
1008N/A#
1435N/A# Define targets
1435N/A#
1435N/AALL_TARGET = $(BINARY)
1435N/ALINT_TARGET = $(MODULE).lint
1435N/AINSTALL_TARGET = $(BINARY) $(ROOTMODULE)
1435N/A
1435N/A#
1435N/A# Overrides.
1435N/A#
2358N/ACFLAGS += $(CCVERBOSE)
2358N/A
2358N/A#
2358N/A# For now, disable these lint checks; maintainers should endeavor
2358N/A# to investigate and remove these for maximum lint coverage.
2358N/A# Please do not carry these forward to new Makefiles.
2358N/A#
2358N/ALINTTAGS += -erroff=E_BAD_PTR_CAST_ALIGN
2358N/ALINTTAGS += -erroff=E_PTRDIFF_OVERFLOW
2358N/ALINTTAGS += -erroff=E_ASSIGN_NARROW_CONV
2358N/A
2358N/A#
2358N/A# Default build targets.
2358N/A#
2358N/A.KEEP_STATE:
2358N/A
2358N/Adef: $(DEF_DEPS)
2358N/A
2358N/Aall: $(ALL_DEPS)
2358N/A
2358N/Aclean: $(CLEAN_DEPS)
2358N/A
2358N/Aclobber: $(CLOBBER_DEPS)
2358N/A
2358N/Alint: $(LINT_DEPS)
2358N/A
2358N/Amodlintlib: $(MODLINTLIB_DEPS)
2358N/A
2358N/Aclean.lint: $(CLEAN_LINT_DEPS)
2358N/A
2358N/Ainstall: $(INSTALL_DEPS)
2358N/A
2358N/A#
2358N/A# Include common targets.
2358N/A#
2358N/Ainclude $(UTSBASE)/sparc/Makefile.targ
2358N/A
2358N/A.NO_PARALLEL: $(LINTS)
2358N/A
2358N/A$(OBJS_DIR)/elf32.o: $(UTSBASE)/common/exec/elf/elf.c
2358N/A $(COMPILE.c) -o $@ -D_ELF32_COMPAT $(UTSBASE)/common/exec/elf/elf.c
2358N/A $(CTFCONVERT_O)
2358N/A
2358N/A$(OBJS_DIR)/elf32_notes.o: $(UTSBASE)/common/exec/elf/elf_notes.c
2358N/A $(COMPILE.c) -o $@ -D_ELF32_COMPAT $(UTSBASE)/common/exec/elf/elf_notes.c
2358N/A $(CTFCONVERT_O)
2358N/A
2358N/A$(OBJS_DIR)/old32_notes.o: $(UTSBASE)/common/exec/elf/old_notes.c
2358N/A $(COMPILE.c) -o $@ -D_ELF32_COMPAT $(UTSBASE)/common/exec/elf/old_notes.c
2358N/A $(CTFCONVERT_O)
2358N/A
2358N/A$(LINTS_DIR)/elf32.ln: $(UTSBASE)/common/exec/elf/elf.c
2358N/A @($(LHEAD) $(LINT.c) -Celf32 -D_ELF32_COMPAT $(UTSBASE)/common/exec/elf/elf.c $(LTAIL))
2358N/A @$(MV) $(@F) $@
2358N/A
2358N/A$(LINTS_DIR)/elf32_notes.ln: $(UTSBASE)/common/exec/elf/elf_notes.c
2358N/A @($(LHEAD) $(LINT.c) -Celf32_notes -D_ELF32_COMPAT $(UTSBASE)/common/exec/elf/elf_notes.c $(LTAIL))
2358N/A @$(MV) $(@F) $@
2358N/A
2358N/A$(LINTS_DIR)/old32_notes.ln: $(UTSBASE)/common/exec/elf/old_notes.c
2358N/A @($(LHEAD) $(LINT.c) -Cold32_notes -D_ELF32_COMPAT $(UTSBASE)/common/exec/elf/old_notes.c $(LTAIL))
2358N/A @$(MV) $(@F) $@
2358N/A