Makefile (70025d765b044c6d8594bb965a2247a61e991a99) Makefile (d17be682a2c70b4505d43c830bbd2603da11918d)
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, Version 1.0 only
6# (the "License"). You may not use this file except in compliance
7# with the License.
8#

--- 9 unchanged lines hidden (view full) ---

18# information: Portions Copyright [yyyy] [name of copyright owner]
19#
20# CDDL HEADER END
21#
22#
23# Copyright 2005 Sun Microsystems, Inc. All rights reserved.
24# Use is subject to license terms.
25#
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, Version 1.0 only
6# (the "License"). You may not use this file except in compliance
7# with the License.
8#

--- 9 unchanged lines hidden (view full) ---

18# information: Portions Copyright [yyyy] [name of copyright owner]
19#
20# CDDL HEADER END
21#
22#
23# Copyright 2005 Sun Microsystems, Inc. All rights reserved.
24# Use is subject to license terms.
25#
26#ident "%Z%%M% %I% %E% SMI"
27#
28# cmd/pcidr/Makefile
29#
30
31.PARALLEL:
32#############################################################################
33
34PROGOBJECTS = pcidr.o pcidr_common.o
35PROG = pcidr
36
37SUBDIRS = plugins etc
38
39include $(SRC)/cmd/Makefile.cmd
40include Makefile.com
41#############################################################################
42
26
27.PARALLEL:
28#############################################################################
29
30PROGOBJECTS = pcidr.o pcidr_common.o
31PROG = pcidr
32
33SUBDIRS = plugins etc
34
35include $(SRC)/cmd/Makefile.cmd
36include Makefile.com
37#############################################################################
38
43# used by the lint_SRCS rule
44#
45SRCS = $(PROGOBJECTS:%.o=%.c)
46CLOBBERFILES += $(PROGOBJECTS)
47
48LDLIBS += -lnvpair
39CLOBBERFILES += $(PROGOBJECTS)
40
41LDLIBS += -lnvpair
49LINTFLAGS += -erroff=E_NAME_DEF_NOT_USED2
50
51all := TARGET = all
52install := TARGET = install
53clean := TARGET = clean
54clobber := TARGET = clobber
42
43all := TARGET = all
44install := TARGET = install
45clean := TARGET = clean
46clobber := TARGET = clobber
55lint := TARGET = lint
56
57.KEEP_STATE:
58#############################################################################
59
60all: $(PROG)
61clean:
62clobber:
63install: $(ROOTCMD)
47
48.KEEP_STATE:
49#############################################################################
50
51all: $(PROG)
52clean:
53clobber:
54install: $(ROOTCMD)
64lint: lint_SRCS
65
66$(ROOTCMD): all
67
68$(PROG): $(PROGOBJECTS)
69 $(LINK.c) -o $(PROG) $(PROGOBJECTS) $(LDLIBS)
70 $(POST_PROCESS)
71
55
56$(ROOTCMD): all
57
58$(PROG): $(PROGOBJECTS)
59 $(LINK.c) -o $(PROG) $(PROGOBJECTS) $(LDLIBS)
60 $(POST_PROCESS)
61
72all clean clobber lint: $(SUBDIRS)
62all clean clobber: $(SUBDIRS)
73install: .WAIT $(SUBDIRS)
74
75$(SUBDIRS): FRC
76 @cd $@; pwd; $(MAKE) $(TARGET)
77FRC:
78
79include $(SRC)/cmd/Makefile.targ
63install: .WAIT $(SUBDIRS)
64
65$(SUBDIRS): FRC
66 @cd $@; pwd; $(MAKE) $(TARGET)
67FRC:
68
69include $(SRC)/cmd/Makefile.targ