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# 245661bb76SJohn 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 36*109018f8SMarcel Telka# The wpa_enc.c file is not ported to the OpenSSL 3.x API yet and so we need to 37*109018f8SMarcel Telka# make sure the deprecated 1.x API is fully available for it. Once the 38*109018f8SMarcel Telka# wpa_enc.c file is adapted for OpenSSL 3.x this should be updated or removed. 39*109018f8SMarcel Telka# See also https://www.illumos.org/issues/16917 40*109018f8SMarcel TelkaCPPFLAGS += -DOPENSSL_API_COMPAT=10101 41*109018f8SMarcel Telka 42a399b765Szf162725LDLIBS += -ldladm -ldlpi 435801b0f0SToomas SoomeNATIVE_LIBS += libcrypto.so 44a399b765Szf162725all install := LDLIBS += -lcrypto 45a399b765Szf162725 465661bb76SJohn LevonSMOFF += all_func_returns 475661bb76SJohn Levon 48a399b765Szf162725.KEEP_STATE: 49a399b765Szf162725 50a399b765Szf162725all: $(PROG) 51a399b765Szf162725 52a399b765Szf162725$(PROG): $(OBJS) 53a399b765Szf162725 $(LINK.c) $(OBJS) -o $@ $(LDLIBS) 54a399b765Szf162725 $(POST_PROCESS) 55a399b765Szf162725 56a399b765Szf162725include ../Makefile.lib 57a399b765Szf162725 58a399b765Szf162725install: all $(ROOTLIBINETPROG) $(ROOTMANIFEST) 59a399b765Szf162725 60a399b765Szf162725check: $(CHKMANIFEST) 61a399b765Szf162725 62a399b765Szf162725clean: 63a399b765Szf162725 $(RM) $(OBJS) 64a399b765Szf162725 65a399b765Szf162725include ../../../Makefile.targ 66