532N/A#
532N/A# CDDL HEADER START
1339N/A#
532N/A# The contents of this file are subject to the terms of the
1339N/A# Common Development and Distribution License (the "License").
532N/A# You may not use this file except in compliance with the License.
532N/A#
919N/A# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
919N/A# or http://www.opensolaris.org/os/licensing.
919N/A# See the License for the specific language governing permissions
919N/A# and limitations under the License.
919N/A#
919N/A# When distributing Covered Code, include this CDDL HEADER in each
919N/A# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
919N/A# If applicable, add the following below this CDDL HEADER, with the
919N/A# fields enclosed by brackets "[]" replaced with your own identifying
919N/A# information: Portions Copyright [yyyy] [name of copyright owner]
919N/A#
919N/A# CDDL HEADER END
919N/A#
919N/A#
919N/A# Copyright (c) 2016, Oracle and/or its affiliates. All rights reserved.
919N/A#
919N/A
532N/AEXEC = certgen
532N/ASRCS = mkcert.c
532N/AOBJS = $(SRCS:%.c=%.o)
532N/ACERTS = cust_key.pem cust_cert.pem
532N/ACLEANFILES = $(OBJS) $(EXEC) $(CERTS)
532N/A
970N/ACC = cc
970N/ACFLAGS = -D CUSTOM_EXT
970N/ALDLIBS = -lcrypto
970N/A
1339N/Aall: install
1339N/A
1339N/Ainstall: $(EXEC)
970N/A
970N/Aclean:
970N/A rm -rf $(CLEANFILES)
970N/A
532N/Aclobber: clean
1068N/A
532N/A$(EXEC): $(OBJS)
911N/A $(CC) $(CFLAGS) -o $@ $(LDLIBS) $^
1068N/A
1068N/A