1#
2# CDDL HEADER START
3#
4# The contents of this file are subject to the terms of the
5# Common Development and Distribution License (the "License").
6# You may not use this file except in compliance with the License.
7#
8# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
9# or http://www.opensolaris.org/os/licensing.
10# See the License for the specific language governing permissions
11# and limitations under the License.
12#
13# When distributing Covered Code, include this CDDL HEADER in each
14# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
15# If applicable, add the following below this CDDL HEADER, with the
16# fields enclosed by brackets "[]" replaced with your own identifying
17# information: Portions Copyright [yyyy] [name of copyright owner]
18#
19# CDDL HEADER END
20#
21#
22# Copyright 2006 Sun Microsystems, Inc.  All rights reserved.
23# Use is subject to license terms.
24#
25# ident	"%Z%%M%	%I%	%E% SMI"
26#
27
28LIBRARY =	libssagent.a
29VERS =		.1
30SRCOBJS =	node.o access.o agent.o snmpd.o pagent.o subtree.o reg_subtree.o
31OBJECTS =	$(SRCOBJS) personal.o
32
33include $(SRC)/lib/Makefile.lib
34
35LIBS =		$(DYNLIB) $(LINTLIB)
36SRCS = 		$(SRCOBJS:%.o=$(SRCDIR)/%.c) personal.c
37
38$(LINTLIB):=	SRCS = $(SRCDIR)/$(LINTSRC)
39LDLIBS +=	-lssasnmp -lc -lsocket -lnsl
40
41CLEANFILES +=	personal.c personal.lex.c
42
43MAPFILES =	../agent-mapfile-vers 
44
45CPPFLAGS =	-I. -I.. -I../../snmplib $(CPPFLAGS.master)
46LINTFLAGS64 +=	-errchk=longptr64
47#
48# This library has references to hooks that are defined by the programs
49# that link with it; need to turn off -zdefs.
50#
51ZDEFS =
52
53.KEEP_STATE:
54
55all: $(LIBS)
56
57personal.c: ../personal.y
58	$(YACC.y) ../personal.y
59	$(MV) y.tab.c personal.c
60
61personal.lex.c: ../personal.l
62	$(LEX.l) ../personal.l > personal.lex.c
63
64pics/personal.o: personal.c personal.lex.c
65	$(COMPILE.c) -o pics/personal.o personal.c
66	$(POST_PROCESS_O)
67
68lint: lintcheck
69
70include $(SRC)/lib/Makefile.targ
71