dmake: do not set MAKEFLAGS=k
[unleashed/tickless.git] / usr / src / cmd / picl / plugins / sun4u / grover / memcfg / Makefile
blob9fb0fe8af94b62b887f3a21a4911006b6980ce08
2 # CDDL HEADER START
4 # The contents of this file are subject to the terms of the
5 # Common Development and Distribution License (the "License").
6 # You may not use this file except in compliance with the License.
8 # You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
9 # or http://www.opensolaris.org/os/licensing.
10 # See the License for the specific language governing permissions
11 # and limitations under the License.
13 # When distributing Covered Code, include this CDDL HEADER in each
14 # file and include the License file at usr/src/OPENSOLARIS.LICENSE.
15 # If applicable, add the following below this CDDL HEADER, with the
16 # fields enclosed by brackets "[]" replaced with your own identifying
17 # information: Portions Copyright [yyyy] [name of copyright owner]
19 # CDDL HEADER END
22 # Copyright 2009 Sun Microsystems, Inc. All rights reserved.
23 # Use is subject to license terms.
26 include $(SRC)/Makefile.psm
28 LIBRARY= libpiclmemcfg.a
29 VERS= .1
31 OBJECTS= piclmemcfg.o
33 # include library definitions
34 include $(SRC)/lib/Makefile.lib
36 ROOT_PLATFORM = $(USR_PLAT_DIR)/SUNW,Sun-Blade-100
38 include $(SRC)/cmd/picl/plugins/Makefile.com
40 SRCS= $(OBJECTS:%.o=%.c)
42 LIBS = $(DYNLIB)
44 ROOTLIBDIR = $(ROOT_PLAT_PLUGINDIR)
47 CPPFLAGS += -I$(SRC)/cmd/picl/plugins/common/memcfg
48 LDLIBS += -L$(SRC)/lib/libpicltree/$(MACH)
49 LDLIBS += -L$(SRC)/cmd/picl/plugins/common/devtree
50 LDLIBS += -L$(ROOT)/usr/lib/picl/plugins
51 LDLIBS += -lc -lpicltree -lpicldevtree
52 LDLIBS += -R/usr/platform/\$$PLATFORM/lib/picl/plugins:/usr/platform/sun4u/lib/picl/plugins:/usr/lib/picl/plugins
55 LINKED_PLATFORMS = SUNW,Serverblade1
57 LINKED_DIRS = $(LINKED_PLATFORMS:%=$(USR_PLAT_DIR)/%)
58 LINKED_LIB_DIRS = $(LINKED_PLATFORMS:%=$(USR_PLAT_DIR)/%/lib)
59 LINKED_PICL_DIRS = $(LINKED_PLATFORMS:%=$(USR_PLAT_DIR)/%/lib/picl)
60 LINKED_PLUGIN_DIRS = $(LINKED_PLATFORMS:%=$(USR_PLAT_DIR)/%/lib/picl/plugins)
62 LINKED_PLUGINS_DYNLIBS = $(LINKED_PLUGIN_DIRS:%=%/$(DYNLIB))
63 LINKED_PLUGINS_LIBLINKS = $(LINKED_PLUGIN_DIRS:%=%/$(LIBLINKS))
65 GROVER_DYNLIB_DIR = ../../../../SUNW,Sun-Blade-100/lib/picl/plugins
67 PLATFORM= SUNW,Sun-Blade-100
69 .KEEP_STATE:
71 SUBDIRS=
73 all := TARGET= all
74 install := TARGET= install
75 clean := TARGET= clean
76 clobber := TARGET= clobber
77 _msg := TARGET= _msg
79 POFILE= piclmemcfg.po
81 all: $(LIBS) $(LIBLINKS)
83 install: $(ROOTLIBDIR) all $(ROOTLIBS) $(ROOTLINKS) \
84 $(LINKED_PLUGIN_DIRS) $(LINKED_PLUGINS_DYNLIBS) \
85 $(LINKED_PLUGINS_LIBLINKS)
87 _msg: $(MSGDOMAIN) $(POFILE)
88 $(RM) $(MSGDOMAIN)/$(POFILE)
89 $(CP) $(POFILE) $(MSGDOMAIN)
91 $(MSGDOMAIN):
92 $(INS.dir)
94 $(LIBLINKS): FRC
95 $(RM) $@; $(SYMLINK) $(DYNLIB) $@
97 # Linked platforms directory hierarchy
98 $(LINKED_DIRS):
99 $(INS.dir)
100 $(LINKED_LIB_DIRS): $(LINKED_DIRS)
101 $(INS.dir)
102 $(LINKED_PICL_DIRS): $(LINKED_LIB_DIRS)
103 $(INS.dir)
104 $(LINKED_PLUGIN_DIRS): $(LINKED_PICL_DIRS)
105 $(INS.dir)
107 # Linked platforms links
108 $(LINKED_PLUGINS_DYNLIBS): $(LINKED_PLUGIN_DIRS)
109 $(RM) -r $@ ;\
110 $(SYMLINK) $(GROVER_DYNLIB_DIR)/$(DYNLIB) $@
112 $(LINKED_PLUGINS_LIBLINKS): $(LINKED_PLUGIN_DIRS)
113 $(RM) -r $@ ;\
114 $(SYMLINK) $(GROVER_DYNLIB_DIR)/$(DYNLIB) $@
116 # include library targets
117 include $(SRC)/cmd/picl/plugins/Makefile.targ
118 include $(SRC)/lib/Makefile.targ
120 $(SUBDIRS): FRC
121 @cd $@; pwd; $(MAKE) $(TARGET)
123 FRC: