Makefile revision 7c478bd95313f5f23a4c958a745db2134aa03244
0N/A#
2362N/A# CDDL HEADER START
0N/A#
0N/A# The contents of this file are subject to the terms of the
0N/A# Common Development and Distribution License, Version 1.0 only
0N/A# (the "License"). You may not use this file except in compliance
0N/A# with the License.
0N/A#
0N/A# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
0N/A# or http://www.opensolaris.org/os/licensing.
0N/A# See the License for the specific language governing permissions
0N/A# and limitations under the License.
0N/A#
0N/A# When distributing Covered Code, include this CDDL HEADER in each
0N/A# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
0N/A# If applicable, add the following below this CDDL HEADER, with the
0N/A# fields enclosed by brackets "[]" replaced with your own identifying
0N/A# information: Portions Copyright [yyyy] [name of copyright owner]
2362N/A#
2362N/A# CDDL HEADER END
2362N/A#
0N/A#
0N/A# Copyright 2005 Sun Microsystems, Inc. All rights reserved.
0N/A# Use is subject to license terms.
0N/A#
0N/A# ident "%Z%%M% %I% %E% SMI"
0N/A#
0N/A# cmd/cmd-inet/usr.lib/in.dhcpd/%M%
0N/A#
0N/A
0N/ACMN_DIR = $(SRC)/common/net/dhcp
0N/ANSU_DIR = $(ROOTLIBINET)/dhcp/nsu
0N/A
0N/APROG = in.dhcpd
0N/AMANIFEST= dhcp-server.xml
0N/A
0N/ALOCAL_OBJS = bootp.o dhcp.o dhcptab.o encode.o generic.o hash.o icmp.o \
0N/A interfaces.o logging.o main.o misc.o per_dnet.o relay.o
0N/ALOCAL_SRCS = $(LOCAL_OBJS:%.o=%.c)
0N/A
0N/ACMN_OBJS = scan.o ipv4_sum.o
0N/ACMN_SRCS = $(CMN_OBJS:%.o=$(CMN_DIR)/%.c)
0N/A
0N/ASRCS = $(LOCAL_SRCS) $(CMN_SRCS)
0N/AOBJS = $(LOCAL_OBJS) $(CMN_OBJS)
0N/A
0N/Ainclude ../../../Makefile.cmd
0N/A
0N/AROOTMANIFESTDIR= $(ROOTSVCNETWORK)
0N/A$(ROOTMANIFEST) := FILEMODE= 444
0N/A
0N/ACPPFLAGS += -DNDEBUG -DNPROBE -D_REENTRANT -I./ -I$(CMN_DIR)
0N/ALINTFLAGS += -u
0N/ALDFLAGS += -L$(NSU_DIR) -R/usr/lib/inet/dhcp/nsu
0N/ALDLIBS += $(NSU_DIR)/rfc2136.so.1 -lrt -ldhcpsvc -ldhcputil -linetutil \
0N/A -lsocket -lnsl -lmtmalloc -lresolv
0N/Alint := LDLIBS = $(LDLIBS.cmd) -ldhcpsvc -ldhcputil -linetutil -lsocket -lnsl
0N/A
0N/A#
0N/A# Debugging support; toggle on if needed.
0N/A#
0N/A#CPPFLAGS += -DDEBUG # if used, remove -DNDEBUG above
0N/A#CPPFLAGS += -DTNF_DEBUG
0N/A#COPTFLAG = -g
0N/A#COPTFLAG += -xprofile=func
0N/A
0N/A# for messaging catalog. No messages are present in CMN_DIR sources.
POFILES = $(LOCAL_OBJS:%.o=%.po)
XGETFLAGS += -a -x in.dhcpd.xcl
.PARALLEL: $(OBJS)
.WAIT: $(PROG)
.KEEP_STATE:
all: $(PROG)
$(PROG): $(OBJS)
$(LINK.c) $(OBJS) -o $@ $(LDLIBS)
$(POST_PROCESS)
include ../Makefile.lib
install: all $(ROOTLIBINETPROG) $(ROOTMANIFEST)
%.o: $(CMN_DIR)/%.c
$(COMPILE.c) $(OUTPUT_OPTION) $<
$(POST_PROCESS_O)
$(ROOTMANIFEST): $(ROOTMANIFESTDIR)
$(ROOTMANIFESTDIR):
$(INS.dir)
$(ROOTMANIFESTDIR)/%: %
$(INS.file)
$(POFILE): $(POFILES)
$(RM) $@
$(CAT) $(POFILES) > $@
check: $(CHKMANIFEST)
clean:
$(RM) $(OBJS)
lint: lint_SRCS
include ../../../Makefile.targ