xref: /titanic_41/usr/src/cmd/pcitool/Makefile.com (revision 7014882c6a3672fd0e5d60200af8643ae53c5928)
1d5ace945SErwin T Tsaur# CDDL HEADER START
2d5ace945SErwin T Tsaur#
3d5ace945SErwin T Tsaur# The contents of this file are subject to the terms of the
4d5ace945SErwin T Tsaur# Common Development and Distribution License (the "License").
5d5ace945SErwin T Tsaur# You may not use this file except in compliance with the License.
6d5ace945SErwin T Tsaur#
7d5ace945SErwin T Tsaur# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
8d5ace945SErwin T Tsaur# or http://www.opensolaris.org/os/licensing.
9d5ace945SErwin T Tsaur# See the License for the specific language governing permissions
10d5ace945SErwin T Tsaur# and limitations under the License.
11d5ace945SErwin T Tsaur#
12d5ace945SErwin T Tsaur# When distributing Covered Code, include this CDDL HEADER in each
13d5ace945SErwin T Tsaur# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
14d5ace945SErwin T Tsaur# If applicable, add the following below this CDDL HEADER, with the
15d5ace945SErwin T Tsaur# fields enclosed by brackets "[]" replaced with your own identifying
16d5ace945SErwin T Tsaur# information: Portions Copyright [yyyy] [name of copyright owner]
17d5ace945SErwin T Tsaur#
18d5ace945SErwin T Tsaur# CDDL HEADER END
19d5ace945SErwin T Tsaur#
20bf7fda89SJimmy Vetayases# Copyright (c) 2009, 2010, Oracle and/or its affiliates. All rights reserved.
21d5ace945SErwin T Tsaur#
22d5ace945SErwin T Tsaur
23d5ace945SErwin T TsaurPROG = pcitool
24d5ace945SErwin T TsaurOBJS = pcitool.o pcitool_ui.o pcitool_usage.o
25d5ace945SErwin T TsaurSRCS = $(OBJS:%.o=../%.c)
26d5ace945SErwin T Tsaur
27d5ace945SErwin T Tsaurinclude $(SRC)/cmd/Makefile.cmd
28d5ace945SErwin T Tsaur
29d5ace945SErwin T TsaurUTSBASE = ../../../../src/uts
30d5ace945SErwin T Tsaur
31d5ace945SErwin T TsaurLDLIBS += -ldevinfo
32d5ace945SErwin T Tsaur
33d5ace945SErwin T TsaurCFLAGS += -D$(MACH) -I$(UTSBASE)/common
34*7014882cSRichard LoweCERRWARN += -_gcc=-Wno-uninitialized
35*7014882cSRichard LoweCERRWARN += -_gcc=-Wno-parentheses
36*7014882cSRichard LoweCERRWARN += -_gcc=-Wno-unused-variable
37d5ace945SErwin T Tsaur
38d5ace945SErwin T TsaurLINTFLAGS += -I$(UTSBASE)/common
39d5ace945SErwin T Tsaur
40d5ace945SErwin T Tsaur.KEEP_STATE:
41d5ace945SErwin T Tsaur
42bf7fda89SJimmy Vetayasesall: $(PROG)
43d5ace945SErwin T Tsaur
44d5ace945SErwin T Tsaur$(SUBDIRS):	FRC
45d5ace945SErwin T Tsaur	@cd $@; pwd; $(MAKE) $(TARGET)
46d5ace945SErwin T Tsaur
47d5ace945SErwin T Tsaur$(PROG):	$(OBJS)
48d5ace945SErwin T Tsaur	$(LINK.c) $(OBJS) -o $@ $(LDLIBS)
49d5ace945SErwin T Tsaur	$(POST_PROCESS)
50d5ace945SErwin T Tsaur
51bf7fda89SJimmy Vetayasesinstall: all $(PROG)
52d5ace945SErwin T Tsaur
53d5ace945SErwin T Tsaurclean:
54d5ace945SErwin T Tsaur	$(RM) $(OBJS) $(PROG)
55d5ace945SErwin T Tsaur
56d5ace945SErwin T Tsaurlint:
57d5ace945SErwin T Tsaur	$(LINT.c) $(SRCS) $(LDLIBS)
58d5ace945SErwin T Tsaur
59d5ace945SErwin T Tsaur%.o:	../%.c
60d5ace945SErwin T Tsaur	$(COMPILE.c) -o $@ $<
61d5ace945SErwin T Tsaur
62d5ace945SErwin T Tsaurinclude $(SRC)/cmd/Makefile.targ
63