Makefile revision 24fe0b3bf671e123467ce1df0b67cadd3614c8e4
b886b04d8d2b085cbf3e1bf4442dee87f43ba5e4Tinderbox User#
6fe48fb46e53ffc37542853a1edb74cb481b7d94Automatic Updater# CDDL HEADER START
7a2a1b8b14fc804ac80612d7b98064095e445be5Automatic Updater#
7a42357217528037bdfedcb17eeebfe96ae4266aAutomatic Updater# The contents of this file are subject to the terms of the
1167fc7904c5f0a472f8df207ac46dd52c7f1ec8Automatic Updater# Common Development and Distribution License (the "License").
0c39b3ed9409ecb277d5e32fa763a4e4d6598df8Automatic Updater# You may not use this file except in compliance with the License.
46da3117812814a29432a8d9a9ccf8acdbfdadceAutomatic Updater#
6fe48fb46e53ffc37542853a1edb74cb481b7d94Automatic Updater# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
fe84edc17e0d582cf7b4270f8df9d4742a107b1cAutomatic Updater# or http://www.opensolaris.org/os/licensing.
79b273c187a4aa1016a62181983dfdd0521681aeMark Andrews# See the License for the specific language governing permissions
90ff38a0d8deaf5f9c2aa5916d99b2e572d28738Automatic Updater# and limitations under the License.
9e3a7b0faf417a10f5f689edf288807b2d5eedc5Brian Wellington#
6c6a121295b30772cbf3dd75a51fb9d883051a0eAutomatic Updater# When distributing Covered Code, include this CDDL HEADER in each
b886b04d8d2b085cbf3e1bf4442dee87f43ba5e4Tinderbox User# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
9cd5eb6fe0f26d65724b99216cb31dcdd12e4afdAutomatic Updater# If applicable, add the following below this CDDL HEADER, with the
bbde8dc56605130058a1540609264fa109da3b63Automatic Updater# fields enclosed by brackets "[]" replaced with your own identifying
bbde8dc56605130058a1540609264fa109da3b63Automatic Updater# information: Portions Copyright [yyyy] [name of copyright owner]
c651f15b30f1dae5cc2f00878fb5da5b3a35a468Mark Andrews#
e130ab53e992670e2a2ecf043976ac09f21358d1Automatic Updater# CDDL HEADER END
3cc98b8ecedcbc8465f1cf2740b966b315662430Automatic Updater#
c651f15b30f1dae5cc2f00878fb5da5b3a35a468Mark Andrews#
c651f15b30f1dae5cc2f00878fb5da5b3a35a468Mark Andrews# Copyright 2009 Sun Microsystems, Inc. All rights reserved.
bbde8dc56605130058a1540609264fa109da3b63Automatic Updater# Use is subject to license terms.
bbde8dc56605130058a1540609264fa109da3b63Automatic Updater#
c651f15b30f1dae5cc2f00878fb5da5b3a35a468Mark Andrews
f2770f6b39a9b2a98afb7a11ed105f73f1570c1eAutomatic UpdaterPROG= format
efb0e886f18894a1d2489f1ad74ad14b579e11c7Mark Andrews
f2770f6b39a9b2a98afb7a11ed105f73f1570c1eAutomatic UpdaterCOBJS= add_definition.o analyze.o checkdev.o ctlr_scsi.o \
91216cff91b34c9ff6e846dc23f248219cafe660Andreas Gustafsson defect.o init_menus.o io.o label.o main.o \
f2770f6b39a9b2a98afb7a11ed105f73f1570c1eAutomatic Updater menu.o menu_analyze.o menu_cache.o menu_command.o menu_defect.o \
f2770f6b39a9b2a98afb7a11ed105f73f1570c1eAutomatic Updater menu_partition.o misc.o modify_partition.o partition.o \
91216cff91b34c9ff6e846dc23f248219cafe660Andreas Gustafsson prompts.o startup.o menu_scsi.o auto_sense.o disk_generic.o \
f2770f6b39a9b2a98afb7a11ed105f73f1570c1eAutomatic Updater menu_developer.o menu_fdisk.o
b886b04d8d2b085cbf3e1bf4442dee87f43ba5e4Tinderbox User
9513a2a6670951f5cf5477fcfec9f933fcaff628Automatic UpdaterOBJS_sparc= init_csparc.o ctlr_ata.o
aa9c561961e9d877946ebaa8795fa2be054ab7bfEvan Hunt
e130ab53e992670e2a2ecf043976ac09f21358d1Automatic UpdaterOBJS_i386= init_ci386.o ctlr_ata.o ix_altsctr.o
9513a2a6670951f5cf5477fcfec9f933fcaff628Automatic Updater
aa9c561961e9d877946ebaa8795fa2be054ab7bfEvan HuntOBJS_= non-existent
9513a2a6670951f5cf5477fcfec9f933fcaff628Automatic Updater
9513a2a6670951f5cf5477fcfec9f933fcaff628Automatic UpdaterOBJS= $(OBJS_$(MACH)) $(COBJS)
9513a2a6670951f5cf5477fcfec9f933fcaff628Automatic Updater
aa9c561961e9d877946ebaa8795fa2be054ab7bfEvan HuntDATA= format.dat
e130ab53e992670e2a2ecf043976ac09f21358d1Automatic Updater
2d2dc37599979c83495510f8af8d1756753aa2c5Automatic Updaterinclude ../Makefile.cmd
aa9c561961e9d877946ebaa8795fa2be054ab7bfEvan Hunt
9513a2a6670951f5cf5477fcfec9f933fcaff628Automatic UpdaterSRCS= $(OBJS:.o=.c)
9513a2a6670951f5cf5477fcfec9f933fcaff628Automatic Updater
9513a2a6670951f5cf5477fcfec9f933fcaff628Automatic UpdaterROOTSYMLINK= $(ROOTETCPROG)
9513a2a6670951f5cf5477fcfec9f933fcaff628Automatic UpdaterROOTETCDATA= $(ROOTETC)/$(DATA)
cdfc81e048bd34c1d628380247bda6b80a89e20eAutomatic Updater
cdfc81e048bd34c1d628380247bda6b80a89e20eAutomatic Updater$(ROOTETCDATA) := FILEMODE = 0644
9513a2a6670951f5cf5477fcfec9f933fcaff628Automatic Updater
9513a2a6670951f5cf5477fcfec9f933fcaff628Automatic UpdaterLDLIBS_i386= -lfdisk
9513a2a6670951f5cf5477fcfec9f933fcaff628Automatic UpdaterLDLIBS_sparc=
9513a2a6670951f5cf5477fcfec9f933fcaff628Automatic UpdaterLDLIBS += -ladm -lefi -ldiskmgt -lnvpair -ldevid $(LDLIBS_$(MACH))
eabc9c3c07cd956d3c436bd7614cb162dabdda76Mark Andrews
eabc9c3c07cd956d3c436bd7614cb162dabdda76Mark AndrewsLINTFLAGS += -xerroff=E_NAME_DEF_NOT_USED2
eabc9c3c07cd956d3c436bd7614cb162dabdda76Mark AndrewsCPPFLAGS += -D_EXTVTOC
b886b04d8d2b085cbf3e1bf4442dee87f43ba5e4Tinderbox User
9cd5eb6fe0f26d65724b99216cb31dcdd12e4afdAutomatic Updater.KEEP_STATE:
c651f15b30f1dae5cc2f00878fb5da5b3a35a468Mark Andrews
6fe48fb46e53ffc37542853a1edb74cb481b7d94Automatic Updaterall: $(PROG) $(DATA)
8e9f3b69914ee02a80b87c97b1f8093edb3e9ae0Automatic Updater
c651f15b30f1dae5cc2f00878fb5da5b3a35a468Mark Andrews.PARALLEL: $(OBJS)
930f6069e5aa157cf6987cdafd412f5757a5a558Automatic Updater
c651f15b30f1dae5cc2f00878fb5da5b3a35a468Mark Andrews$(PROG): $(OBJS)
930f6069e5aa157cf6987cdafd412f5757a5a558Automatic Updater $(LINK.c) -o $(PROG) $(OBJS) $(LDLIBS)
80faf1588895fd26490f82f95a7a1b771df1c324Automatic Updater $(POST_PROCESS)
c651f15b30f1dae5cc2f00878fb5da5b3a35a468Mark Andrews
6fe48fb46e53ffc37542853a1edb74cb481b7d94Automatic Updater#
c651f15b30f1dae5cc2f00878fb5da5b3a35a468Mark Andrews# Install format as /usr/sbin/format, with link from /etc/format
930f6069e5aa157cf6987cdafd412f5757a5a558Automatic Updater#
693c4232dfdffaff672197d4b9fea944c64cf80aAutomatic Updaterinstall: $(ROOTUSRSBINPROG) $(ROOTSYMLINK) $(ROOTETCDATA)
c651f15b30f1dae5cc2f00878fb5da5b3a35a468Mark Andrews
f2770f6b39a9b2a98afb7a11ed105f73f1570c1eAutomatic Updater$(ROOTSYMLINK):
91216cff91b34c9ff6e846dc23f248219cafe660Andreas Gustafsson $(RM) $@; $(SYMLINK) ../usr/sbin/$(PROG) $@
f2770f6b39a9b2a98afb7a11ed105f73f1570c1eAutomatic Updater
f2770f6b39a9b2a98afb7a11ed105f73f1570c1eAutomatic Updaterclean:
efb0e886f18894a1d2489f1ad74ad14b579e11c7Mark Andrews $(RM) $(OBJS)
f2770f6b39a9b2a98afb7a11ed105f73f1570c1eAutomatic Updater
91216cff91b34c9ff6e846dc23f248219cafe660Andreas Gustafssonlint: lint_SRCS
f2770f6b39a9b2a98afb7a11ed105f73f1570c1eAutomatic Updater
f2770f6b39a9b2a98afb7a11ed105f73f1570c1eAutomatic Updatersb: $(SRCS)
91216cff91b34c9ff6e846dc23f248219cafe660Andreas Gustafsson $(COMPILE.c) -xsbfast $(SRCS)
f2770f6b39a9b2a98afb7a11ed105f73f1570c1eAutomatic Updater
b886b04d8d2b085cbf3e1bf4442dee87f43ba5e4Tinderbox Userinclude ../Makefile.targ
dd65eb1efb40b1c47d57963192bfc54873b219beAutomatic Updater