xref: /onnv-gate/usr/src/stand/lib/wanboot/Makefile (revision 9741:d997cd4a582f)
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
58192SJohn.Zolnowsky@Sun.COM# Common Development and Distribution License (the "License").
68192SJohn.Zolnowsky@Sun.COM# 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#
21*9741SMark.Phalan@Sun.COM# Copyright 2009 Sun Microsystems, Inc.  All rights reserved.
220Sstevel@tonic-gate# Use is subject to license terms.
230Sstevel@tonic-gate#
240Sstevel@tonic-gate
250Sstevel@tonic-gateLIBRARY = libwanboot.a
260Sstevel@tonic-gateLOCOBJS = http_aux.o bootinfo_aux.o
270Sstevel@tonic-gateCMNOBJS = boot_http.o parseURL.o bootlog.o auxutil.o p12access.o \
280Sstevel@tonic-gate	  p12auxpars.o p12err.o p12misc.o http_errorstr.o bootconf.o bootinfo.o
290Sstevel@tonic-gateOBJECTS = $(LOCOBJS) $(CMNOBJS)
300Sstevel@tonic-gate
310Sstevel@tonic-gateinclude ../Makefile.com
320Sstevel@tonic-gate
330Sstevel@tonic-gateCMNDIR  = $(CMNNETDIR)/wanboot
340Sstevel@tonic-gateSRCS	= $(LOCOBJS:%.o=$(SRCDIR)/%.c) $(CMNOBJS:%.o=$(CMNDIR)/%.c)
350Sstevel@tonic-gateLDLIBS += -lcrypto -lsock -linet -lssl -lnvpair
360Sstevel@tonic-gate
370Sstevel@tonic-gateCPPFLAGS += -I$(CMNNETDIR)/dhcp -I$(TOPDIR)/common/net/wanboot/crypt \
388192SJohn.Zolnowsky@Sun.COM	-I../inet $(DHCPCPPFLAGS) $(SOCKCPPFLAGS)
39*9741SMark.Phalan@Sun.COM
408192SJohn.Zolnowsky@Sun.COM#
41*9741SMark.Phalan@Sun.COM# several objects need access to openssl headers, now in ../openssl
428192SJohn.Zolnowsky@Sun.COM#
43*9741SMark.Phalan@Sun.COMCPPFLAGS += -I..
44*9741SMark.Phalan@Sun.COM
450Sstevel@tonic-gate
460Sstevel@tonic-gateinclude ../Makefile.targ
47