c330021bf3f45cbf187fa644781e67f7e470a58awrowe#
05cd8b63829a8a9047076ffbce8dd6cd1cb2db92thommay# CDDL HEADER START
c330021bf3f45cbf187fa644781e67f7e470a58awrowe#
c330021bf3f45cbf187fa644781e67f7e470a58awrowe# The contents of this file are subject to the terms of the
c330021bf3f45cbf187fa644781e67f7e470a58awrowe# Common Development and Distribution License (the "License").
c330021bf3f45cbf187fa644781e67f7e470a58awrowe# You may not use this file except in compliance with the License.
2a6c49cfaef5979a5a06098f3ce987cd76769409manoj#
af4c982a7cf4515f124935f99a329744035fc699slive# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
af4c982a7cf4515f124935f99a329744035fc699slive# or http://www.opensolaris.org/os/licensing.
af4c982a7cf4515f124935f99a329744035fc699slive# See the License for the specific language governing permissions
af4c982a7cf4515f124935f99a329744035fc699slive# and limitations under the License.
af4c982a7cf4515f124935f99a329744035fc699slive#
af4c982a7cf4515f124935f99a329744035fc699slive# When distributing Covered Code, include this CDDL HEADER in each
af4c982a7cf4515f124935f99a329744035fc699slive# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
f610c7c704235bc327dbe9b62982f5b3f8e30a77wrowe# If applicable, add the following below this CDDL HEADER, with the
f610c7c704235bc327dbe9b62982f5b3f8e30a77wrowe# fields enclosed by brackets "[]" replaced with your own identifying
abdf88f96a56cf5c242d3195c493dbb8a7355d03wrowe# information: Portions Copyright [yyyy] [name of copyright owner]
f610c7c704235bc327dbe9b62982f5b3f8e30a77wrowe#
10270f6f94b2069d0d357805c140a9897449b9ccianh# CDDL HEADER END
4b62424416882687387923b3130b96241503cbe0jerenkrantz#
5ca8e11fadb6f7a8d9d0367c1800205c99d4bcd6jerenkrantz# Copyright (c) 2009, 2010, Oracle and/or its affiliates. All rights reserved.
5ca8e11fadb6f7a8d9d0367c1800205c99d4bcd6jerenkrantz#
45b0e1c775c1cfed6473c9e5304179ccb9609f53stoddard
dbec4658981e4f9127e8676457c28d42932be7cdtrawickILBD= ilbd
1b7e9aeb9867a1c94e24e8ae491d2dfcd0d225e3jerenkrantzPROG= $(ILBD)
f4cb04eb78da02a38fcdd87489dc7b660107d55fjerenkrantzMANIFEST= ilbd.xml
f4cb04eb78da02a38fcdd87489dc7b660107d55fjerenkrantz
a3f7a6fb4aedec8585efd990cf99d3917b99a0d3jimILBD_OBJS= ilbd_main.o ilbd_support.o ilbd_sg.o ilbd_rules.o ilbd_hc.o \
a3f7a6fb4aedec8585efd990cf99d3917b99a0d3jim ilbd_nat.o ilbd_scf.o
a3f7a6fb4aedec8585efd990cf99d3917b99a0d3jimILBD_SRCS= $(ILBD_OBJS:%.o=%.c)
9fdeef48d40b7dd34c57d74fcc50a0c6924a4f1dstoddardHDRS= ilbd.h
1e82fcef33ad0da9e76fbb1f5e440b691a8b3551jerenkrantz
9fdeef48d40b7dd34c57d74fcc50a0c6924a4f1dstoddardLIB_INC= $(SRC)/lib/libilb/common
9fdeef48d40b7dd34c57d74fcc50a0c6924a4f1dstoddard
9fdeef48d40b7dd34c57d74fcc50a0c6924a4f1dstoddardOBJS= $(ILBD_OBJS)
9fdeef48d40b7dd34c57d74fcc50a0c6924a4f1dstoddardSRCS= $(ILBD_SRCS)
9fdeef48d40b7dd34c57d74fcc50a0c6924a4f1dstoddard
9fdeef48d40b7dd34c57d74fcc50a0c6924a4f1dstoddardILBSUBDIRS= ilb
9fdeef48d40b7dd34c57d74fcc50a0c6924a4f1dstoddard
9fdeef48d40b7dd34c57d74fcc50a0c6924a4f1dstoddardinclude ../../../Makefile.cmd
9fdeef48d40b7dd34c57d74fcc50a0c6924a4f1dstoddardinclude ../../../Makefile.ctf
9fdeef48d40b7dd34c57d74fcc50a0c6924a4f1dstoddardinclude ../../Makefile.cmd-inet
9fdeef48d40b7dd34c57d74fcc50a0c6924a4f1dstoddard
9fdeef48d40b7dd34c57d74fcc50a0c6924a4f1dstoddardROOTMANIFESTDIR= $(ROOTSVCNETWORK)/loadbalancer
9fdeef48d40b7dd34c57d74fcc50a0c6924a4f1dstoddard
9fdeef48d40b7dd34c57d74fcc50a0c6924a4f1dstoddardCHECKHDRS= $(HDRS:%.h=%.check)
9fdeef48d40b7dd34c57d74fcc50a0c6924a4f1dstoddard
9fdeef48d40b7dd34c57d74fcc50a0c6924a4f1dstoddardCPPFLAGS += -D_FILE_OFFSET_BITS=64 -I$(CMDINETCOMMONDIR) -D_REENTRANT
9fdeef48d40b7dd34c57d74fcc50a0c6924a4f1dstoddardCPPFLAGS += -I$(LIB_INC)
9fdeef48d40b7dd34c57d74fcc50a0c6924a4f1dstoddardCPPFLAGS += -I$(SRC)/uts/common
9fdeef48d40b7dd34c57d74fcc50a0c6924a4f1dstoddard
1e82fcef33ad0da9e76fbb1f5e440b691a8b3551jerenkrantzCERRWARN += -_gcc=-Wno-switch
1e82fcef33ad0da9e76fbb1f5e440b691a8b3551jerenkrantzCERRWARN += -_gcc=-Wno-uninitialized
1e82fcef33ad0da9e76fbb1f5e440b691a8b3551jerenkrantzCERRWARN += -_gcc=-Wno-unused-label
1e82fcef33ad0da9e76fbb1f5e440b691a8b3551jerenkrantz
a3f7a6fb4aedec8585efd990cf99d3917b99a0d3jimC99MODE = $(C99_ENABLE)
f95a0b59eb24c631f15bd83e20c6cf823c432d83trawick
f95a0b59eb24c631f15bd83e20c6cf823c432d83trawick# I18n
f95a0b59eb24c631f15bd83e20c6cf823c432d83trawickPOFILE = $(ILBD).po
c95a8116bde20ab75f2e54d0e867bdf2e13643c3jimPOFILES = $(ILBD_SRCS:%.c=%.po)
7718f3d5b4da70eb063877f5300ee361435910f4nd
13402b2193f52031b2acfbee2b0965e02f3f29b4wroweall:= TARGET= all
f95a0b59eb24c631f15bd83e20c6cf823c432d83trawickinstall:= TARGET= install
f95a0b59eb24c631f15bd83e20c6cf823c432d83trawickclean:= TARGET= clean
418f39e60a288f855ec033b566744489c3bbbf39trawickclobber:= TARGET= clobber
cc22a72861c58dda7f3768613aec864e4c4e0353strikerlint:= TARGET= lint
f95a0b59eb24c631f15bd83e20c6cf823c432d83trawick
ddafc111b94558ef4e2d7357ceda623315566ce3slive
ddafc111b94558ef4e2d7357ceda623315566ce3sliveLDLIBS += -lcmdutils -lsocket -lsecdb -lnsl -lilb -lscf -linetutil -lbsm
7718f3d5b4da70eb063877f5300ee361435910f4nd
ddafc111b94558ef4e2d7357ceda623315566ce3slive.KEEP_STATE:
93f189f1198f539d3cfa75a15b23dcde60ee35ffrbb
93f189f1198f539d3cfa75a15b23dcde60ee35ffrbball: $(PROG)
bca5b27d271b6e1690134a83963424b9825d93bdstriker
bca5b27d271b6e1690134a83963424b9825d93bdstriker$(ILBD): $(OBJS)
7718f3d5b4da70eb063877f5300ee361435910f4nd $(LINK.c) $(OBJS) -o $@ $(LDLIBS) $(CTFMERGE_HOOK)
13402b2193f52031b2acfbee2b0965e02f3f29b4wrowe $(POST_PROCESS)
13402b2193f52031b2acfbee2b0965e02f3f29b4wrowe
38d2c5d41cdb5eb28668d0290b59f8c76ae2a4bfjiminclude ../Makefile.lib
38d2c5d41cdb5eb28668d0290b59f8c76ae2a4bfjim
38d2c5d41cdb5eb28668d0290b59f8c76ae2a4bfjiminstall: all $(ROOTLIBINETPROG) $(ETCILBDFILES) $(ROOTMANIFEST)
93f189f1198f539d3cfa75a15b23dcde60ee35ffrbb
f4cb04eb78da02a38fcdd87489dc7b660107d55fjerenkrantzcheck: $(CHKMANIFEST) $(CHECKHDRS)
f4cb04eb78da02a38fcdd87489dc7b660107d55fjerenkrantz
f4cb04eb78da02a38fcdd87489dc7b660107d55fjerenkrantzclean:
f4cb04eb78da02a38fcdd87489dc7b660107d55fjerenkrantz $(RM) $(OBJS)
f4cb04eb78da02a38fcdd87489dc7b660107d55fjerenkrantz
f4cb04eb78da02a38fcdd87489dc7b660107d55fjerenkrantzlint:
b9b0788ea79de3ee230ccb0abf93a0c2c08f6287lars $(LINT.c) $(ILBD_SRCS) $(LDLIBS)
f4cb04eb78da02a38fcdd87489dc7b660107d55fjerenkrantz
7718f3d5b4da70eb063877f5300ee361435910f4nd$(POFILE): $(POFILES)
38d2c5d41cdb5eb28668d0290b59f8c76ae2a4bfjim $(RM) $@
38d2c5d41cdb5eb28668d0290b59f8c76ae2a4bfjim $(CAT) $(POFILES) > $@
38d2c5d41cdb5eb28668d0290b59f8c76ae2a4bfjim
7718f3d5b4da70eb063877f5300ee361435910f4ndall install clean clobber lint: $(ILBSUBDIRS)
b9b0788ea79de3ee230ccb0abf93a0c2c08f6287lars
b9b0788ea79de3ee230ccb0abf93a0c2c08f6287larsinclude ../../../Makefile.targ
f4cb04eb78da02a38fcdd87489dc7b660107d55fjerenkrantz
f4cb04eb78da02a38fcdd87489dc7b660107d55fjerenkrantz$(ILBSUBDIRS): FRC
7718f3d5b4da70eb063877f5300ee361435910f4nd @cd $@; pwd; $(MAKE) $(TARGET)
1af5c0e25a649bb298e25ddfa5418fa18bdcb107aaron
38d2c5d41cdb5eb28668d0290b59f8c76ae2a4bfjimFRC:
82455c2e3b6991846fbcbf0c9e41f57dbc681217brianp