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
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]
23 # Copyright 2004 Sun Microsystems, Inc. All rights reserved.
24 # Use is subject to license terms.
26 # ident "%Z%%M% %I% %E% SMI"
34 # include library definitions
35 include $(SRC
)/lib
/Makefile.lib
36 include $(SRC
)/Makefile.psm
38 include $(SRC
)/cmd
/picl
/plugins
/Makefile.com
40 SRCS
= $(OBJECTS
:%.o
=%.c
)
46 USR_PLAT_PSVCOBJ
= $(LIBS
:%=$(USR_PSM_LIB_DIR
)/%)
48 CLEANFILES
= $(LINTOUT
) $(LINTLIB
)
50 CPPFLAGS
+= -I
$(SRC
)/uts
/sun4u
-I.
52 CFLAGS
+= $(CCVERBOSE
)
53 LDLIBS
+= -L
$(SRC
)/lib
/libdevfsevent
58 # definitions for install_h target
60 PLATHDRS
= $(HDRS
:%=$(USR_PSM_INCL_DIR
)/%)
61 CHECKHDRS
= $(HDRS
:%.h
=%.
check)
70 install := TARGET
= install
71 clean := TARGET
= clean
72 clobber := TARGET
= clobber
76 all: $(LIBS
) $(LIBLINKS
)
78 install: all $(USR_PSM_LIB_DIR
) $(USR_PLAT_PSVCOBJ
)
80 install_h
: $(USR_PSM_INCL_DIR
) $(PLATHDRS
)
83 $(RM
) $(LIBLINKS
); $(SYMLINK
) $(DYNLIB
) $(LIBLINKS
)
87 # include library targets
88 include $(SRC
)/cmd
/picl
/plugins
/Makefile.targ
89 include $(SRC
)/lib
/Makefile.targ
91 $(USR_PSM_LIB_DIR
): FRC
94 $(USR_PSM_INCL_DIR
)/%: %
97 $(USR_PSM_LIB_DIR
)/%: % $(USR_PSM_LIB_DIR
)
99 $(RM
) -r
$(USR_PSM_LIB_DIR
)/libpsvcobj.so
; \
100 $(SYMLINK
) .
/libpsvcobj.so
$(VERS
) $(USR_PSM_LIB_DIR
)/libpsvcobj.so
106 @cd
$@
; pwd
; $(MAKE
) $(TARGET
)