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