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]
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
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
)
44 ROOTLIBDIR
= $(ROOT_PLAT_PLUGINDIR
)
47 ROOTCONF
= $(CONF
:%=$(ROOTLIBDIR
)/%)
48 $(ROOTCONF
) := FILEMODE
= 0644
50 LINTSRC
= $(LINTLIB
:%.ln
=%)
51 ROOTLINTDIR
= $(ROOTLIBDIR
)
52 ROOTLINT
= $(LINTSRC
:%=$(ROOTLINTDIR
)/%)
54 CLEANFILES
= $(LINTOUT
) $(LINTLIB
)
56 CPPFLAGS
+= -I
$(SRC
)/uts
/sun4u
/ -I
$(SRC
)/uts
/common
/
57 CPPFLAGS
+= -D_POSIX_PTHREAD_SEMANTICS
58 CPPFLAGS
+= -D_REENTRANT
60 # Components of load time linker path.
61 # These paths start at / on the target machine, so don't use $(ROOT).
62 # However, to silence makestyle use empty string $(RUNTIMEROOT)
64 PICLPLATDYN
= $(RUNTIMEROOT
)/usr
/platform
/\
$$PLATFORM/lib
/picl
/plugins
65 PICLARCHDYN
= $(RUNTIMEROOT
)/usr
/platform
/sun4u
/lib
/picl
/plugins
66 PICLGENDYN
= $(RUNTIMEROOT
)/usr
/lib
/picl
/plugins
68 DYNFLAGS
+= -R
$(PICLPLATDYN
):$(PICLARCHDYN
):$(PICLGENDYN
)
69 LDLIBS
+= -L
$(SRC
)/lib
/libpicltree
/$(MACH
)
70 LDLIBS
+= -L
$(SRC
)/cmd
/picl
/plugins
/common
/devtree
71 LDLIBS
+= -L
$(SRC
)/cmd
/picl
/plugins
/common
/piclevent
72 LDLIBS
+= -L
$(SRC
)/cmd
/picl
/plugins
/common
/frutree
73 LDLIBS
+= -L
$(SRC
)/cmd
/picl
/plugins
/common
/memcfg
74 LDLIBS
+= -lpicltree
-lpicldevtree
-lpiclfrutree
-lnvpair
75 LDLIBS
+= -ldevinfo
-lc
82 install := TARGET
= install
83 clean := TARGET
= clean
84 clobber := TARGET
= clobber
88 POFILE
= piclfcal_leds_lw2plus.po
89 POFILES
= $(SRCS
:%.c
=%.po
)
91 all: $(LIBS
) $(LIBLINKS
)
93 install: $(ROOTLIBDIR
) all $(ROOTLIBS
) $(ROOTLINKS
) $(ROOTCONF
)
96 $(CAT
) $(POFILES
) > $(POFILE
)
98 _msg
: $(MSGDOMAIN
) $(POFILE
)
99 $(RM
) $(MSGDOMAIN
)/$(POFILE
)
100 $(CP
) $(POFILE
) $(MSGDOMAIN
)/$(POFILE
)
107 $(RM
) $@
; $(SYMLINK
) $(DYNLIB
) $@
109 # include library targets
110 include $(SRC
)/lib
/Makefile.targ
111 include $(SRC
)/cmd
/picl
/plugins
/Makefile.targ
113 $(ROOTLINTDIR
)/%: ..
/%
120 @cd
$@
; pwd
; $(MAKE
) $(TARGET
)