1a399b765Szf162725# 2a399b765Szf162725# CDDL HEADER START 3a399b765Szf162725# 4a399b765Szf162725# The contents of this file are subject to the terms of the 5a399b765Szf162725# Common Development and Distribution License (the "License"). 6a399b765Szf162725# You may not use this file except in compliance with the License. 7a399b765Szf162725# 8a399b765Szf162725# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE 9a399b765Szf162725# or http://www.opensolaris.org/os/licensing. 10a399b765Szf162725# See the License for the specific language governing permissions 11a399b765Szf162725# and limitations under the License. 12a399b765Szf162725# 13a399b765Szf162725# When distributing Covered Code, include this CDDL HEADER in each 14a399b765Szf162725# file and include the License file at usr/src/OPENSOLARIS.LICENSE. 15a399b765Szf162725# If applicable, add the following below this CDDL HEADER, with the 16a399b765Szf162725# fields enclosed by brackets "[]" replaced with your own identifying 17a399b765Szf162725# information: Portions Copyright [yyyy] [name of copyright owner] 18a399b765Szf162725# 19a399b765Szf162725# CDDL HEADER END 20a399b765Szf162725# 21ff3124efSff224033# Copyright 2008 Sun Microsystems, Inc. All rights reserved. 22a399b765Szf162725# Use is subject to license terms. 23a399b765Szf162725# 24*5661bb76SJohn Levon# Copyright (c) 2018, Joyent, Inc. 25a399b765Szf162725 26a399b765Szf162725PROG = wpad 27a399b765Szf162725MANIFEST = wpa.xml 28a399b765Szf162725OBJS = wpa_supplicant.o wpa.o wpa_enc.o eloop.o \ 29a399b765Szf162725 driver_wifi.o l2_packet.o 30a399b765Szf162725SRCS = $(OBJS:%.o=%.c) 31a399b765Szf162725 32a399b765Szf162725include ../../../Makefile.cmd 33a399b765Szf162725 34a399b765Szf162725ROOTMANIFESTDIR = $(ROOTSVCNETWORK) 35a399b765Szf162725 36a399b765Szf162725LDLIBS += -ldladm -ldlpi 37a399b765Szf162725all install := LDLIBS += -lcrypto 38a399b765Szf162725 39ff3124efSff224033LINTFLAGS += -u 40a399b765Szf162725 41*5661bb76SJohn LevonSMOFF += all_func_returns 42*5661bb76SJohn Levon 43a399b765Szf162725.KEEP_STATE: 44a399b765Szf162725 45a399b765Szf162725all: $(PROG) 46a399b765Szf162725 47a399b765Szf162725$(PROG): $(OBJS) 48a399b765Szf162725 $(LINK.c) $(OBJS) -o $@ $(LDLIBS) 49a399b765Szf162725 $(POST_PROCESS) 50a399b765Szf162725 51a399b765Szf162725include ../Makefile.lib 52a399b765Szf162725 53a399b765Szf162725install: all $(ROOTLIBINETPROG) $(ROOTMANIFEST) 54a399b765Szf162725 55a399b765Szf162725check: $(CHKMANIFEST) 56a399b765Szf162725 57a399b765Szf162725clean: 58a399b765Szf162725 $(RM) $(OBJS) 59a399b765Szf162725 60a399b765Szf162725lint: lint_SRCS 61a399b765Szf162725 62a399b765Szf162725include ../../../Makefile.targ 63