Makefile (7c478bd95313f5f23a4c958a745db2134aa03244) Makefile (486c6fda733647db4d2e8669d1fcb62cacd299d1)
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 2004 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 2004 Sun Microsystems, Inc. All rights reserved.
24# Use is subject to license terms.
25#
26#ident "%Z%%M% %I% %E% SMI"
27
28PROG = plockstat
26
27PROG = plockstat
28OBJS = plockstat.o
29
30include ../Makefile.cmd
29
30include ../Makefile.cmd
31include ../Makefile.cmd.64
31
32
32$(64ONLY)SUBDIRS = $(MACH)
33$(BUILD64)SUBDIRS += $(MACH64)
33LDLIBS += -ldtrace -lproc
34
34
35all := TARGET = all
36install := TARGET = install
37clean := TARGET = clean
38clobber := TARGET = clobber
39lint := TARGET = lint
35CLEANFILES += $(OBJS)
40
36
37ROOTLINK = $(PROG:%=$(ROOTUSRSBIN64)/%)
38
41.KEEP_STATE:
42
39.KEEP_STATE:
40
43all: $(SUBDIRS)
41all: $(PROG)
44
42
45clean clobber lint: $(SUBDIRS)
43install: all $(ROOTUSRSBINPROG) $(ROOTLINK)
46
44
47install: $(SUBDIRS)
48 -$(RM) $(ROOTUSRSBINPROG)
49 -$(LN) $(ISAEXEC) $(ROOTUSRSBINPROG)
45$(ROOTLINK):
46 $(RM) $@; $(SYMLINK) ../../sbin/$(@F) $@
50
47
51$(SUBDIRS): FRC
52 @cd $@; pwd; $(MAKE) $(TARGET)
48$(PROG): $(OBJS)
49 $(LINK.c) -o $@ $(OBJS) $(LDLIBS)
50 $(POST_PROCESS) ; $(STRIP_STABS)
53
51
54FRC:
52clean:
53 -$(RM) $(CLEANFILES)
54
55include ../Makefile.targ