Makefile revision dbed73cbda2229fd1aa6dc5743993cae7f0a7ee9
606N/A#
606N/A# CDDL HEADER START
1088N/A#
606N/A# The contents of this file are subject to the terms of the
1634N/A# Common Development and Distribution License (the "License").
606N/A# You may not use this file except in compliance with the License.
606N/A#
919N/A# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
919N/A# or http://www.opensolaris.org/os/licensing.
919N/A# See the License for the specific language governing permissions
919N/A# and limitations under the License.
919N/A#
919N/A# When distributing Covered Code, include this CDDL HEADER in each
919N/A# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
919N/A# If applicable, add the following below this CDDL HEADER, with the
919N/A# fields enclosed by brackets "[]" replaced with your own identifying
919N/A# information: Portions Copyright [yyyy] [name of copyright owner]
919N/A#
919N/A# CDDL HEADER END
919N/A#
919N/A# Copyright 2009 Sun Microsystems, Inc. All rights reserved.
919N/A# Use is subject to license terms.
919N/A#
919N/A
606N/APROG= ilbadm
606N/A
606N/AILB_OBJS = ilbadm.o ilbadm_sg.o ilbadm_rules.o ilbadm_hc.o
606N/AILB_OBJS += ilbadm_subr.o ilbadm_import.o ilbadm_nat.o ilbadm_stats.o
606N/ALIST_OBJS = list.o
606N/AOBJS = $(ILB_OBJS) $(LIST_OBJS)
606N/A
1634N/AILB_SRCS= $(ILB_OBJS:.o=.c)
606N/ALIST_SRCS= $(LIST_OBJS:%.o=../../../../uts/common/os/%.c)
911N/A
1634N/ASRCS= $(ILB_SRC) $(LIST_SRCS)
1634N/A
1634N/Ainclude ../../../Makefile.cmd
911N/Ainclude ../../Makefile.cmd-inet
606N/A
1549N/ALDLIBS += -lsocket -lnsl -lilb -linetutil -lkstat
606N/ACPPFLAGS += -I$(SRC)/lib/libilb/common -I$(SRC)/uts/common
606N/A
606N/AC99MODE = $(C99_ENABLE)
606N/A
606N/A# for debug:
606N/ACFLAGS = -g
606N/ASTRIP_STABS= :
606N/A
606N/APOFILES = $(ILB_OBJS:%.o=%.po)
606N/APOFILE = $(PROG)_all.po
606N/A
1097N/A.KEEP_STATE:
1097N/A.PARALLEL:
1549N/A
606N/Aall: $(PROG)
910N/A
910N/A$(PROG): $(OBJS)
910N/A $(LINK.c) -o $@ $(OBJS) $(LDLIBS)
606N/A $(POST_PROCESS)
606N/A
910N/A$(POFILE): $(POFILES)
1265N/A $(RM) $@
1183N/A cat $(POFILES) > $@
install: all $(ROOTUSRSBINPROG)
clean:
$(RM) $(OBJS) $(POFILES)
lint: $(ILB_SRCS)
$(LINT.c) $(ILB_SRCS) $(LDLIBS)
check: $(ILB_SRCS) $(PROG).h
$(CSTYLE) -pP $(ILB_SRCS) $(PROG).h
$(HDRCHK) $(PROG).h
include ../../../Makefile.targ
# the below is needed to get list.o built
%.o: ../../../../uts/common/os/%.c
$(COMPILE.c) -o $@ $<
$(POST_PROCESS_O)