dmake: do not set MAKEFLAGS=k
[unleashed/tickless.git] / usr / src / cmd / picl / plugins / sun4u / lw2plus / fcal_leds / Makefile
blob76e9f2184476effa3cbee7185350d6cdb1cc870f
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= libfcal_leds.a
29 VERS= .1
31 OBJECTS= fcal_leds.o fc_led_parse.o fcal_leds_thread.o
33 # include library definitions
34 include $(SRC)/lib/Makefile.lib
36 ROOT_PLATFORM = $(USR_PLAT_DIR)/SUNW,Netra-T4
38 include $(SRC)/cmd/picl/plugins/Makefile.com
40 SRCS= $(OBJECTS:%.o=%.c)
42 LIBS = $(DYNLIB)
44 ROOTLIBDIR = $(ROOT_PLAT_PLUGINDIR)
46 CONF= fcal_leds.conf
47 ROOTCONF= $(CONF:%=$(ROOTLIBDIR)/%)
48 $(ROOTCONF) := FILEMODE = 0644
51 CPPFLAGS += -I$(SRC)/uts/sun4u/ -I$(SRC)/uts/common/
52 CPPFLAGS += -D_POSIX_PTHREAD_SEMANTICS
54 # Components of load time linker path.
55 # These paths start at / on the target machine, so don't use $(ROOT).
56 # However, to silence makestyle use empty string $(RUNTIMEROOT)
57 RUNTIMEROOT =
58 PICLPLATDYN = $(RUNTIMEROOT)/usr/platform/\$$PLATFORM/lib/picl/plugins
59 PICLARCHDYN = $(RUNTIMEROOT)/usr/platform/sun4u/lib/picl/plugins
60 PICLGENDYN = $(RUNTIMEROOT)/usr/lib/picl/plugins
62 DYNFLAGS += -R$(PICLPLATDYN):$(PICLARCHDYN):$(PICLGENDYN)
63 LDLIBS += -L$(SRC)/lib/libpicltree/$(MACH)
64 LDLIBS += -L$(SRC)/cmd/picl/plugins/common/devtree
65 LDLIBS += -L$(SRC)/cmd/picl/plugins/common/piclevent
66 LDLIBS += -L$(SRC)/cmd/picl/plugins/common/frutree
67 LDLIBS += -L$(SRC)/cmd/picl/plugins/common/memcfg
68 LDLIBS += -lpicltree -lpicldevtree -lpiclfrutree -lnvpair
69 LDLIBS += -ldevinfo -lc
71 .KEEP_STATE:
73 SUBDIRS=
75 all := TARGET= all
76 install := TARGET= install
77 clean := TARGET= clean
78 clobber := TARGET= clobber
79 _msg := TARGET= _msg
81 POFILE = piclfcal_leds_lw2plus.po
82 POFILES = $(SRCS:%.c=%.po)
84 all: $(LIBS) $(LIBLINKS)
86 install: $(ROOTLIBDIR) all $(ROOTLIBS) $(ROOTLINKS) $(ROOTCONF)
88 $(POFILE): $(POFILES)
89 $(CAT) $(POFILES) > $(POFILE)
91 _msg: $(MSGDOMAIN) $(POFILE)
92 $(RM) $(MSGDOMAIN)/$(POFILE)
93 $(CP) $(POFILE) $(MSGDOMAIN)/$(POFILE)
95 $(MSGDOMAIN):
96 $(INS.dir)
99 $(LIBLINKS): FRC
100 $(RM) $@; $(SYMLINK) $(DYNLIB) $@
102 # include library targets
103 include $(SRC)/lib/Makefile.targ
104 include $(SRC)/cmd/picl/plugins/Makefile.targ
106 $(SUBDIRS): FRC
107 @cd $@; pwd; $(MAKE) $(TARGET)
109 FRC: