10Sstevel@tonic-gate# 20Sstevel@tonic-gate# CDDL HEADER START 30Sstevel@tonic-gate# 40Sstevel@tonic-gate# The contents of this file are subject to the terms of the 5*2248Sraf# Common Development and Distribution License (the "License"). 6*2248Sraf# You may not use this file except in compliance with the License. 70Sstevel@tonic-gate# 80Sstevel@tonic-gate# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE 90Sstevel@tonic-gate# or http://www.opensolaris.org/os/licensing. 100Sstevel@tonic-gate# See the License for the specific language governing permissions 110Sstevel@tonic-gate# and limitations under the License. 120Sstevel@tonic-gate# 130Sstevel@tonic-gate# When distributing Covered Code, include this CDDL HEADER in each 140Sstevel@tonic-gate# file and include the License file at usr/src/OPENSOLARIS.LICENSE. 150Sstevel@tonic-gate# If applicable, add the following below this CDDL HEADER, with the 160Sstevel@tonic-gate# fields enclosed by brackets "[]" replaced with your own identifying 170Sstevel@tonic-gate# information: Portions Copyright [yyyy] [name of copyright owner] 180Sstevel@tonic-gate# 190Sstevel@tonic-gate# CDDL HEADER END 200Sstevel@tonic-gate# 210Sstevel@tonic-gate# 22*2248Sraf# Copyright 2006 Sun Microsystems, Inc. All rights reserved. 230Sstevel@tonic-gate# Use is subject to license terms. 240Sstevel@tonic-gate# 250Sstevel@tonic-gate# ident "%Z%%M% %I% %E% SMI" 260Sstevel@tonic-gate# 270Sstevel@tonic-gate# cmd/cmd-inet/usr.lib/in.dhcpd/tests/Makefile 280Sstevel@tonic-gate# 290Sstevel@tonic-gate 300Sstevel@tonic-gateCOMMON_NET = $(SRC)/common/net/dhcp 310Sstevel@tonic-gate 320Sstevel@tonic-gatePROG = test_client 330Sstevel@tonic-gateOBJS = test_client.o 340Sstevel@tonic-gateSRCS = $(OBJS:%.o=%.c) 350Sstevel@tonic-gate 360Sstevel@tonic-gateDPROG = test_dstore 370Sstevel@tonic-gateDOBJS = test_dstore.o 380Sstevel@tonic-gateDSRCS = $(OBJS:%.o=%.c) 390Sstevel@tonic-gate 400Sstevel@tonic-gateMPROG = mkdstore 410Sstevel@tonic-gateMOBJS = mkdstore.o 420Sstevel@tonic-gateMSRCS = $(OBJS:%.o=%.c) 430Sstevel@tonic-gate 440Sstevel@tonic-gateinclude ../../../../Makefile.cmd 450Sstevel@tonic-gate 46*2248SrafDLIBS = -linetutil -ldhcpsvc -lsocket -lnsl -lmtmalloc 470Sstevel@tonic-gateLDLIBS += $(DLIBS) 480Sstevel@tonic-gateCPPFLAGS += -g -DNDEBUG -D_REENTRANT -I$(COMMON_NET) 490Sstevel@tonic-gateLINTFLAGS += -Xt 500Sstevel@tonic-gate 510Sstevel@tonic-gate.KEEP_STATE: 520Sstevel@tonic-gate 530Sstevel@tonic-gateall: $(PROG) $(DPROG) $(MPROG) 540Sstevel@tonic-gate 550Sstevel@tonic-gate$(PROG): $(OBJS) 560Sstevel@tonic-gate $(LINK.c) $(OBJS) -o $@ $(LDLIBS) 570Sstevel@tonic-gate $(POST_PROCESS) 580Sstevel@tonic-gate 590Sstevel@tonic-gate$(DPROG): $(DOBJS) 600Sstevel@tonic-gate $(LINK.c) $(DOBJS) -o $@ $(LDLIBS) 610Sstevel@tonic-gate $(POST_PROCESS) 620Sstevel@tonic-gate 630Sstevel@tonic-gate$(MPROG): $(MOBJS) 640Sstevel@tonic-gate $(LINK.c) $(MOBJS) -o $@ $(LDLIBS) 650Sstevel@tonic-gate $(POST_PROCESS) 660Sstevel@tonic-gate 670Sstevel@tonic-gate%.o: $(COMMON_NET)/%.c 680Sstevel@tonic-gate $(COMPILE.c) $(OUTPUT_OPTION) $< 690Sstevel@tonic-gate $(POST_PROCESS_O) 700Sstevel@tonic-gate 710Sstevel@tonic-gateclean: 720Sstevel@tonic-gate $(RM) $(OBJS) $(DOBJS) $(MOBJS) 730Sstevel@tonic-gate 740Sstevel@tonic-gateinstall: 750Sstevel@tonic-gate $(ECHO) "Nothing to Install" >&2 760Sstevel@tonic-gate 770Sstevel@tonic-gate 780Sstevel@tonic-gatelint: 790Sstevel@tonic-gate $(LINT.c) $(PROG).c $(ENVLDLIBS1) $(DLIBS) 800Sstevel@tonic-gate $(LINT.c) $(DPROG).c $(ENVLDLIBS1) $(DLIBS) 810Sstevel@tonic-gate $(LINT.c) $(MPROG).c $(ENVLDLIBS1) $(DLIBS) 820Sstevel@tonic-gate 830Sstevel@tonic-gateinclude ../../../../Makefile.targ 84