Makefile revision 82629e3015252bf18319ba3815c773df23e21436
4ae67516a1d5dc4a5dbc761762bad5b596647388tomee#
4ae67516a1d5dc4a5dbc761762bad5b596647388tomee# CDDL HEADER START
4ae67516a1d5dc4a5dbc761762bad5b596647388tomee#
4ae67516a1d5dc4a5dbc761762bad5b596647388tomee# The contents of this file are subject to the terms of the
4ae67516a1d5dc4a5dbc761762bad5b596647388tomee# Common Development and Distribution License (the "License").
4ae67516a1d5dc4a5dbc761762bad5b596647388tomee# You may not use this file except in compliance with the License.
4ae67516a1d5dc4a5dbc761762bad5b596647388tomee#
4ae67516a1d5dc4a5dbc761762bad5b596647388tomee# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
4ae67516a1d5dc4a5dbc761762bad5b596647388tomee# or http://www.opensolaris.org/os/licensing.
4ae67516a1d5dc4a5dbc761762bad5b596647388tomee# See the License for the specific language governing permissions
4ae67516a1d5dc4a5dbc761762bad5b596647388tomee# and limitations under the License.
4ae67516a1d5dc4a5dbc761762bad5b596647388tomee#
4ae67516a1d5dc4a5dbc761762bad5b596647388tomee# When distributing Covered Code, include this CDDL HEADER in each
4ae67516a1d5dc4a5dbc761762bad5b596647388tomee# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
4ae67516a1d5dc4a5dbc761762bad5b596647388tomee# If applicable, add the following below this CDDL HEADER, with the
4ae67516a1d5dc4a5dbc761762bad5b596647388tomee# fields enclosed by brackets "[]" replaced with your own identifying
4ae67516a1d5dc4a5dbc761762bad5b596647388tomee# information: Portions Copyright [yyyy] [name of copyright owner]
4ae67516a1d5dc4a5dbc761762bad5b596647388tomee#
4ae67516a1d5dc4a5dbc761762bad5b596647388tomee# CDDL HEADER END
4ae67516a1d5dc4a5dbc761762bad5b596647388tomee#
4ae67516a1d5dc4a5dbc761762bad5b596647388tomee#
4ae67516a1d5dc4a5dbc761762bad5b596647388tomee#
4ae67516a1d5dc4a5dbc761762bad5b596647388tomee# Copyright 2010 Sun Microsystems, Inc. All rights reserved.
4ae67516a1d5dc4a5dbc761762bad5b596647388tomee# Use is subject to license terms.
4ae67516a1d5dc4a5dbc761762bad5b596647388tomee#
4ae67516a1d5dc4a5dbc761762bad5b596647388tomee
4ae67516a1d5dc4a5dbc761762bad5b596647388tomeePROG= ldmad
4ae67516a1d5dc4a5dbc761762bad5b596647388tomeeMANIFEST= ldoms-agents.xml
4ae67516a1d5dc4a5dbc761762bad5b596647388tomeeSVCMETHOD= ldoms-agents
4ae67516a1d5dc4a5dbc761762bad5b596647388tomee
4ae67516a1d5dc4a5dbc761762bad5b596647388tomeeinclude ../Makefile.cmd
4ae67516a1d5dc4a5dbc761762bad5b596647388tomee
4ae67516a1d5dc4a5dbc761762bad5b596647388tomee
4ae67516a1d5dc4a5dbc761762bad5b596647388tomeeLOCAL_SRCS= ldmad.c \
4ae67516a1d5dc4a5dbc761762bad5b596647388tomee ldma_log.c \
4ae67516a1d5dc4a5dbc761762bad5b596647388tomee ldma_device.c \
4ae67516a1d5dc4a5dbc761762bad5b596647388tomee ldma_system.c \
4ae67516a1d5dc4a5dbc761762bad5b596647388tomee ldma_dio.c \
4ae67516a1d5dc4a5dbc761762bad5b596647388tomee mdesc_lib.c
4ae67516a1d5dc4a5dbc761762bad5b596647388tomee
4ae67516a1d5dc4a5dbc761762bad5b596647388tomeeLOCAL_OBJS= $(LOCAL_SRCS:%.c=%.o)
4ae67516a1d5dc4a5dbc761762bad5b596647388tomee
4ae67516a1d5dc4a5dbc761762bad5b596647388tomeeCOMMONBASE = ../../common
4ae67516a1d5dc4a5dbc761762bad5b596647388tomee
4ae67516a1d5dc4a5dbc761762bad5b596647388tomeeCOMMON_SRCS = mdesc_findname.c \
4ae67516a1d5dc4a5dbc761762bad5b596647388tomee mdesc_findnodeprop.c \
4ae67516a1d5dc4a5dbc761762bad5b596647388tomee mdesc_fini.c \
4ae67516a1d5dc4a5dbc761762bad5b596647388tomee mdesc_getpropval.c \
4ae67516a1d5dc4a5dbc761762bad5b596647388tomee mdesc_getpropstr.c \
4ae67516a1d5dc4a5dbc761762bad5b596647388tomee mdesc_init_intern.c \
4ae67516a1d5dc4a5dbc761762bad5b596647388tomee mdesc_nodecount.c \
4ae67516a1d5dc4a5dbc761762bad5b596647388tomee mdesc_rootnode.c \
4ae67516a1d5dc4a5dbc761762bad5b596647388tomee mdesc_scandag.c
4ae67516a1d5dc4a5dbc761762bad5b596647388tomee
4ae67516a1d5dc4a5dbc761762bad5b596647388tomeeCOMMON_OBJS = $(COMMON_SRCS:%.c=%.o)
4ae67516a1d5dc4a5dbc761762bad5b596647388tomee
4ae67516a1d5dc4a5dbc761762bad5b596647388tomeeOBJS = $(LOCAL_OBJS) $(COMMON_OBJS)
4ae67516a1d5dc4a5dbc761762bad5b596647388tomeeSRCS = $(LOCAL_SRCS) $(COMMON_SRCS:%.c=$(COMMONBASE)/mdesc/%.c)
4ae67516a1d5dc4a5dbc761762bad5b596647388tomee
4ae67516a1d5dc4a5dbc761762bad5b596647388tomeeROOTCMDDIR= $(ROOTLIB)/ldoms
4ae67516a1d5dc4a5dbc761762bad5b596647388tomeeROOTMANIFESTDIR= $(ROOTSVCPLATFORMSUN4V)
4ae67516a1d5dc4a5dbc761762bad5b596647388tomee$(ROOTMANIFEST) := FILEMODE= 444
4ae67516a1d5dc4a5dbc761762bad5b596647388tomee
4d0eb50e691de4c20b1dd9976ad6839fede8a42dRichard PALOLDLIBS += -lds -ldladm -ldevinfo -lpri
4ae67516a1d5dc4a5dbc761762bad5b596647388tomeeINCS += -I$(ROOT)/usr/platform/sun4v/include/sys
4ae67516a1d5dc4a5dbc761762bad5b596647388tomeeINCS += -I$(SRC)/uts/sun4v
4ae67516a1d5dc4a5dbc761762bad5b596647388tomeeCPPFLAGS += $(INCS)
4ae67516a1d5dc4a5dbc761762bad5b596647388tomeeC99MODE = $(C99_ENABLE)
4ae67516a1d5dc4a5dbc761762bad5b596647388tomee
4ae67516a1d5dc4a5dbc761762bad5b596647388tomeeLINTFLAGS += -erroff=E_BAD_PTR_CAST_ALIGN
4ae67516a1d5dc4a5dbc761762bad5b596647388tomee
4ae67516a1d5dc4a5dbc761762bad5b596647388tomee.KEEP_STATE:
4ae67516a1d5dc4a5dbc761762bad5b596647388tomee
4ae67516a1d5dc4a5dbc761762bad5b596647388tomeeall: $(PROG)
4ae67516a1d5dc4a5dbc761762bad5b596647388tomee
4ae67516a1d5dc4a5dbc761762bad5b596647388tomee$(PROG): $(OBJS)
4ae67516a1d5dc4a5dbc761762bad5b596647388tomee $(CC) -o $@ $(OBJS) $(LDFLAGS) $(LDLIBS)
4ae67516a1d5dc4a5dbc761762bad5b596647388tomee $(POST_PROCESS)
4ae67516a1d5dc4a5dbc761762bad5b596647388tomee
4ae67516a1d5dc4a5dbc761762bad5b596647388tomeeinstall: all .WAIT $(ROOTCMD) $(ROOTMANIFEST) $(ROOTSVCMETHOD)
4ae67516a1d5dc4a5dbc761762bad5b596647388tomee
4ae67516a1d5dc4a5dbc761762bad5b596647388tomeecheck: $(CHKMANIFEST)
4ae67516a1d5dc4a5dbc761762bad5b596647388tomee
4ae67516a1d5dc4a5dbc761762bad5b596647388tomeelint: lint_SRCS
4ae67516a1d5dc4a5dbc761762bad5b596647388tomee
4ae67516a1d5dc4a5dbc761762bad5b596647388tomeeclean:
4ae67516a1d5dc4a5dbc761762bad5b596647388tomee $(RM) $(PROG) $(OBJS) $(LINT_FILES)
4ae67516a1d5dc4a5dbc761762bad5b596647388tomee
4ae67516a1d5dc4a5dbc761762bad5b596647388tomeeinclude ../Makefile.targ
4ae67516a1d5dc4a5dbc761762bad5b596647388tomee
4ae67516a1d5dc4a5dbc761762bad5b596647388tomee%.o: $(COMMONBASE)/mdesc/%.c
4ae67516a1d5dc4a5dbc761762bad5b596647388tomee $(COMPILE.c) -o $@ $<
4ae67516a1d5dc4a5dbc761762bad5b596647388tomee $(POST_PROCESS_O)
4ae67516a1d5dc4a5dbc761762bad5b596647388tomee
4ae67516a1d5dc4a5dbc761762bad5b596647388tomee