Makefile revision dbed73cbda2229fd1aa6dc5743993cae7f0a7ee9
729N/A#
729N/A# CDDL HEADER START
729N/A#
729N/A# The contents of this file are subject to the terms of the
729N/A# Common Development and Distribution License (the "License").
729N/A# You may not use this file except in compliance with the License.
729N/A#
729N/A# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
729N/A# or http://www.opensolaris.org/os/licensing.
729N/A# See the License for the specific language governing permissions
729N/A# and limitations under the License.
729N/A#
729N/A# When distributing Covered Code, include this CDDL HEADER in each
729N/A# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
729N/A# If applicable, add the following below this CDDL HEADER, with the
729N/A# fields enclosed by brackets "[]" replaced with your own identifying
729N/A# information: Portions Copyright [yyyy] [name of copyright owner]
729N/A#
729N/A# CDDL HEADER END
729N/A#
729N/A# Copyright 2009 Sun Microsystems, Inc. All rights reserved.
729N/A# Use is subject to license terms.
729N/A#
729N/A
729N/AILBD= ilbd
729N/APROG= $(ILBD)
729N/AMANIFEST= ilbd.xml
729N/A
729N/AILBD_OBJS= ilbd_main.o ilbd_support.o ilbd_sg.o ilbd_rules.o ilbd_hc.o \
729N/A ilbd_nat.o ilbd_scf.o
729N/AILBD_SRCS= $(ILBD_OBJS:%.o=%.c)
729N/AHDRS= ilbd.h
729N/A
729N/ALIST_OBJS= list.o
729N/ALIST_SRCS= $(LIST_OBJS:%.o=../../../uts/common/os/%.c)
729N/A
729N/ALIB_INC= $(SRC)/lib/libilb/common
729N/A
729N/AOBJS= $(ILBD_OBJS) $(LIST_OBJS)
729N/ASRCS= $(ILBD_SRCS) $(LIST_SRCS)
729N/A
729N/AILBSUBDIRS= ilb
729N/A
729N/Ainclude ../../../Makefile.cmd
729N/Ainclude ../../Makefile.cmd-inet
729N/A
729N/AROOTMANIFESTDIR= $(ROOTSVCNETWORK)/loadbalancer
729N/A
729N/ACHECKHDRS= $(HDRS:%.h=%.check)
729N/A
729N/ACPPFLAGS += -D_FILE_OFFSET_BITS=64 -I$(CMDINETCOMMONDIR) -D_REENTRANT
729N/ACPPFLAGS += -I$(LIB_INC)
729N/ACPPFLAGS += -I$(SRC)/uts/common
729N/A
729N/AC99MODE = $(C99_ENABLE)
729N/A
729N/A# I18n
729N/APOFILE = $(ILBD).po
729N/APOFILES = $(ILBD_SRCS:%.c=%.po)
729N/A
729N/Aall:= TARGET= all
729N/Ainstall:= TARGET= install
729N/Aclean:= TARGET= clean
729N/Aclobber:= TARGET= clobber
729N/Alint:= TARGET= lint
729N/A
729N/A# used for debugging ONLY:
729N/A
729N/ACFLAGS = -g -K pic
729N/ASTRIP_STABS= :
729N/ACTFCVTFLAGS += -g
729N/A
729N/A
729N/ALDLIBS += -lsocket -lsecdb -lnsl -lilb -lscf -linetutil -lbsm
729N/A
729N/A.KEEP_STATE:
729N/A
all: $(PROG)
$(ILBD): $(OBJS)
$(LINK.c) $(OBJS) -o $@ $(LDLIBS) $(CTFMERGE_HOOK)
$(POST_PROCESS)
include ../Makefile.lib
install: all $(ROOTLIBINETPROG) $(ETCILBDFILES) $(ROOTMANIFEST)
check: $(CHKMANIFEST) $(CHECKHDRS)
clean:
$(RM) $(OBJS)
lint:
$(LINT.c) $(ILBD_SRCS) $(LDLIBS)
$(POFILE): $(POFILES)
$(RM) $@
$(CAT) $(POFILES) > $@
all install clean clobber lint: $(ILBSUBDIRS)
include ../../../Makefile.targ
# the below is needed to get list.o built
%.o: ../../../../uts/common/os/%.c
$(COMPILE.c) -o $@ $<
$(POST_PROCESS_O)
$(ILBSUBDIRS): FRC
@cd $@; pwd; $(MAKE) $(TARGET)
FRC: