Makefile revision dbed73cbda2229fd1aa6dc5743993cae7f0a7ee9
03831d35f7499c87d51205817c93e9a8d42c4baestevel#
03831d35f7499c87d51205817c93e9a8d42c4baestevel# CDDL HEADER START
03831d35f7499c87d51205817c93e9a8d42c4baestevel#
03831d35f7499c87d51205817c93e9a8d42c4baestevel# The contents of this file are subject to the terms of the
f808c858fa61e7769218966759510a8b1190dfcfraf# Common Development and Distribution License (the "License").
f808c858fa61e7769218966759510a8b1190dfcfraf# You may not use this file except in compliance with the License.
03831d35f7499c87d51205817c93e9a8d42c4baestevel#
03831d35f7499c87d51205817c93e9a8d42c4baestevel# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
03831d35f7499c87d51205817c93e9a8d42c4baestevel# or http://www.opensolaris.org/os/licensing.
03831d35f7499c87d51205817c93e9a8d42c4baestevel# See the License for the specific language governing permissions
03831d35f7499c87d51205817c93e9a8d42c4baestevel# and limitations under the License.
03831d35f7499c87d51205817c93e9a8d42c4baestevel#
03831d35f7499c87d51205817c93e9a8d42c4baestevel# When distributing Covered Code, include this CDDL HEADER in each
03831d35f7499c87d51205817c93e9a8d42c4baestevel# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
03831d35f7499c87d51205817c93e9a8d42c4baestevel# If applicable, add the following below this CDDL HEADER, with the
03831d35f7499c87d51205817c93e9a8d42c4baestevel# fields enclosed by brackets "[]" replaced with your own identifying
03831d35f7499c87d51205817c93e9a8d42c4baestevel# information: Portions Copyright [yyyy] [name of copyright owner]
03831d35f7499c87d51205817c93e9a8d42c4baestevel#
03831d35f7499c87d51205817c93e9a8d42c4baestevel# CDDL HEADER END
03831d35f7499c87d51205817c93e9a8d42c4baestevel#
03831d35f7499c87d51205817c93e9a8d42c4baestevel# Copyright 2009 Sun Microsystems, Inc. All rights reserved.
24fe0b3bf671e123467ce1df0b67cadd3614c8e4jmcp# Use is subject to license terms.
03831d35f7499c87d51205817c93e9a8d42c4baestevel#
03831d35f7499c87d51205817c93e9a8d42c4baestevel
03831d35f7499c87d51205817c93e9a8d42c4baestevelILBD= ilbd
03831d35f7499c87d51205817c93e9a8d42c4baestevelPROG= $(ILBD)
03831d35f7499c87d51205817c93e9a8d42c4baestevelMANIFEST= ilbd.xml
03831d35f7499c87d51205817c93e9a8d42c4baestevel
03831d35f7499c87d51205817c93e9a8d42c4baestevelILBD_OBJS= ilbd_main.o ilbd_support.o ilbd_sg.o ilbd_rules.o ilbd_hc.o \
03831d35f7499c87d51205817c93e9a8d42c4baestevel ilbd_nat.o ilbd_scf.o
03831d35f7499c87d51205817c93e9a8d42c4baestevelILBD_SRCS= $(ILBD_OBJS:%.o=%.c)
03831d35f7499c87d51205817c93e9a8d42c4baestevelHDRS= ilbd.h
03831d35f7499c87d51205817c93e9a8d42c4baestevel
03831d35f7499c87d51205817c93e9a8d42c4baestevelLIST_OBJS= list.o
03831d35f7499c87d51205817c93e9a8d42c4baestevelLIST_SRCS= $(LIST_OBJS:%.o=../../../uts/common/os/%.c)
03831d35f7499c87d51205817c93e9a8d42c4baestevel
03831d35f7499c87d51205817c93e9a8d42c4baestevelLIB_INC= $(SRC)/lib/libilb/common
03831d35f7499c87d51205817c93e9a8d42c4baestevel
03831d35f7499c87d51205817c93e9a8d42c4baestevelOBJS= $(ILBD_OBJS) $(LIST_OBJS)
03831d35f7499c87d51205817c93e9a8d42c4baestevelSRCS= $(ILBD_SRCS) $(LIST_SRCS)
03831d35f7499c87d51205817c93e9a8d42c4baestevel
03831d35f7499c87d51205817c93e9a8d42c4baestevelILBSUBDIRS= ilb
03831d35f7499c87d51205817c93e9a8d42c4baestevel
03831d35f7499c87d51205817c93e9a8d42c4baestevelinclude ../../../Makefile.cmd
03831d35f7499c87d51205817c93e9a8d42c4baestevelinclude ../../Makefile.cmd-inet
03831d35f7499c87d51205817c93e9a8d42c4baestevel
03831d35f7499c87d51205817c93e9a8d42c4baestevelROOTMANIFESTDIR= $(ROOTSVCNETWORK)/loadbalancer
f808c858fa61e7769218966759510a8b1190dfcfraf
f808c858fa61e7769218966759510a8b1190dfcfrafCHECKHDRS= $(HDRS:%.h=%.check)
f808c858fa61e7769218966759510a8b1190dfcfraf
03831d35f7499c87d51205817c93e9a8d42c4baestevelCPPFLAGS += -D_FILE_OFFSET_BITS=64 -I$(CMDINETCOMMONDIR) -D_REENTRANT
7014882c6a3672fd0e5d60200af8643ae53c5928Richard LoweCPPFLAGS += -I$(LIB_INC)
7014882c6a3672fd0e5d60200af8643ae53c5928Richard LoweCPPFLAGS += -I$(SRC)/uts/common
7014882c6a3672fd0e5d60200af8643ae53c5928Richard Lowe
7014882c6a3672fd0e5d60200af8643ae53c5928Richard LoweC99MODE = $(C99_ENABLE)
7014882c6a3672fd0e5d60200af8643ae53c5928Richard Lowe
7014882c6a3672fd0e5d60200af8643ae53c5928Richard Lowe# I18n
03831d35f7499c87d51205817c93e9a8d42c4baestevelPOFILE = $(ILBD).po
03831d35f7499c87d51205817c93e9a8d42c4baestevelPOFILES = $(ILBD_SRCS:%.c=%.po)
03831d35f7499c87d51205817c93e9a8d42c4baestevel
03831d35f7499c87d51205817c93e9a8d42c4baestevelall:= TARGET= all
03831d35f7499c87d51205817c93e9a8d42c4baestevelinstall:= TARGET= install
03831d35f7499c87d51205817c93e9a8d42c4baestevelclean:= TARGET= clean
24fe0b3bf671e123467ce1df0b67cadd3614c8e4jmcpclobber:= TARGET= clobber
03831d35f7499c87d51205817c93e9a8d42c4baestevellint:= TARGET= lint
03831d35f7499c87d51205817c93e9a8d42c4baestevel
03831d35f7499c87d51205817c93e9a8d42c4baestevel# used for debugging ONLY:
03831d35f7499c87d51205817c93e9a8d42c4baestevel
03831d35f7499c87d51205817c93e9a8d42c4baestevelCFLAGS = -g -K pic
03831d35f7499c87d51205817c93e9a8d42c4baestevelSTRIP_STABS= :
03831d35f7499c87d51205817c93e9a8d42c4baestevelCTFCVTFLAGS += -g
03831d35f7499c87d51205817c93e9a8d42c4baestevel
03831d35f7499c87d51205817c93e9a8d42c4baestevel
03831d35f7499c87d51205817c93e9a8d42c4baestevelLDLIBS += -lsocket -lsecdb -lnsl -lilb -lscf -linetutil -lbsm
03831d35f7499c87d51205817c93e9a8d42c4baestevel
03831d35f7499c87d51205817c93e9a8d42c4baestevel.KEEP_STATE:
03831d35f7499c87d51205817c93e9a8d42c4baestevel
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: