1# 2# Copyright 2005 Sun Microsystems, Inc. All rights reserved. 3# Use is subject to license terms. 4# 5# ident "%Z%%M% %I% %E% SMI" 6# 7# uts/sun4u/seattle/platmod/Makefile 8# 9# This makefile drives the production of the sun4u seattle platform module. 10# 11# sun4u implementation architecture dependent 12# 13 14# 15# Path to the base of the uts directory tree (usually /usr/src/uts). 16# 17UTSBASE = ../../.. 18 19# 20# Define the module and object file sets. 21# 22MODULE = platmod 23OBJECTS = $(SEATTLE_OBJS:%=$(OBJS_DIR)/%) 24LINTS = $(SEATTLE_OBJS:%.o=$(LINTS_DIR)/%.ln) 25ROOTMODULE = $(ROOT_SEATTLE_MISC_DIR)/$(MODULE) 26 27PLAT_DIR = . 28HERE = ../seattle/platmod 29 30# 31# Include common rules. 32# 33include $(UTSBASE)/sun4u/seattle/Makefile.seattle 34 35# 36# Override defaults 37# 38CLEANFILES += $(PLATLIB) $(SYM_MOD) 39 40# 41# Define targets 42# 43ALL_TARGET = $(SYM_MOD) 44LINT_TARGET = $(MODULE).lint 45INSTALL_TARGET = $(BINARY) $(ROOTMODULE) 46 47# 48# lint pass one enforcement 49# 50CFLAGS += $(CCVERBOSE) 51 52# 53# Default build targets. 54# 55.KEEP_STATE: 56 57def: $(DEF_DEPS) 58 59all: $(ALL_DEPS) 60 61clean: $(CLEAN_DEPS) 62 63clobber: $(CLOBBER_DEPS) 64 65lint: $(LINT_DEPS) 66 67modlintlib: $(MODLINTLIB_DEPS) 68 69clean.lint: $(CLEAN_LINT_DEPS) 70 71install: $(INSTALL_DEPS) 72 73check: 74 75LINT_LIB_DIR = $(SEATTLE_LINT_LIB_DIR) 76 77$(PLATLIB): $(BINARY) 78 $(BUILD.SO) $(BINARY) 79 80$(SYM_MOD): $(UNIX_O) $(PLATLIB) 81 @echo "resolving symbols against unix.o" 82 @(cd $(UNIX_DIR); pwd; \ 83 PLAT_DIR=$(HERE) SYM_MOD=$(HERE)/$(SYM_MOD) $(MAKE) symcheck) 84 85# 86# Include common targets. 87# 88include $(UTSBASE)/sun4u/seattle/Makefile.targ 89