1dbed73cbSSangeeta Misra# 2dbed73cbSSangeeta Misra# CDDL HEADER START 3dbed73cbSSangeeta Misra# 4dbed73cbSSangeeta Misra# The contents of this file are subject to the terms of the 5dbed73cbSSangeeta Misra# Common Development and Distribution License (the "License"). 6dbed73cbSSangeeta Misra# You may not use this file except in compliance with the License. 7dbed73cbSSangeeta Misra# 8dbed73cbSSangeeta Misra# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE 9dbed73cbSSangeeta Misra# or http://www.opensolaris.org/os/licensing. 10dbed73cbSSangeeta Misra# See the License for the specific language governing permissions 11dbed73cbSSangeeta Misra# and limitations under the License. 12dbed73cbSSangeeta Misra# 13dbed73cbSSangeeta Misra# When distributing Covered Code, include this CDDL HEADER in each 14dbed73cbSSangeeta Misra# file and include the License file at usr/src/OPENSOLARIS.LICENSE. 15dbed73cbSSangeeta Misra# If applicable, add the following below this CDDL HEADER, with the 16dbed73cbSSangeeta Misra# fields enclosed by brackets "[]" replaced with your own identifying 17dbed73cbSSangeeta Misra# information: Portions Copyright [yyyy] [name of copyright owner] 18dbed73cbSSangeeta Misra# 19dbed73cbSSangeeta Misra# CDDL HEADER END 20dbed73cbSSangeeta Misra# 21a9cb953cSSangeeta Misra# Copyright (c) 2009, 2010, Oracle and/or its affiliates. All rights reserved. 22dbed73cbSSangeeta Misra# 23dbed73cbSSangeeta Misra 24dbed73cbSSangeeta MisraILBD= ilbd 25dbed73cbSSangeeta MisraPROG= $(ILBD) 26dbed73cbSSangeeta MisraMANIFEST= ilbd.xml 27dbed73cbSSangeeta Misra 28dbed73cbSSangeeta MisraILBD_OBJS= ilbd_main.o ilbd_support.o ilbd_sg.o ilbd_rules.o ilbd_hc.o \ 29dbed73cbSSangeeta Misra ilbd_nat.o ilbd_scf.o 30dbed73cbSSangeeta MisraILBD_SRCS= $(ILBD_OBJS:%.o=%.c) 31dbed73cbSSangeeta MisraHDRS= ilbd.h 32dbed73cbSSangeeta Misra 33dbed73cbSSangeeta MisraLIB_INC= $(SRC)/lib/libilb/common 34dbed73cbSSangeeta Misra 353c112a2bSEric TaylorOBJS= $(ILBD_OBJS) 363c112a2bSEric TaylorSRCS= $(ILBD_SRCS) 37dbed73cbSSangeeta Misra 38dbed73cbSSangeeta MisraILBSUBDIRS= ilb 39dbed73cbSSangeeta Misra 40dbed73cbSSangeeta Misrainclude ../../../Makefile.cmd 41a9cb953cSSangeeta Misrainclude ../../../Makefile.ctf 42dbed73cbSSangeeta Misrainclude ../../Makefile.cmd-inet 43dbed73cbSSangeeta Misra 44dbed73cbSSangeeta MisraROOTMANIFESTDIR= $(ROOTSVCNETWORK)/loadbalancer 45dbed73cbSSangeeta Misra 46dbed73cbSSangeeta MisraCHECKHDRS= $(HDRS:%.h=%.check) 47dbed73cbSSangeeta Misra 48dbed73cbSSangeeta MisraCPPFLAGS += -D_FILE_OFFSET_BITS=64 -I$(CMDINETCOMMONDIR) -D_REENTRANT 49dbed73cbSSangeeta MisraCPPFLAGS += -I$(LIB_INC) 50dbed73cbSSangeeta MisraCPPFLAGS += -I$(SRC)/uts/common 51dbed73cbSSangeeta Misra 52*7014882cSRichard LoweCERRWARN += -_gcc=-Wno-switch 53*7014882cSRichard LoweCERRWARN += -_gcc=-Wno-uninitialized 54*7014882cSRichard LoweCERRWARN += -_gcc=-Wno-unused-label 55*7014882cSRichard Lowe 56dbed73cbSSangeeta MisraC99MODE = $(C99_ENABLE) 57dbed73cbSSangeeta Misra 58dbed73cbSSangeeta Misra# I18n 59dbed73cbSSangeeta MisraPOFILE = $(ILBD).po 60dbed73cbSSangeeta MisraPOFILES = $(ILBD_SRCS:%.c=%.po) 61dbed73cbSSangeeta Misra 62dbed73cbSSangeeta Misraall:= TARGET= all 63dbed73cbSSangeeta Misrainstall:= TARGET= install 64dbed73cbSSangeeta Misraclean:= TARGET= clean 65dbed73cbSSangeeta Misraclobber:= TARGET= clobber 66dbed73cbSSangeeta Misralint:= TARGET= lint 67dbed73cbSSangeeta Misra 68dbed73cbSSangeeta Misra 693c112a2bSEric TaylorLDLIBS += -lcmdutils -lsocket -lsecdb -lnsl -lilb -lscf -linetutil -lbsm 70dbed73cbSSangeeta Misra 71dbed73cbSSangeeta Misra.KEEP_STATE: 72dbed73cbSSangeeta Misra 73dbed73cbSSangeeta Misraall: $(PROG) 74dbed73cbSSangeeta Misra 75dbed73cbSSangeeta Misra$(ILBD): $(OBJS) 76dbed73cbSSangeeta Misra $(LINK.c) $(OBJS) -o $@ $(LDLIBS) $(CTFMERGE_HOOK) 77dbed73cbSSangeeta Misra $(POST_PROCESS) 78dbed73cbSSangeeta Misra 79dbed73cbSSangeeta Misrainclude ../Makefile.lib 80dbed73cbSSangeeta Misra 81dbed73cbSSangeeta Misrainstall: all $(ROOTLIBINETPROG) $(ETCILBDFILES) $(ROOTMANIFEST) 82dbed73cbSSangeeta Misra 83dbed73cbSSangeeta Misracheck: $(CHKMANIFEST) $(CHECKHDRS) 84dbed73cbSSangeeta Misra 85dbed73cbSSangeeta Misraclean: 86dbed73cbSSangeeta Misra $(RM) $(OBJS) 87dbed73cbSSangeeta Misra 88dbed73cbSSangeeta Misralint: 89dbed73cbSSangeeta Misra $(LINT.c) $(ILBD_SRCS) $(LDLIBS) 90dbed73cbSSangeeta Misra 91dbed73cbSSangeeta Misra$(POFILE): $(POFILES) 92dbed73cbSSangeeta Misra $(RM) $@ 93dbed73cbSSangeeta Misra $(CAT) $(POFILES) > $@ 94dbed73cbSSangeeta Misra 95dbed73cbSSangeeta Misraall install clean clobber lint: $(ILBSUBDIRS) 96dbed73cbSSangeeta Misra 97dbed73cbSSangeeta Misrainclude ../../../Makefile.targ 98dbed73cbSSangeeta Misra 99dbed73cbSSangeeta Misra$(ILBSUBDIRS): FRC 100dbed73cbSSangeeta Misra @cd $@; pwd; $(MAKE) $(TARGET) 101dbed73cbSSangeeta Misra 102dbed73cbSSangeeta MisraFRC: 103