Makefile revision df4628cb18cef0a7960608d573d5a9b6cc9e29d5
838924562130977ca1a3d3839d146fcda39ea1afKryštof Tulinger# CDDL HEADER START
838924562130977ca1a3d3839d146fcda39ea1afKryštof Tulinger# The contents of this file are subject to the terms of the
838924562130977ca1a3d3839d146fcda39ea1afKryštof Tulinger# Common Development and Distribution License (the "License").
838924562130977ca1a3d3839d146fcda39ea1afKryštof Tulinger# You may not use this file except in compliance with the License.
838924562130977ca1a3d3839d146fcda39ea1afKryštof Tulinger# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
838924562130977ca1a3d3839d146fcda39ea1afKryštof Tulinger# or http://www.opensolaris.org/os/licensing.
838924562130977ca1a3d3839d146fcda39ea1afKryštof Tulinger# See the License for the specific language governing permissions
838924562130977ca1a3d3839d146fcda39ea1afKryštof Tulinger# and limitations under the License.
838924562130977ca1a3d3839d146fcda39ea1afKryštof Tulinger# When distributing Covered Code, include this CDDL HEADER in each
838924562130977ca1a3d3839d146fcda39ea1afKryštof Tulinger# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
838924562130977ca1a3d3839d146fcda39ea1afKryštof Tulinger# If applicable, add the following below this CDDL HEADER, with the
838924562130977ca1a3d3839d146fcda39ea1afKryštof Tulinger# fields enclosed by brackets "[]" replaced with your own identifying
838924562130977ca1a3d3839d146fcda39ea1afKryštof Tulinger# information: Portions Copyright [yyyy] [name of copyright owner]
838924562130977ca1a3d3839d146fcda39ea1afKryštof Tulinger# CDDL HEADER END
838924562130977ca1a3d3839d146fcda39ea1afKryštof Tulinger# Copyright 2007 Sun Microsystems, Inc. All rights reserved.
838924562130977ca1a3d3839d146fcda39ea1afKryštof Tulinger# Use is subject to license terms.
838924562130977ca1a3d3839d146fcda39ea1afKryštof Tulinger# ident "%Z%%M% %I% %E% SMI"
4ff40998447db64e675e85cda2bf3ae286b71529Kryštof Tulinger# In order to conform with the Solaris 2.6 way of packaging things,
838924562130977ca1a3d3839d146fcda39ea1afKryštof Tulinger# we now need to put any deliverable that is specified in the
4095b5839a2805b2313532c995ad3d444f596d03Kryštof Tulinger# prototype file into a common "proto" area, so that their
838924562130977ca1a3d3839d146fcda39ea1afKryštof Tulinger# packaging scheme knows where to obtain the input binaries.
838924562130977ca1a3d3839d146fcda39ea1afKryštof TulingerSTUB.c = mib_handler.c $(AGENT)_tree.c $(AGENT)_appl.c $(AGENT)_trap.c
ec54ba43cd8a6f162c2052976cc8364f3a2441e5Kryštof Tulinger# We need the config files to build the sacom directory,
ec54ba43cd8a6f162c2052976cc8364f3a2441e5Kryštof Tulinger# so pull them out of SCCS.
ec54ba43cd8a6f162c2052976cc8364f3a2441e5Kryštof TulingerMYLIBS= ../agent/$(MACH)/libssagent.so.$(EXT) ../snmplib/$(MACH)/libssasnmp.so.$(EXT)
ec54ba43cd8a6f162c2052976cc8364f3a2441e5Kryštof TulingerMYLINKLIBS += -L../agent/$(MACH) -lssagent -L../snmplib -lssasnmp
ec54ba43cd8a6f162c2052976cc8364f3a2441e5Kryštof Tulinger# snmpdx has a name clash with main() and libl.so.1. However, snmpdx must
ec54ba43cd8a6f162c2052976cc8364f3a2441e5Kryštof Tulinger# still export a number of "yy*" (libl) interfaces, and interfaces for
ec54ba43cd8a6f162c2052976cc8364f3a2441e5Kryštof Tulinger# libssagent.so.1. Reduce all other symbols to local scope.
ec54ba43cd8a6f162c2052976cc8364f3a2441e5Kryštof TulingerMAPFILES += $(MAPFILE.INT) $(MAPFILE.LEX) $(MAPFILE.NGB)
ec54ba43cd8a6f162c2052976cc8364f3a2441e5Kryštof TulingerCPPFLAGS += -I. -I../agent -I../snmplib -I../../include/netmgt -I${BIN}
838924562130977ca1a3d3839d146fcda39ea1afKryštof TulingerMIBS= $(MIB_HOME)/mib_core.txt $(MIB_HOME)/snmpdx.mib
838924562130977ca1a3d3839d146fcda39ea1afKryštof Tulinger#######################################################
838924562130977ca1a3d3839d146fcda39ea1afKryštof TulingerROOTMANIFESTDIR = $(ROOTSVCAPPLICATIONMANAGEMENT)
838924562130977ca1a3d3839d146fcda39ea1afKryštof Tulingerall: $(SOURCES.h) $(BINPROG) $(CONFIG_FILES)
838924562130977ca1a3d3839d146fcda39ea1afKryštof Tulingerinstall: all $(OPTPROG) $(CONFRULE) $(ROOTMANIFEST) $(ROOTSVCMETHOD)
838924562130977ca1a3d3839d146fcda39ea1afKryštof Tulinger$(BINPROG): $(BIN) $(OBJECTS) $(BIN)/config.o $(MYLIBS) $(MAPFILES)
838924562130977ca1a3d3839d146fcda39ea1afKryštof Tulinger $(CC) -o $(BINPROG) $(LDFLAGS) $(OBJECTS) $(BIN)/config.o \
838924562130977ca1a3d3839d146fcda39ea1afKryštof Tulinger $(CC) $(CFLAGS) $(CPPFLAGS) $(DEFINES) $*.c -o $@
838924562130977ca1a3d3839d146fcda39ea1afKryštof Tulinger$(BIN)/config.o: ${BIN}/config.c ${BIN}/config.lex.c
838924562130977ca1a3d3839d146fcda39ea1afKryštof Tulinger $(CC) $(CFLAGS) $(CPPFLAGS) $(DEFINES) ${BIN}/config.c -o $(BIN)/config.o
838924562130977ca1a3d3839d146fcda39ea1afKryštof Tulinger $(LINT) $(LDFLAGS) $(CPPFLAGS) $(DEFINES) $(SOURCES.c) $(MYLINKLIBS) $(LIBS)
838924562130977ca1a3d3839d146fcda39ea1afKryštof Tulinger $(PURIFY) $(CC) -o $(BINPROG) $(LDFLAGS) $(OBJECTS) $(MYLINKLIBS) $(LIBS)