1275c9da8Seschrock# 2275c9da8Seschrock# CDDL HEADER START 3275c9da8Seschrock# 4275c9da8Seschrock# The contents of this file are subject to the terms of the 5275c9da8Seschrock# Common Development and Distribution License (the "License"). 6275c9da8Seschrock# You may not use this file except in compliance with the License. 7275c9da8Seschrock# 8275c9da8Seschrock# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE 9275c9da8Seschrock# or http://www.opensolaris.org/os/licensing. 10275c9da8Seschrock# See the License for the specific language governing permissions 11275c9da8Seschrock# and limitations under the License. 12275c9da8Seschrock# 13275c9da8Seschrock# When distributing Covered Code, include this CDDL HEADER in each 14275c9da8Seschrock# file and include the License file at usr/src/OPENSOLARIS.LICENSE. 15275c9da8Seschrock# If applicable, add the following below this CDDL HEADER, with the 16275c9da8Seschrock# fields enclosed by brackets "[]" replaced with your own identifying 17275c9da8Seschrock# information: Portions Copyright [yyyy] [name of copyright owner] 18275c9da8Seschrock# 19275c9da8Seschrock# CDDL HEADER END 20275c9da8Seschrock# 21275c9da8Seschrock 22275c9da8Seschrock# 23275c9da8Seschrock# Copyright 2008 Sun Microsystems, Inc. All rights reserved. 24275c9da8Seschrock# Use is subject to license terms. 25275c9da8Seschrock# 26d50bcaaeSAndrew Stormont# Copyright 2015 RackTop Systems. 27d50bcaaeSAndrew Stormont# 28275c9da8Seschrock 29275c9da8Seschrockall: $(PROG) $(DMODPROG) 30275c9da8Seschrock 31275c9da8Seschrock.NO_PARALLEL: 32*241c90a0SRichard Lowe.PARALLEL: $(OBJS) $(DMOD_OBJS) 33275c9da8Seschrock 34275c9da8Seschrock$(PROG): $(OBJS) $(APIMAP) 35275c9da8Seschrock $(LINK.c) $(OBJS) -o $@ $(LDLIBS) 36275c9da8Seschrock $(CTFMERGE) -L VERSION -o $@ $(OBJS) 37275c9da8Seschrock $(POST_PROCESS_SO) 38275c9da8Seschrock 39275c9da8Seschrock$(DMODPROG): $(DMOD_OBJS) 40275c9da8Seschrock -@mkdir -p $(@D) 41d50bcaaeSAndrew Stormont $(LINK.c) $(DMOD_OBJS) -o $@ $(LDLIBS) 42275c9da8Seschrock $(POST_PROCESS) 43275c9da8Seschrock 44275c9da8Seschrock%.o: %.c 45275c9da8Seschrock $(COMPILE.c) $< 46275c9da8Seschrock $(CTFCONVERT_O) 47275c9da8Seschrock 48275c9da8Seschrock%.o: ../%.c 49275c9da8Seschrock $(COMPILE.c) $< 50275c9da8Seschrock $(CTFCONVERT_O) 51275c9da8Seschrock 52275c9da8Seschrockclean: 53*241c90a0SRichard Lowe $(RM) $(OBJS) $(DMOD_OBJS) $(CLEANFILES) 54275c9da8Seschrock 55275c9da8Seschrockclobber: clean 56275c9da8Seschrock $(RM) $(PROG) $(DMODPROG) 57275c9da8Seschrock 58275c9da8Seschrock 59275c9da8Seschrockinstall_h: 60275c9da8Seschrock 61275c9da8Seschrock$(ROOTPROG): $$(@D) $(PROG) 62275c9da8Seschrock $(RM) $@; $(INS) -s -m 0755 -f $(@D) $(PROG) 63275c9da8Seschrock 64275c9da8Seschrock$(ROOTPROG64): $$(@D) $(PROG) 65275c9da8Seschrock $(RM) $@; $(INS) -s -m 0755 -f $(@D) $(PROG) 66275c9da8Seschrock 67275c9da8Seschrock$(ROOTDMOD): $$(@D) $(DMODPROG) 68275c9da8Seschrock $(RM) $@; $(INS) -s -m 0755 -f $(@D) $(DMODPROG) 69275c9da8Seschrock 70275c9da8Seschrockinclude ../../../../../Makefile.rootdirs 71