dmake: do not set MAKEFLAGS=k
[unleashed/tickless.git] / usr / src / cmd / picl / plugins / common / memcfg / Makefile
blobae73f4f693fc465053694afc2b5a109cb96eb889
2 # CDDL HEADER START
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.
9 # You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
10 # or http://www.opensolaris.org/os/licensing.
11 # See the License for the specific language governing permissions
12 # and limitations under the License.
14 # When distributing Covered Code, include this CDDL HEADER in each
15 # file and include the License file at usr/src/OPENSOLARIS.LICENSE.
16 # If applicable, add the following below this CDDL HEADER, with the
17 # fields enclosed by brackets "[]" replaced with your own identifying
18 # information: Portions Copyright [yyyy] [name of copyright owner]
20 # CDDL HEADER END
23 # Copyright 2004 Sun Microsystems, Inc. All rights reserved.
24 # Use is subject to license terms.
26 # cmd/picl/plugins/common/memcfg/Makefile
28 LIBRARY= libpiclmemcfg.a
29 VERS= .1
31 OBJECTS= piclmemcfg_comm.o
33 # include library definitions
34 include $(SRC)/lib/Makefile.lib
36 include $(SRC)/cmd/picl/plugins/Makefile.com
38 SRCS= $(OBJECTS:%.o=%.c)
40 LIBS = $(DYNLIB)
42 ROOTLIBDIR = $(USR_LIB_PLUGINDIR)
44 CPPFLAGS += -I$(SRC)/uts/sun4u/sys -I$(SRC)/cmd/picl/plugins/common/memcfg
45 CFLAGS += $(C_PICFLAGS)
47 LDLIBS += -L$(SRC)/lib/libpicltree/$(MACH)
48 LDLIBS += -L../devtree
49 LDLIBS += -L$(ROOT)/usr/lib/picl/plugins
50 LDLIBS += -lc -lpicltree -lpicldevtree -lnvpair
51 $(SPARC_BLD)LDLIBS += -R/usr/platform/\$$PLATFORM/lib/picl/plugins \
52 -R/usr/platform/sun4u/lib/picl/plugins
53 LDLIBS += -R/usr/lib/picl/plugins
55 CLOBBERFILES += $(LIBLINKS)
57 .KEEP_STATE:
59 SUBDIRS=
61 all := TARGET= all
62 install := TARGET= install
63 clean := TARGET= clean
64 clobber := TARGET= clobber
65 _msg := TARGET= _msg
67 POFILE= piclmemcfg_comm.po
69 all: $(LIBS) $(LIBLINKS)
71 install: $(ROOTLIBDIR) all $(ROOTLIBS) $(ROOTLINKS)
73 _msg: $(MSGDOMAIN) $(POFILE)
74 $(RM) $(MSGDOMAIN)/$(POFILE)
75 $(CP) $(POFILE) $(MSGDOMAIN)
77 $(MSGDOMAIN):
78 $(INS.dir)
80 $(LIBLINKS): FRC
81 $(RM) $@; $(SYMLINK) $(DYNLIB) $@
83 # include library targets
84 include $(SRC)/cmd/picl/plugins/Makefile.targ
85 include $(SRC)/lib/Makefile.targ
87 $(SUBDIRS): FRC
88 @cd $@; pwd; $(MAKE) $(TARGET)
90 FRC: