1734b6a94Sdarrenm# 2734b6a94Sdarrenm# CDDL HEADER START 3734b6a94Sdarrenm# 4734b6a94Sdarrenm# The contents of this file are subject to the terms of the 5734b6a94Sdarrenm# Common Development and Distribution License (the "License"). 6734b6a94Sdarrenm# You may not use this file except in compliance with the License. 7734b6a94Sdarrenm# 8734b6a94Sdarrenm# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE 9734b6a94Sdarrenm# or http://www.opensolaris.org/os/licensing. 10734b6a94Sdarrenm# See the License for the specific language governing permissions 11734b6a94Sdarrenm# and limitations under the License. 12734b6a94Sdarrenm# 13734b6a94Sdarrenm# When distributing Covered Code, include this CDDL HEADER in each 14734b6a94Sdarrenm# file and include the License file at usr/src/OPENSOLARIS.LICENSE. 15734b6a94Sdarrenm# If applicable, add the following below this CDDL HEADER, with the 16734b6a94Sdarrenm# fields enclosed by brackets "[]" replaced with your own identifying 17734b6a94Sdarrenm# information: Portions Copyright [yyyy] [name of copyright owner] 18734b6a94Sdarrenm# 19734b6a94Sdarrenm# CDDL HEADER END 20734b6a94Sdarrenm# 21734b6a94Sdarrenm# 221e49577aSRod Evans# Copyright (c) 2006, 2010, Oracle and/or its affiliates. All rights reserved. 23*45818ee1SMatthew Ahrens# Copyright 2013 Saso Kiselkov. All rights reserved. 24734b6a94Sdarrenm# 25734b6a94Sdarrenm 26734b6a94SdarrenmLIBRARY = libmd.a 271e49577aSRod EvansVERS = .1 28734b6a94Sdarrenm 29*45818ee1SMatthew AhrensOBJECTS = edonr.o md4.o md5.o sha1.o sha2.o \ 30*45818ee1SMatthew Ahrens skein.o skein_block.o skein_iv.o 31160abee0Sda73024 321e49577aSRod Evansinclude $(SRC)/lib/Makefile.lib 331e49577aSRod Evansinclude $(SRC)/lib/Makefile.rootfs 34734b6a94Sdarrenminclude $(SRC)/lib/Makefile.lib.64 351e49577aSRod Evansinclude ../Makefile.com 36734b6a94Sdarrenm 371e49577aSRod EvansEXTPICS = pics/md5_amd64.o \ 381e49577aSRod Evans pics/sha1-x86_64.o \ 391e49577aSRod Evans pics/sha512-x86_64.o \ 401e49577aSRod Evans pics/sha256-x86_64.o 411e49577aSRod Evans 421e49577aSRod EvansCLEANFILES += $(EXTPICS) \ 431e49577aSRod Evans $(EXTPICS:pics/%.o=%.s) 44160abee0Sda73024 45160abee0Sda73024# This prevents <sys/asm_linkage.h> from including C source: 46160abee0Sda73024AS_CPPFLAGS += -D_ASM 47160abee0Sda73024 481e49577aSRod Evans.KEPP_STATE: 491e49577aSRod Evans 501e49577aSRod Evansall: $(LIBS) 511e49577aSRod Evans 52734b6a94Sdarrenminstall: all $(ROOTLIBS64) $(ROOTLINKS64) $(ROOTLINT64) 53160abee0Sda73024 541e49577aSRod Evanslint: lintcheck 551e49577aSRod Evans 5655553f71Sda73024pics/%.o: %.s 57321502cdSda73024 $(COMPILE.s) -o $@ ${@F:.o=.s} 58321502cdSda73024 $(POST_PROCESS_O) 59321502cdSda73024 60160abee0Sda73024md5_amd64.s: $(COMDIR)/md5/amd64/md5_amd64.pl 61160abee0Sda73024 $(PERL) $? $@ 62160abee0Sda73024 63321502cdSda73024sha1-x86_64.s: $(COMDIR)/sha1/amd64/sha1-x86_64.pl 64321502cdSda73024 $(PERL) $? $@ 6555553f71Sda73024 6655553f71Sda73024sha512-x86_64.s: $(COMDIR)/sha2/amd64/sha512-x86_64.pl 6755553f71Sda73024 $(PERL) $? $@ 6855553f71Sda73024 6955553f71Sda73024sha256-x86_64.s: $(COMDIR)/sha2/amd64/sha512-x86_64.pl 7055553f71Sda73024 $(PERL) $? $@ 711e49577aSRod Evans 721e49577aSRod Evansinclude ../Makefile.targ 73