Home | History | Annotate | Download | only in src
      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 (the License).
      6 # You may not use this file except in compliance with the License.
      7 #
      8 # You can obtain a copy of the license at usr/src/CDDL.txt
      9 # or http://www.opensolaris.org/os/licensing.
     10 # See the License for the specific language governing permissions
     11 # and limitations under the License.
     12 #
     13 # When distributing Covered Code, include this CDDL HEADER in each
     14 # file and include the License file at usr/src/CDDL.txt.
     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]
     18 #
     19 # CDDL HEADER END
     20 #
     21 
     22 #
     23 # Copyright 2006 Sun Microsystems, Inc.  All rights reserved.
     24 # Use is subject to license terms.
     25 #
     26 # ident	"@(#)Makefile.ipc	1.4	08/05/20 SMI"
     27 #
     28 # Makefile.ipc: definitions for inter-process communication used between
     29 # commands and rgmd, pmfd, and fed.
     30 #
     31 # Note: this Makefile should always be included after Makefile.master
     32 # and after lib/Makefile.lib
     33 #
     34 
     35 #
     36 # The following line distinguishes between the use of
     37 # doors and rpc communication for libscha, libfe, and libpmf.
     38 #
     39 # To use doors, set RPC_IMPL= $(POUND_SIGN).
     40 # Then the RPC code will not  be used and doors will be used. 
     41 # This is required for supporting zones on S10.
     42 #
     43 # To use rpc code, set RPC_IMPL=
     44 #
     45 # Currently the rpc code is not used in Sun Cluster. Doors are used on all
     46 # platforms. However, we expect the Europa project to use both rpc and doors
     47 # code simultaneously, so we can't get rid of the rpc code. This mechanism
     48 # of choosing the implementation in the Makefile is a temporary hack to
     49 # allow us to ensure that the rpc build continues to work while we use
     50 # the doors-based approach.
     51 #
     52 $(SUNOS)RPC_IMPL=	$(POUND_SIGN)
     53 $(EUROPA)$(LINUX)RPC_IMPL=
     54 
     55 #
     56 # In addition to the macro for Makefiles, the C and C++ code needs to know
     57 # if it's using doors or rpc, so specify a command-line define also.
     58 # The value of the define is taken from the value of RPC_IMPL above.
     59 #
     60 CFLAGS.door=-DDOOR_IMPL=1
     61 $(RPC_IMPL)CFLAGS.door=-DDOOR_IMPL=0
     62 
     63 CFLAGS += $(CFLAGS.door)
     64 CFLAGS64 += $(CFLAGS.door)
     65 CL_CCFLAGS += $(CFLAGS.door)
     66 
     67 # Needed for some lint targets
     68 CPPFLAGS += $(CFLAGS.door)
     69 
     70 CCFLAGS += $(CFLAGS.door)
     71 
     72 #
     73 # If compiling for doors, we need to link with libdoor
     74 #
     75 DOOR_LDLIBS = -ldoor
     76 $(RPC_IMPL)DOOR_LDLIBS =
     77