xref: /illumos-gate/usr/src/cmd/fm/modules/common/sw-diag-response/software-diagnosis/Makefile (revision d3b5f56344d8bfcdd6cfb82446af0e5e55ad9ebe)
1f6e214c7SGavin Maltby#
2f6e214c7SGavin Maltby# CDDL HEADER START
3f6e214c7SGavin Maltby#
4f6e214c7SGavin Maltby# The contents of this file are subject to the terms of the
5f6e214c7SGavin Maltby# Common Development and Distribution License (the "License").
6f6e214c7SGavin Maltby# You may not use this file except in compliance with the License.
7f6e214c7SGavin Maltby#
8f6e214c7SGavin Maltby# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
9f6e214c7SGavin Maltby# or http://www.opensolaris.org/os/licensing.
10f6e214c7SGavin Maltby# See the License for the specific language governing permissions
11f6e214c7SGavin Maltby# and limitations under the License.
12f6e214c7SGavin Maltby#
13f6e214c7SGavin Maltby# When distributing Covered Code, include this CDDL HEADER in each
14f6e214c7SGavin Maltby# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
15f6e214c7SGavin Maltby# If applicable, add the following below this CDDL HEADER, with the
16f6e214c7SGavin Maltby# fields enclosed by brackets "[]" replaced with your own identifying
17f6e214c7SGavin Maltby# information: Portions Copyright [yyyy] [name of copyright owner]
18f6e214c7SGavin Maltby#
19f6e214c7SGavin Maltby# CDDL HEADER END
20f6e214c7SGavin Maltby#
21f6e214c7SGavin Maltby#
22f6e214c7SGavin Maltby# Copyright (c) 2010, Oracle and/or its affiliates. All rights reserved.
23f6e214c7SGavin Maltby#
24f6e214c7SGavin Maltby
25f6e214c7SGavin MaltbyMODULE = software-diagnosis
26f6e214c7SGavin MaltbyCLASS = common
27f6e214c7SGavin Maltby
28f6e214c7SGavin Maltbyinclude ../Makefile.com
29f6e214c7SGavin Maltby
30f6e214c7SGavin Maltby#
31f6e214c7SGavin Maltby# Sources for the primary software-diagnosis module
32f6e214c7SGavin Maltby#
33f6e214c7SGavin MaltbySWDE_SRCS = swde_main.c swde_case.c
34f6e214c7SGavin Maltby
35f6e214c7SGavin Maltby#
36f6e214c7SGavin Maltby# Sources for subsidiary diagnosis "modules" that we host.  These should
37f6e214c7SGavin Maltby# be listed in ../Makefile.com
38f6e214c7SGavin Maltby#
39f6e214c7SGavin MaltbySUBDE_SRCS = $(SMF_DE_SRCS) $(PANIC_DE_SRCS)
40f6e214c7SGavin Maltby
41f6e214c7SGavin Maltby#
42f6e214c7SGavin Maltby# All sources for softtware-diagnosis
43f6e214c7SGavin Maltby#
44f6e214c7SGavin MaltbySRCS = $(SWDE_SRCS) $(CMN_SRCS:%=../%) $(SUBDE_SRCS:%=../%)
45f6e214c7SGavin Maltby
46f6e214c7SGavin Maltbyinclude ../../../Makefile.plugin
47f6e214c7SGavin Maltby
48f6e214c7SGavin MaltbyCFLAGS += $(INCS)
49f6e214c7SGavin MaltbyLINTFLAGS += $(INCS)
50f6e214c7SGavin MaltbyLDLIBS += -L$(ROOTLIB)/fm -ltopo -luutil -luuid -lkstat
51f6e214c7SGavin MaltbyLDFLAGS += -R/usr/lib/fm
527014882cSRichard LoweCERRWARN += -_gcc=-Wno-parentheses
53*d3b5f563SJohn LevonCERRWARN += $(CNOWARN_UNINIT)
54