installboot: remove installboot script from i386 platform
[unleashed.git] / usr / src / cmd / boot / installboot / Makefile
blobe2fcf37f8408f31763db498a4453b0826e1d02b2
2 # CDDL HEADER START
4 # The contents of this file are subject to the terms of the
5 # Common Development and Distribution License (the "License").
6 # You may not use this file except in compliance with the License.
8 # You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
9 # or http://www.opensolaris.org/os/licensing.
10 # See the License for the specific language governing permissions
11 # and limitations under the License.
13 # When distributing Covered Code, include this CDDL HEADER in each
14 # file and include the License file at usr/src/OPENSOLARIS.LICENSE.
15 # If applicable, add the following below this CDDL HEADER, with the
16 # fields enclosed by brackets "[]" replaced with your own identifying
17 # information: Portions Copyright [yyyy] [name of copyright owner]
19 # CDDL HEADER END
21 # Copyright (c) 2010, Oracle and/or its affiliates. All rights reserved.
24 PROG= installboot
26 EINFO_SRC= ./../common/bblk_einfo.c
27 UTILS_SRC =./../common/boot_utils.c
28 EXTRA_SRC =./../common/mboot_extra.c
30 OBJS= installboot.o bblk_einfo.o boot_utils.o mboot_extra.o
31 SRCS= installboot.c $(UTILS_SRC) $(EINFO_SRC) $(EXTRA_SRC)
33 include ../Makefile.com
35 CPPFLAGS += -I$(SRC)/uts/common
37 LDLIBS += -lmd5
39 C99MODE= -xc99=%all
40 C99LMODE= -Xc99=%all
42 LINTFLAGS += -erroff=E_BAD_PTR_CAST_ALIGN
43 CERRWARN += -_gcc=-Wno-uninitialized
45 .KEEP_STATE:
47 all: $(PROG)
49 $(PROG): $(OBJS)
50 $(LINK.c) -o $@ $(OBJS) $(LDLIBS)
51 $(POST_PROCESS)
53 boot_utils.o: $(UTILS_SRC)
54 $(COMPILE.c) -o $@ $(UTILS_SRC)
56 mboot_extra.o: $(EXTRA_SRC)
57 $(COMPILE.c) -o $@ $(EXTRA_SRC)
59 bblk_einfo.o: $(EINFO_SRC)
60 $(COMPILE.c) -o $@ $(EINFO_SRC)
62 install: all $(ROOTUSRSBINPROG)
64 clean:
65 $(RM) $(OBJS)
67 lint: lint_SRCS
69 include ../Makefile.targ