Makefile revision 580:70dfd36fd02c
1238405Sjkim# 255714Skris# CDDL HEADER START 355714Skris# 4238405Sjkim# The contents of this file are subject to the terms of the 5238405Sjkim# Common Development and Distribution License (the "License"). 6238405Sjkim# You may not use this file except in compliance with the License. 7238405Sjkim# 8238405Sjkim# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE 955714Skris# or http://www.opensolaris.org/os/licensing. 10238405Sjkim# See the License for the specific language governing permissions 11238405Sjkim# and limitations under the License. 1255714Skris# 13238405Sjkim# When distributing Covered Code, include this CDDL HEADER in each 14238405Sjkim# file and include the License file at usr/src/OPENSOLARIS.LICENSE. 15238405Sjkim# If applicable, add the following below this CDDL HEADER, with the 16238405Sjkim# fields enclosed by brackets "[]" replaced with your own identifying 17238405Sjkim# information: Portions Copyright [yyyy] [name of copyright owner] 18238405Sjkim# 1955714Skris# CDDL HEADER END 20238405Sjkim# 2155714Skris 22238405Sjkim# 23238405Sjkim# Copyright 2005 Sun Microsystems, Inc. All rights reserved. 24238405Sjkim# Use is subject to license terms. 25111147Snectar# 26238405Sjkim# ident "%Z%%M% %I% %E% SMI" 27238405Sjkim# 2855714Skris 29238405Sjkim# 30238405Sjkim# This makefile drives the production of the sun4u javelin platmod module 3155714Skris# 32238405Sjkim 33238405Sjkim# 34238405Sjkim# Path to the base of the uts directory tree (usually /usr/src/uts). 3555714Skris# 36238405SjkimUTSBASE = ../../.. 37238405Sjkim 38238405Sjkim# 39238405Sjkim# Define the module and object file sets. 40238405Sjkim# 41238405SjkimMODULE = platmod 42238405SjkimOBJECTS = $(JAVELIN_OBJS:%=$(OBJS_DIR)/%) 43238405SjkimLINTS = $(JAVELIN_OBJS:%.o=$(LINTS_DIR)/%.ln) 44238405SjkimROOTMODULE = $(ROOT_JAVELIN_MISC_DIR)/$(MODULE) 45238405Sjkim 46238405SjkimPLAT_DIR = . 47238405SjkimHERE = ../javelin/platmod 48238405Sjkim 4955714Skris# 50238405Sjkim# Include common rules. 51238405Sjkim# 52238405Sjkiminclude $(UTSBASE)/sun4u/javelin/Makefile.javelin 53238405Sjkim 54238405Sjkim# 55238405Sjkim# Override defaults 56238405Sjkim# 57238405SjkimCLEANFILES += $(PLATLIB) $(SYM_MOD) 58238405Sjkim 59238405Sjkim# 60238405Sjkim# Define targets 61238405Sjkim# 62238405SjkimALL_TARGET = $(SYM_MOD) 63238405SjkimLINT_TARGET = $(MODULE).lint 64238405SjkimINSTALL_TARGET = $(BINARY) $(ROOTMODULE) 65238405Sjkim 66238405Sjkim# 67238405Sjkim# lint pass one enforcement 68238405Sjkim# 69238405SjkimCFLAGS += $(CCVERBOSE) 70238405Sjkim 7155714Skris# 72238405Sjkim# Default build targets. 73238405Sjkim# 74238405Sjkim.KEEP_STATE: 7555714Skris 76238405Sjkimdef: $(DEF_DEPS) 77238405Sjkim 78238405Sjkimall: $(ALL_DEPS) 79238405Sjkim 80238405Sjkimclean: $(CLEAN_DEPS) 81238405Sjkim 8255714Skrisclobber: $(CLOBBER_DEPS) 83238405Sjkim 84238405Sjkimlint: $(LINT_DEPS) 85238405Sjkim 86238405Sjkimmodlintlib: $(MODLINTLIB_DEPS) 87238405Sjkim 88238405Sjkimclean.lint: $(CLEAN_LINT_DEPS) 89238405Sjkim 90238405Sjkiminstall: $(INSTALL_DEPS) 91238405Sjkim 92238405Sjkimcheck: 9355714Skris 94238405SjkimLINT_LIB_DIR =$(JAVELIN_LINT_LIB_DIR) 95238405Sjkim 96238405Sjkim$(PLATLIB): $(BINARY) 97238405Sjkim $(BUILD.SO) $(BINARY) 98238405Sjkim 99238405Sjkim$(SYM_MOD): $(UNIX_O) $(PLATLIB) 100238405Sjkim @echo "resolving symbols against unix.o" 10155714Skris @(cd $(UNIX_DIR); pwd; \ 102238405Sjkim PLAT_DIR=$(HERE) SYM_MOD=$(HERE)/$(SYM_MOD) $(MAKE) symcheck) 103238405Sjkim 104238405Sjkim# 105238405Sjkim# Include common targets. 106238405Sjkim# 107238405Sjkiminclude $(UTSBASE)/sun4u/javelin/Makefile.targ 108238405Sjkim