4 # The contents of this file are subject to the terms of the
5 # Common Development and Distribution License (the "License").
6 # You may not use this file except in compliance with the License.
8 # You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
9 # or http://www.opensolaris.org/os/licensing.
10 # See the License for the specific language governing permissions
11 # and limitations under the License.
13 # When distributing Covered Code, include this CDDL HEADER in each
14 # file and include the License file at usr/src/OPENSOLARIS.LICENSE.
15 # If applicable, add the following below this CDDL HEADER, with the
16 # fields enclosed by brackets "[]" replaced with your own identifying
17 # information: Portions Copyright [yyyy] [name of copyright owner]
21 # Copyright 2009 Sun Microsystems, Inc. All rights reserved.
22 # Use is subject to license terms.
24 # Copyright (c) 2012 by Delphix. All rights reserved.
27 LIBRARY = libwanboot.a
30 # List of locally located modules.
32 LOC_OBJS = socket_inet.o bootinfo_aux.o
33 LOC_SRCS = $(LOC_OBJS:%.o=$(LOC_DIR)/%.c)
35 # List of common wanboot objects.
36 COM_DIR = ../../../common/net/wanboot
37 COM_OBJS = auxutil.o \
50 COM_SRCS = $(COM_OBJS:%.o=$(COM_DIR)/%.c)
52 # List of common DHCP modules.
53 DHCP_DIR = $(SRC)/common/net/dhcp
54 DHCP_OBJS = dhcpinfo.o
55 DHCP_SRCS = $(DHCP_OBJS:%.o=$(DHCP_DIR)/%.c)
57 OBJECTS = $(LOC_OBJS) $(COM_OBJS) $(DHCP_OBJS)
59 include ../../Makefile.lib
62 LDLIBS += -lnvpair -lresolv -lnsl -lsocket -ldevinfo -ldhcputil \
63 -linetutil -lc -lcrypto -lssl
64 CPPFLAGS = -I$(SRC)/common/net/wanboot/crypt $(CPPFLAGS.master)
65 CERRWARN += -_gcc=-Wno-switch
66 CERRWARN += -_gcc=-Wno-parentheses
67 CERRWARN += -_gcc=-Wno-unused-value
68 CERRWARN += -_gcc=-Wno-uninitialized
70 # Must override SRCS from Makefile.lib since sources have
71 # multiple source directories.
72 SRCS = $(LOC_SRCS) $(COM_SRCS) $(DHCP_SRCS)
74 # Must define location of lint library source.
76 $(LINTLIB) := SRCS = $(SRCDIR)/$(LINTSRC)
78 # OpenSSL (incl. varying versions) requires us to turn these off
79 LINTFLAGS += -erroff=E_BAD_PTR_CAST_ALIGN,E_SUPPRESSION_DIRECTIVE_UNUSED
80 LINTFLAGS64 += -erroff=E_BAD_PTR_CAST_ALIGN,E_SUPPRESSION_DIRECTIVE_UNUSED
82 CFLAGS += $(CCVERBOSE)
83 CPPFLAGS += -I$(LOC_DIR) -I$(COM_DIR) -I$(DHCP_DIR)
91 pics/%.o: $(COM_DIR)/%.c
95 pics/%.o: $(DHCP_DIR)/%.c
99 include ../../Makefile.targ