Makefile revision 6a3e8e8695d5c7d1d18c6800d676990d7f61a2a4
a78048ccbdb6256da15e6b0e7e95355e480c2301nd#
a78048ccbdb6256da15e6b0e7e95355e480c2301nd# CDDL HEADER START
a78048ccbdb6256da15e6b0e7e95355e480c2301nd#
a78048ccbdb6256da15e6b0e7e95355e480c2301nd# The contents of this file are subject to the terms of the
a78048ccbdb6256da15e6b0e7e95355e480c2301nd# Common Development and Distribution License, Version 1.0 only
a78048ccbdb6256da15e6b0e7e95355e480c2301nd# (the "License"). You may not use this file except in compliance
a78048ccbdb6256da15e6b0e7e95355e480c2301nd# with the License.
a78048ccbdb6256da15e6b0e7e95355e480c2301nd#
a78048ccbdb6256da15e6b0e7e95355e480c2301nd# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
a78048ccbdb6256da15e6b0e7e95355e480c2301nd# or http://www.opensolaris.org/os/licensing.
d29d9ab4614ff992b0e8de6e2b88d52b6f1f153erbowen# See the License for the specific language governing permissions
d29d9ab4614ff992b0e8de6e2b88d52b6f1f153erbowen# and limitations under the License.
d29d9ab4614ff992b0e8de6e2b88d52b6f1f153erbowen#
d29d9ab4614ff992b0e8de6e2b88d52b6f1f153erbowen# When distributing Covered Code, include this CDDL HEADER in each
a78048ccbdb6256da15e6b0e7e95355e480c2301nd# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
a78048ccbdb6256da15e6b0e7e95355e480c2301nd# If applicable, add the following below this CDDL HEADER, with the
d229f940abfb2490dee17979e9a5ff31b7012eb5rbowen# fields enclosed by brackets "[]" replaced with your own identifying
3f08db06526d6901aa08c110b5bc7dde6bc39905nd# information: Portions Copyright [yyyy] [name of copyright owner]
a78048ccbdb6256da15e6b0e7e95355e480c2301nd#
a78048ccbdb6256da15e6b0e7e95355e480c2301nd# CDDL HEADER END
a78048ccbdb6256da15e6b0e7e95355e480c2301nd#
3f08db06526d6901aa08c110b5bc7dde6bc39905nd#
a78048ccbdb6256da15e6b0e7e95355e480c2301nd# Copyright 2005 Sun Microsystems, Inc. All rights reserved.
a78048ccbdb6256da15e6b0e7e95355e480c2301nd# Use is subject to license terms.
e609c337f729875bc20e01096c7e610f45356f54nilgun#
f086b4b402fa9a2fefc7dda85de2a3cc1cd0a654rjung# psm/stand/bootblks/ufs/i386/Makefile
a78048ccbdb6256da15e6b0e7e95355e480c2301nd#
4b575a6b6704b516f22d65a3ad35696d7b9ba372rpluem.KEEP_STATE:
4b575a6b6704b516f22d65a3ad35696d7b9ba372rpluem
a78048ccbdb6256da15e6b0e7e95355e480c2301ndBASEDIR = ../..
a78048ccbdb6256da15e6b0e7e95355e480c2301nd
a78048ccbdb6256da15e6b0e7e95355e480c2301ndinclude $(BASEDIR)/ufs/Makefile.ufs
a78048ccbdb6256da15e6b0e7e95355e480c2301nd
a78048ccbdb6256da15e6b0e7e95355e480c2301nd
a78048ccbdb6256da15e6b0e7e95355e480c2301ndCC = $(GCC_ROOT)/bin/gcc
a78048ccbdb6256da15e6b0e7e95355e480c2301ndASFLAGS = -B$(GCC_ROOT)/bin/ -fno-builtin -nostdinc
a78048ccbdb6256da15e6b0e7e95355e480c2301ndCPPFLAGS =
a78048ccbdb6256da15e6b0e7e95355e480c2301nd
30471a4650391f57975f60bbb6e4a90be7b284bfhumbedoohLD = $(GNU_ROOT)/bin/gld
a78048ccbdb6256da15e6b0e7e95355e480c2301ndLDFLAGS = -nostdlib -N -Ttext 600
a78048ccbdb6256da15e6b0e7e95355e480c2301nd
a78048ccbdb6256da15e6b0e7e95355e480c2301ndOBJCOPY = $(GNU_ROOT)/bin/gobjcopy
a78048ccbdb6256da15e6b0e7e95355e480c2301nd
a78048ccbdb6256da15e6b0e7e95355e480c2301ndINSTALL_DIR = $(USR)/lib/fs/ufs
a78048ccbdb6256da15e6b0e7e95355e480c2301ndINSTALL_TARGETS = $(PROGS:%=$(INSTALL_DIR)/%)
a78048ccbdb6256da15e6b0e7e95355e480c2301nd
a78048ccbdb6256da15e6b0e7e95355e480c2301nd$(INSTALL_TARGETS) := FILEMODE = 0444
a78048ccbdb6256da15e6b0e7e95355e480c2301nd
a78048ccbdb6256da15e6b0e7e95355e480c2301ndPROGS = mboot
a78048ccbdb6256da15e6b0e7e95355e480c2301nd
a78048ccbdb6256da15e6b0e7e95355e480c2301nd
a78048ccbdb6256da15e6b0e7e95355e480c2301ndall: $(INSTALLBOOT) $(PROGS)
a78048ccbdb6256da15e6b0e7e95355e480c2301nd
a78048ccbdb6256da15e6b0e7e95355e480c2301nd$(PROGS): $$(@).exec
a78048ccbdb6256da15e6b0e7e95355e480c2301nd $(OBJCOPY) -O binary $@.exec $@
a78048ccbdb6256da15e6b0e7e95355e480c2301nd
a78048ccbdb6256da15e6b0e7e95355e480c2301nd%.exec: %.o
a78048ccbdb6256da15e6b0e7e95355e480c2301nd $(LD) $(LDFLAGS) -o $@ $(@:exec=o)
a78048ccbdb6256da15e6b0e7e95355e480c2301nd
a78048ccbdb6256da15e6b0e7e95355e480c2301nd
a78048ccbdb6256da15e6b0e7e95355e480c2301ndinstall: all $(INSTALL_TARGETS) $(USR_SBIN_INSTALLBOOT)
a78048ccbdb6256da15e6b0e7e95355e480c2301nd
a78048ccbdb6256da15e6b0e7e95355e480c2301nd$(INSTALL_DIR)/%: $(INSTALL_DIR) %
a78048ccbdb6256da15e6b0e7e95355e480c2301nd $(INS.file)
a78048ccbdb6256da15e6b0e7e95355e480c2301nd
a78048ccbdb6256da15e6b0e7e95355e480c2301nd$(INSTALL_DIR):
a78048ccbdb6256da15e6b0e7e95355e480c2301nd $(INS.dir)
a78048ccbdb6256da15e6b0e7e95355e480c2301nd
a78048ccbdb6256da15e6b0e7e95355e480c2301ndlint:
a78048ccbdb6256da15e6b0e7e95355e480c2301nd
a78048ccbdb6256da15e6b0e7e95355e480c2301ndclean:
a78048ccbdb6256da15e6b0e7e95355e480c2301nd $(RM) *.exec *.o
a78048ccbdb6256da15e6b0e7e95355e480c2301nd
a78048ccbdb6256da15e6b0e7e95355e480c2301ndclobber: clean
a78048ccbdb6256da15e6b0e7e95355e480c2301nd $(RM) $(PROGS) $(INSTALLBOOT)
a78048ccbdb6256da15e6b0e7e95355e480c2301nd
a78048ccbdb6256da15e6b0e7e95355e480c2301nd
a78048ccbdb6256da15e6b0e7e95355e480c2301nd#
a78048ccbdb6256da15e6b0e7e95355e480c2301nd# Pattern matching rules for source in this directory
a78048ccbdb6256da15e6b0e7e95355e480c2301nd#
a78048ccbdb6256da15e6b0e7e95355e480c2301nd%: %.sh
a78048ccbdb6256da15e6b0e7e95355e480c2301nd $(RM) $@
a78048ccbdb6256da15e6b0e7e95355e480c2301nd cat $< > $@
a78048ccbdb6256da15e6b0e7e95355e480c2301nd chmod +x $@
a78048ccbdb6256da15e6b0e7e95355e480c2301nd