1*76ca3cb0SRobert Mustacchi# 2*76ca3cb0SRobert Mustacchi# This file and its contents are supplied under the terms of the 3*76ca3cb0SRobert Mustacchi# Common Development and Distribution License ("CDDL"), version 1.0. 4*76ca3cb0SRobert Mustacchi# You may only use this file in accordance with the terms of version 5*76ca3cb0SRobert Mustacchi# 1.0 of the CDDL. 6*76ca3cb0SRobert Mustacchi# 7*76ca3cb0SRobert Mustacchi# A full copy of the text of the CDDL should have accompanied this 8*76ca3cb0SRobert Mustacchi# source. A copy of the CDDL is also available via the Internet at 9*76ca3cb0SRobert Mustacchi# http://www.illumos.org/license/CDDL. 10*76ca3cb0SRobert Mustacchi# 11*76ca3cb0SRobert Mustacchi 12*76ca3cb0SRobert Mustacchi# 13*76ca3cb0SRobert Mustacchi# Copyright (c) 2014 Joyent, Inc. All rights reserved. 14*76ca3cb0SRobert Mustacchi# 15*76ca3cb0SRobert Mustacchi 16*76ca3cb0SRobert Mustacchi# 17*76ca3cb0SRobert Mustacchi# This makefile drives the production of the bootfs file system 18*76ca3cb0SRobert Mustacchi# kernel module. 19*76ca3cb0SRobert Mustacchi# 20*76ca3cb0SRobert Mustacchi# sparc architecture dependent 21*76ca3cb0SRobert Mustacchi# 22*76ca3cb0SRobert Mustacchi 23*76ca3cb0SRobert Mustacchi# 24*76ca3cb0SRobert Mustacchi# Path to the base of the uts directory tree (usually /usr/src/uts). 25*76ca3cb0SRobert Mustacchi# 26*76ca3cb0SRobert MustacchiUTSBASE = ../.. 27*76ca3cb0SRobert Mustacchi 28*76ca3cb0SRobert Mustacchi# 29*76ca3cb0SRobert Mustacchi# Define the module and object file sets. 30*76ca3cb0SRobert Mustacchi# 31*76ca3cb0SRobert MustacchiMODULE = bootfs 32*76ca3cb0SRobert MustacchiOBJECTS = $(BOOTFS_OBJS:%=$(OBJS_DIR)/%) 33*76ca3cb0SRobert MustacchiLINTS = $(BOOTFS_OBJS:%.o=$(LINTS_DIR)/%.ln) 34*76ca3cb0SRobert MustacchiROOTMODULE = $(ROOT_FS_DIR)/$(MODULE) 35*76ca3cb0SRobert Mustacchi 36*76ca3cb0SRobert Mustacchi# 37*76ca3cb0SRobert Mustacchi# Include common rules. 38*76ca3cb0SRobert Mustacchi# 39*76ca3cb0SRobert Mustacchiinclude $(UTSBASE)/sparc/Makefile.sparc 40*76ca3cb0SRobert Mustacchi 41*76ca3cb0SRobert Mustacchi# 42*76ca3cb0SRobert Mustacchi# Define targets 43*76ca3cb0SRobert Mustacchi# 44*76ca3cb0SRobert MustacchiALL_TARGET = $(BINARY) 45*76ca3cb0SRobert MustacchiLINT_TARGET = $(MODULE).lint 46*76ca3cb0SRobert MustacchiINSTALL_TARGET = $(BINARY) $(ROOTMODULE) 47*76ca3cb0SRobert Mustacchi 48*76ca3cb0SRobert Mustacchi# 49*76ca3cb0SRobert Mustacchi# Default build targets. 50*76ca3cb0SRobert Mustacchi# 51*76ca3cb0SRobert Mustacchi.KEEP_STATE: 52*76ca3cb0SRobert Mustacchi 53*76ca3cb0SRobert Mustacchidef: $(DEF_DEPS) 54*76ca3cb0SRobert Mustacchi 55*76ca3cb0SRobert Mustacchiall: $(ALL_DEPS) 56*76ca3cb0SRobert Mustacchi 57*76ca3cb0SRobert Mustacchiclean: $(CLEAN_DEPS) 58*76ca3cb0SRobert Mustacchi 59*76ca3cb0SRobert Mustacchiclobber: $(CLOBBER_DEPS) 60*76ca3cb0SRobert Mustacchi 61*76ca3cb0SRobert Mustacchilint: $(LINT_DEPS) 62*76ca3cb0SRobert Mustacchi 63*76ca3cb0SRobert Mustacchimodlintlib: $(MODLINTLIB_DEPS) 64*76ca3cb0SRobert Mustacchi 65*76ca3cb0SRobert Mustacchiclean.lint: $(CLEAN_LINT_DEPS) 66*76ca3cb0SRobert Mustacchi 67*76ca3cb0SRobert Mustacchiinstall: $(INSTALL_DEPS) 68*76ca3cb0SRobert Mustacchi 69*76ca3cb0SRobert Mustacchi# 70*76ca3cb0SRobert Mustacchi# Include common targets. 71*76ca3cb0SRobert Mustacchi# 72*76ca3cb0SRobert Mustacchiinclude $(UTSBASE)/sparc/Makefile.targ 73