Makefile revision 257873cfc1dd3337766407f80397db60a56f2f5a
0b062f4990db5cc6db2fe3398926f71b92a67407Brian Wellington#
9016767f4e15191b7c763b8a4ad36a57dc2705a2Mark Andrews# CDDL HEADER START
9016767f4e15191b7c763b8a4ad36a57dc2705a2Mark Andrews#
9016767f4e15191b7c763b8a4ad36a57dc2705a2Mark Andrews# The contents of this file are subject to the terms of the
0b062f4990db5cc6db2fe3398926f71b92a67407Brian Wellington# Common Development and Distribution License (the "License").
0b062f4990db5cc6db2fe3398926f71b92a67407Brian Wellington# You may not use this file except in compliance with the License.
0b062f4990db5cc6db2fe3398926f71b92a67407Brian Wellington#
9016767f4e15191b7c763b8a4ad36a57dc2705a2Mark Andrews# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
9016767f4e15191b7c763b8a4ad36a57dc2705a2Mark Andrews# or http://www.opensolaris.org/os/licensing.
9016767f4e15191b7c763b8a4ad36a57dc2705a2Mark Andrews# See the License for the specific language governing permissions
9016767f4e15191b7c763b8a4ad36a57dc2705a2Mark Andrews# and limitations under the License.
9016767f4e15191b7c763b8a4ad36a57dc2705a2Mark Andrews#
9016767f4e15191b7c763b8a4ad36a57dc2705a2Mark Andrews# When distributing Covered Code, include this CDDL HEADER in each
9016767f4e15191b7c763b8a4ad36a57dc2705a2Mark Andrews# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
9016767f4e15191b7c763b8a4ad36a57dc2705a2Mark Andrews# If applicable, add the following below this CDDL HEADER, with the
0b062f4990db5cc6db2fe3398926f71b92a67407Brian Wellington# fields enclosed by brackets "[]" replaced with your own identifying
9016767f4e15191b7c763b8a4ad36a57dc2705a2Mark Andrews# information: Portions Copyright [yyyy] [name of copyright owner]
9016767f4e15191b7c763b8a4ad36a57dc2705a2Mark Andrews#
9016767f4e15191b7c763b8a4ad36a57dc2705a2Mark Andrews# CDDL HEADER END
0b062f4990db5cc6db2fe3398926f71b92a67407Brian Wellington#
0b062f4990db5cc6db2fe3398926f71b92a67407Brian Wellington# Copyright 2008 Sun Microsystems, Inc. All rights reserved.
0b062f4990db5cc6db2fe3398926f71b92a67407Brian Wellington# Use is subject to license terms.
0b062f4990db5cc6db2fe3398926f71b92a67407Brian Wellington#
0b062f4990db5cc6db2fe3398926f71b92a67407Brian Wellington
0b062f4990db5cc6db2fe3398926f71b92a67407Brian Wellingtoninclude $(SRC)/lib/openssl/Makefile.openssl
3970098dcd2a7122541667b4b56cea8abce8ccf2Mark Andrews
0b062f4990db5cc6db2fe3398926f71b92a67407Brian WellingtonLIBRARY = libwanboot.a
0b062f4990db5cc6db2fe3398926f71b92a67407Brian WellingtonLOCOBJS = http_aux.o bootinfo_aux.o
0b062f4990db5cc6db2fe3398926f71b92a67407Brian WellingtonCMNOBJS = boot_http.o parseURL.o bootlog.o auxutil.o p12access.o \
0b062f4990db5cc6db2fe3398926f71b92a67407Brian Wellington p12auxpars.o p12err.o p12misc.o http_errorstr.o bootconf.o bootinfo.o
0b062f4990db5cc6db2fe3398926f71b92a67407Brian WellingtonOBJECTS = $(LOCOBJS) $(CMNOBJS)
0b062f4990db5cc6db2fe3398926f71b92a67407Brian Wellington
0b062f4990db5cc6db2fe3398926f71b92a67407Brian Wellingtoninclude ../Makefile.com
0b062f4990db5cc6db2fe3398926f71b92a67407Brian Wellington
0b062f4990db5cc6db2fe3398926f71b92a67407Brian WellingtonCMNDIR = $(CMNNETDIR)/wanboot
0b062f4990db5cc6db2fe3398926f71b92a67407Brian WellingtonSRCS = $(LOCOBJS:%.o=$(SRCDIR)/%.c) $(CMNOBJS:%.o=$(CMNDIR)/%.c)
0b062f4990db5cc6db2fe3398926f71b92a67407Brian WellingtonLDLIBS += -lcrypto -lsock -linet -lssl -lnvpair
0b062f4990db5cc6db2fe3398926f71b92a67407Brian Wellington
0b062f4990db5cc6db2fe3398926f71b92a67407Brian WellingtonCPPFLAGS += -I$(CMNNETDIR)/dhcp -I$(TOPDIR)/common/net/wanboot/crypt \
0b062f4990db5cc6db2fe3398926f71b92a67407Brian Wellington -I../inet $(DHCPCPPFLAGS) $(SOCKCPPFLAGS)
0b062f4990db5cc6db2fe3398926f71b92a67407Brian Wellington#
0b062f4990db5cc6db2fe3398926f71b92a67407Brian Wellington# several objects need access to openssl headers, now in /usr/include
0b062f4990db5cc6db2fe3398926f71b92a67407Brian Wellington#
0b062f4990db5cc6db2fe3398926f71b92a67407Brian WellingtonCPPFLAGS += -I$(ROOT)/usr/include
0b062f4990db5cc6db2fe3398926f71b92a67407Brian Wellington
0b062f4990db5cc6db2fe3398926f71b92a67407Brian Wellingtoninclude ../Makefile.targ
0b062f4990db5cc6db2fe3398926f71b92a67407Brian Wellington