Makefile revision 8793b36b40d14ad0a0fecc97738dc118a928f46c
0N/A#
0N/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 (the "License").
0N/A# You may not use this file except in compliance 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]
0N/A#
0N/A# CDDL HEADER END
0N/A#
0N/A#
0N/A# Copyright 2008 Sun Microsystems, Inc. All rights reserved.
0N/A# Use is subject to license terms.
0N/A#
0N/A# cmd/cmd-inet/usr.lib/in.dhcpd/Makefile
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 = 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
0N/ACPPFLAGS += -DNDEBUG -DNPROBE -D_REENTRANT -I./ -I$(CMN_DIR)
0N/A#
0N/A# -erroff=E_BAD_FORMAT_STR2 added to workaround bug 6696366
0N/A#
0N/ALINTFLAGS += -u -erroff=E_BAD_FORMAT_STR2
0N/ALDFLAGS += -L$(NSU_DIR) -R/usr/lib/inet/dhcp/nsu $(MAPFILE.NGB:%=-M%)
0N/ALDLIBS += $(NSU_DIR)/rfc2136.so.1 -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.
#
#CPPFLAGS += -DDEBUG # if used, remove -DNDEBUG above
#CPPFLAGS += -DTNF_DEBUG
#COPTFLAG = -g
#COPTFLAG += -xprofile=func
# 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) $(MAPFILE.NGB)
$(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)
$(POFILE): $(POFILES)
$(RM) $@
$(CAT) $(POFILES) > $@
check: $(CHKMANIFEST)
clean:
$(RM) $(OBJS)
lint: lint_SRCS
include ../../../Makefile.targ