Makefile revision 8793b36b40d14ad0a0fecc97738dc118a928f46c
7765ee8964c8ffd7faee9baa0412abeb1ef5b0a4Nick# CDDL HEADER START
7765ee8964c8ffd7faee9baa0412abeb1ef5b0a4Nick# The contents of this file are subject to the terms of the
7765ee8964c8ffd7faee9baa0412abeb1ef5b0a4Nick# Common Development and Distribution License (the "License").
7765ee8964c8ffd7faee9baa0412abeb1ef5b0a4Nick# You may not use this file except in compliance with the License.
7765ee8964c8ffd7faee9baa0412abeb1ef5b0a4Nick# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
7765ee8964c8ffd7faee9baa0412abeb1ef5b0a4Nick# See the License for the specific language governing permissions
7765ee8964c8ffd7faee9baa0412abeb1ef5b0a4Nick# and limitations under the License.
7765ee8964c8ffd7faee9baa0412abeb1ef5b0a4Nick# When distributing Covered Code, include this CDDL HEADER in each
7765ee8964c8ffd7faee9baa0412abeb1ef5b0a4Nick# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
7765ee8964c8ffd7faee9baa0412abeb1ef5b0a4Nick# If applicable, add the following below this CDDL HEADER, with the
7765ee8964c8ffd7faee9baa0412abeb1ef5b0a4Nick# fields enclosed by brackets "[]" replaced with your own identifying
7765ee8964c8ffd7faee9baa0412abeb1ef5b0a4Nick# information: Portions Copyright [yyyy] [name of copyright owner]
7765ee8964c8ffd7faee9baa0412abeb1ef5b0a4Nick# CDDL HEADER END
7765ee8964c8ffd7faee9baa0412abeb1ef5b0a4Nick# Copyright 2008 Sun Microsystems, Inc. All rights reserved.
7765ee8964c8ffd7faee9baa0412abeb1ef5b0a4Nick# Use is subject to license terms.
7765ee8964c8ffd7faee9baa0412abeb1ef5b0a4NickLOCAL_OBJS = bootp.o dhcp.o dhcptab.o encode.o generic.o hash.o icmp.o \
7765ee8964c8ffd7faee9baa0412abeb1ef5b0a4Nick interfaces.o logging.o main.o misc.o per_dnet.o relay.o
7765ee8964c8ffd7faee9baa0412abeb1ef5b0a4NickCPPFLAGS += -DNDEBUG -DNPROBE -D_REENTRANT -I./ -I$(CMN_DIR)
7765ee8964c8ffd7faee9baa0412abeb1ef5b0a4Nick# -erroff=E_BAD_FORMAT_STR2 added to workaround bug 6696366
7765ee8964c8ffd7faee9baa0412abeb1ef5b0a4NickLDFLAGS += -L$(NSU_DIR) -R/usr/lib/inet/dhcp/nsu $(MAPFILE.NGB:%=-M%)
7765ee8964c8ffd7faee9baa0412abeb1ef5b0a4NickLDLIBS += $(NSU_DIR)/rfc2136.so.1 -ldhcpsvc -ldhcputil -linetutil \
7765ee8964c8ffd7faee9baa0412abeb1ef5b0a4Nicklint := LDLIBS = $(LDLIBS.cmd) -ldhcpsvc -ldhcputil -linetutil -lsocket -lnsl
7765ee8964c8ffd7faee9baa0412abeb1ef5b0a4Nick# Debugging support; toggle on if needed.
7765ee8964c8ffd7faee9baa0412abeb1ef5b0a4Nick#CPPFLAGS += -DDEBUG # if used, remove -DNDEBUG above
7765ee8964c8ffd7faee9baa0412abeb1ef5b0a4Nick#CPPFLAGS += -DTNF_DEBUG
7765ee8964c8ffd7faee9baa0412abeb1ef5b0a4Nick#COPTFLAG = -g
7765ee8964c8ffd7faee9baa0412abeb1ef5b0a4Nick#COPTFLAG += -xprofile=func
7765ee8964c8ffd7faee9baa0412abeb1ef5b0a4Nick# for messaging catalog. No messages are present in CMN_DIR sources.
$(POST_PROCESS)
%.o: $(CMN_DIR)/%.c
$(RM) $@