1d29b2c44Sab196087# 2d29b2c44Sab196087# CDDL HEADER START 3d29b2c44Sab196087# 4d29b2c44Sab196087# The contents of this file are subject to the terms of the 5d29b2c44Sab196087# Common Development and Distribution License (the "License"). 6d29b2c44Sab196087# You may not use this file except in compliance with the License. 7d29b2c44Sab196087# 8d29b2c44Sab196087# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE 9d29b2c44Sab196087# or http://www.opensolaris.org/os/licensing. 10d29b2c44Sab196087# See the License for the specific language governing permissions 11d29b2c44Sab196087# and limitations under the License. 12d29b2c44Sab196087# 13d29b2c44Sab196087# When distributing Covered Code, include this CDDL HEADER in each 14d29b2c44Sab196087# file and include the License file at usr/src/OPENSOLARIS.LICENSE. 15d29b2c44Sab196087# If applicable, add the following below this CDDL HEADER, with the 16d29b2c44Sab196087# fields enclosed by brackets "[]" replaced with your own identifying 17d29b2c44Sab196087# information: Portions Copyright [yyyy] [name of copyright owner] 18d29b2c44Sab196087# 19d29b2c44Sab196087# CDDL HEADER END 20d29b2c44Sab196087# 21d29b2c44Sab196087 22d29b2c44Sab196087# 23*4f680cc6SAli Bahrami# Copyright 2009 Sun Microsystems, Inc. All rights reserved. 24d29b2c44Sab196087# Use is subject to license terms. 25d29b2c44Sab196087# 26d29b2c44Sab196087 27d29b2c44Sab196087%.o: ../common/%.c 28d29b2c44Sab196087 $(COMPILE.c) -o $@ $< 29d29b2c44Sab196087 $(POST_PROCESS_O) 30d29b2c44Sab196087 31d29b2c44Sab196087%32.o: ../common/%.c 32d29b2c44Sab196087 $(COMPILE.c) -o $@ $< 33d29b2c44Sab196087 $(POST_PROCESS_O) 34d29b2c44Sab196087 35d29b2c44Sab196087%64.o: ../common/%.c 36d29b2c44Sab196087 $(COMPILE.c) -D_ELF64 -o $@ $< 37d29b2c44Sab196087 $(POST_PROCESS_O) 38d29b2c44Sab196087 39d29b2c44Sab196087%.o: $(SGSTOOLS)/common/%.c 40d29b2c44Sab196087 $(COMPILE.c) -o $@ $< 41d29b2c44Sab196087 $(POST_PROCESS_O) 42d29b2c44Sab196087 4399f63845Sab196087 44d29b2c44Sab196087$(PROG): $(OBJS) $(MAPFILE) 45d29b2c44Sab196087 $(LINK.c) -o $@ $(OBJS) $(LDLIBS) 46d29b2c44Sab196087 $(POST_PROCESS) 47d29b2c44Sab196087 48d29b2c44Sab196087$(ROOTBIN64)/%: % 49d29b2c44Sab196087 $(INS.file) 50d29b2c44Sab196087 51d29b2c44Sab196087all: $(PROG) 52d29b2c44Sab196087 53d29b2c44Sab196087clean: 54d29b2c44Sab196087 $(RM) $(OBJS) $(CLEANFILES) 55d29b2c44Sab196087 56d29b2c44Sab196087delete: 57d29b2c44Sab196087 $(RM) $(PROG) 58d29b2c44Sab196087 59d29b2c44Sab196087install \ 60d29b2c44Sab196087package: all $(ROOTPROG) 61d29b2c44Sab196087 62d29b2c44Sab196087include $(SRC)/cmd/Makefile.targ 63d29b2c44Sab196087include $(SRC)/cmd/sgs/Makefile.targ 64d29b2c44Sab196087 65d29b2c44Sab196087# Derived source and header files (messaging). 66d29b2c44Sab196087 67d29b2c44Sab196087catalog: $(BLTMESG) 68d29b2c44Sab196087 @ cd ../modules; pwd; $(MAKE) catalog 69d29b2c44Sab196087 70d29b2c44Sab196087chkmsg: $(SRCS) 71d29b2c44Sab196087 sh $(CHKMSG) $(CHKMSGFLAGS) $(SRCS) 72d29b2c44Sab196087 73d29b2c44Sab196087$(BLTDEFS) + \ 74d29b2c44Sab196087$(BLTDATA) + \ 75d29b2c44Sab196087$(BLTMESG): $(SGSMSGALL) 76d29b2c44Sab196087 $(SGSMSG) $(SGSMSGFLAGS) $(SGSMSGALL) 77