xref: /titanic_52/usr/src/lib/cfgadm_plugins/ac/Makefile.com (revision ba4e3c84e6b9390bbf7df80b5f1d11dec34cc525)
1#
2# CDDL HEADER START
3#
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.
8#
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.
13#
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]
19#
20# CDDL HEADER END
21#
22#
23# Copyright 2005 Sun Microsystems, Inc.  All rights reserved.
24# Use is subject to license terms.
25#
26# ident	"%Z%%M%	%I%	%E% SMI"
27#
28# lib/ac/Makefile.com
29
30include $(SRC)/lib/cfgadm_plugins/Makefile.com
31
32PLATFORM=	sun4u
33LIBRARY= ac.a
34VERS= .1
35
36OBJECTS= mema.o mema_prom.o mema_test.o mema_test_config.o mema_test_subr.o \
37	 mema_util.o
38
39# include library definitions
40include $(SRC)/lib/Makefile.lib
41
42INS.dir.root.sys=	$(INS) -s -d -m $(DIRMODE) $@
43$(CH)INS.dir.root.sys=	$(INS) -s -d -m $(DIRMODE) -u root -g sys $@
44INS.dir.root.bin=	$(INS) -s -d -m $(DIRMODE) $@
45$(CH)INS.dir.root.bin=	$(INS) -s -d -m $(DIRMODE) -u root -g bin $@
46
47USR_PLAT_DIR		= $(ROOT)/usr/platform
48USR_PSM_DIR		= $(USR_PLAT_DIR)/sun4u
49USR_PSM_LIB_DIR		= $(USR_PSM_DIR)/lib
50USR_PSM_LIB_CFG_DIR	= $(USR_PSM_LIB_DIR)/cfgadm
51USR_PSM_LIB_CFG_DIR_64	= $(USR_PSM_LIB_CFG_DIR)/$(MACH64)
52
53ROOTLIBDIR=     $(USR_PSM_LIB_CFG_DIR)
54ROOTLIBDIR64=   $(USR_PSM_LIB_CFG_DIR_64)
55
56MAPFILE=	../common/mapfile-vers
57SRCS=		$(OBJECTS:%.o=../common/%.c)
58
59LIBS = $(DYNLIB)
60
61CFLAGS +=	$(CCVERBOSE)
62DYNFLAGS +=	-M $(MAPFILE)
63LDLIBS +=	-lc
64
65CPPFLAGS +=	-I$(ROOT)/usr/platform/$(PLATFORM)/include
66
67.KEEP_STATE:
68
69all: $(LIBS)
70
71lint:   lintcheck
72
73$(DYNLIB):	$(MAPFILE)
74
75# Create target directories
76$(USR_PSM_DIR):		$(LINKED_DIRS)
77	-$(INS.dir.root.sys)
78
79$(USR_PSM_LIB_DIR):	$(USR_PSM_DIR) $(LINKED_LIB_DIRS)
80	-$(INS.dir.root.bin)
81
82$(USR_PSM_LIB_CFG_DIR):	$(USR_PSM_LIB_DIR) $(LINKED_CFG_DIRS)
83	-$(INS.dir.root.bin)
84
85$(USR_PSM_LIB_CFG_DIR_64):	$(USR_PSM_LIB_CFG_DIR)
86	-$(INS.dir.root.bin)
87
88$(USR_PSM_LIB_CFG_DIR)/%: % $(USR_PSM_LIB_CFG_DIR)
89	-$(INS.file)
90
91$(USR_PSM_LIB_CFG_DIR_64)/%: % $(USR_PSM_LIB_CFG_DIR_64)
92	-$(INS.file)
93
94# include library targets
95include $(SRC)/lib/Makefile.targ
96
97pics/%.o: ../common/%.c
98	$(COMPILE.c) -o $@ $<
99	$(POST_PROCESS_O)
100