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# 26*d50bcaaeSAndrew Stormont# Copyright 2015 RackTop Systems. 27*d50bcaaeSAndrew Stormont# 28275c9da8Seschrock 29275c9da8Seschrockall: $(PROG) $(DMODPROG) 30275c9da8Seschrock 31275c9da8Seschrock.NO_PARALLEL: 32275c9da8Seschrock.PARALLEL: $(OBJS) $(LINTFILES) $(DMOD_OBJS) $(DMODLINTFILES) 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) 41*d50bcaaeSAndrew Stormont $(LINK.c) $(DMOD_OBJS) -o $@ $(LDLIBS) 42275c9da8Seschrock $(POST_PROCESS) 43275c9da8Seschrock 44275c9da8Seschrock%.o: %.c 45275c9da8Seschrock $(COMPILE.c) $< 46275c9da8Seschrock $(CTFCONVERT_O) 47275c9da8Seschrock 48275c9da8Seschrock%.o: $(SRCDIR)/%.c 49275c9da8Seschrock $(COMPILE.c) $< 50275c9da8Seschrock $(CTFCONVERT_O) 51275c9da8Seschrock 52275c9da8Seschrockclean: 53275c9da8Seschrock $(RM) $(OBJS) $(DMOD_OBJS) $(LINTFILES) $(DMODLINTFILES) $(CLEANFILES) 54275c9da8Seschrock 55275c9da8Seschrockclobber: clean 56275c9da8Seschrock $(RM) $(PROG) $(DMODPROG) 57275c9da8Seschrock 58275c9da8Seschrock%.ln: %.c 59275c9da8Seschrock $(LINT.c) -c $< 60275c9da8Seschrock 61275c9da8Seschrock%.ln: $(SRCDIR)/%.c 62275c9da8Seschrock $(LINT.c) -c $< 63275c9da8Seschrock 64275c9da8Seschrocklint_prog: $(LINTFILES) 65275c9da8Seschrock $(LINT) $(LINTFLAGS) $(LINTFILES) $(LDLIBS) 66275c9da8Seschrock 67275c9da8Seschrocklint_dmod: $(DMODLINTFILES) 68275c9da8Seschrock $(LINT) $(LINTFLAGS) $(DMODLINTFILES) $(LDLIBS) 69275c9da8Seschrock 70275c9da8Seschrocklint: lint_prog $(DMODLINTTGT) 71275c9da8Seschrock 72275c9da8Seschrockinstall_h: 73275c9da8Seschrock 74a6e6969cSeschrock$(ROOTPLUGINDIR)/%: $(PROG) 75a6e6969cSeschrock $(RM) $@; $(LN) -s $< $@ 76a6e6969cSeschrock 77a6e6969cSeschrock$(ROOTPLUGINDIR64)/%: $(PROG) 78a6e6969cSeschrock $(RM) $@; $(LN) -s $< $@ 79a6e6969cSeschrock 80275c9da8Seschrock$(ROOTPROG): $$(@D) $(PROG) 81275c9da8Seschrock $(RM) $@; $(INS) -s -m 0755 -f $(@D) $(PROG) 82275c9da8Seschrock 83275c9da8Seschrock$(ROOTPROG64): $$(@D) $(PROG) 84275c9da8Seschrock $(RM) $@; $(INS) -s -m 0755 -f $(@D) $(PROG) 85275c9da8Seschrock 86275c9da8Seschrock$(ROOTDMOD): $$(@D) $(DMODPROG) 87275c9da8Seschrock $(RM) $@; $(INS) -s -m 0755 -f $(@D) $(DMODPROG) 88275c9da8Seschrock 89275c9da8Seschrockinclude ../../../../Makefile.rootdirs 90