xref: /titanic_50/usr/src/cmd/picl/plugins/sun4u/snowbird/lib/fruaccess/Makefile (revision 24fe0b3bf671e123467ce1df0b67cadd3614c8e4)
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 2009 Sun Microsystems, Inc.  All rights reserved.
23# Use is subject to license terms.
24#
25# cmd/picl/plugins/sun4u/snowbird/lib/fruaccess/Makefile
26#
27
28LIBRARY=	libfruaccess.a
29VERS=		.1
30
31OBJECTS=	libfruaccess.o piclsmc.o piclsdr.o piclfruaccess_platmod.o \
32		crcutils.o crcmodel.o
33
34# include library definitions
35include $(SRC)/lib/Makefile.lib
36include $(SRC)/Makefile.psm
37include	$(SRC)/cmd/picl/plugins/Makefile.com
38
39ROOT_PLATFORM = $(USR_PLAT_DIR)/SUNW,Netra-CP2300
40
41SRCS= libfruaccess.c piclsmc.c piclsdr.c piclfruaccess_platmod.c\
42		../../../lib/fruaccess/crcutils.c \
43		../../../lib/fruaccess/crcmodel.c
44
45SRCDIR= ../../../lib/fruaccess/.
46
47LIBS =		$(DYNLIB)
48
49CLEANFILES=	$(LINTOUT) $(LINTLIB)
50
51ROOTLIBDIR	= $(ROOT_PLAT_LIBDIR)
52
53LINTSRC =	$(LINTLIB:%.ln=%)
54ROOTLINTDIR =	$(ROOTLIBDIR)
55ROOTLINT =	$(LINTSRC:%=$(ROOTLINTDIR)/%)
56
57CFLAGS +=	$(CCVERBOSE)
58CPPFLAGS +=	-I$(SRC)/uts/sun4u/sys
59CPPFLAGS +=	-I$(SRC)/cmd/picl/plugins/sun4u/lib/fruaccess
60CPPFLAGS +=	-I$(SRC)/lib/libfruutils
61CPPFLAGS +=	-I$(SRC)/lib/libfru/include
62CPPFLAGS +=	-I$(SRC)/cmd/picl/plugins/sun4u/snowbird/lib/libctsmc
63
64LDLIBS +=	-L$(SRC)/lib/libpicl/$(MACH) -L$(SRC)/lib/libpicltree/$(MACH)
65LDLIBS +=	-L $(ROOT)/usr/platform/SUNW,Netra-CP2300/lib
66LDLIBS +=	-L$(SRC)/cmd/picl/plugins/sun4u/snowbird/lib/libctsmc
67LDLIBS +=	-R/usr/platform/sun4u/lib
68LDLIBS +=	-R/usr/platform/SUNW,Netra-CP2300/lib
69LDLIBS +=	-lc -lpicltree -lfruutils -lctsmc
70
71.KEEP_STATE:
72
73SUBDIRS=
74
75all :=		TARGET= all
76install :=	TARGET= install
77clean :=	TARGET= clean
78clobber :=	TARGET= clobber
79lint :=		TARGET= lint
80_msg :=		TARGET= _msg
81
82all: $(LIBS) $(LIBLINKS)
83
84install:$(ROOTLIBDIR) all  $(ROOTLIBS) $(ROOTLINKS)
85
86$(LIBLINKS):	FRC
87	$(RM) $(LIBLINKS); $(SYMLINK) $(DYNLIB) $(LIBLINKS)
88
89_msg:
90
91# include library targets
92include $(SRC)/cmd/picl/plugins/Makefile.targ
93include $(SRC)/lib/Makefile.targ
94
95$(ROOTLINTDIR)/%: ../%
96	$(INS.file)
97
98lint :
99	$(LINT.c) $(SRCS)
100
101$(SUBDIRS): FRC
102	@cd $@; pwd; $(MAKE) $(TARGET)
103
104FRC:
105