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# 22*1e49577aSRod Evans# Copyright (c) 2006, 2010, Oracle and/or its affiliates. All rights reserved. 23734b6a94Sdarrenm# 24734b6a94Sdarrenm 25734b6a94SdarrenmLIBRARY = libmd.a 26*1e49577aSRod EvansVERS = .1 27734b6a94Sdarrenm 28*1e49577aSRod EvansOBJECTS = md4.o md5.o sha1.o sha2.o 29160abee0Sda73024 30*1e49577aSRod Evansinclude $(SRC)/lib/Makefile.lib 31*1e49577aSRod Evansinclude $(SRC)/lib/Makefile.rootfs 32734b6a94Sdarrenminclude $(SRC)/lib/Makefile.lib.64 33*1e49577aSRod Evansinclude ../Makefile.com 34734b6a94Sdarrenm 35*1e49577aSRod EvansEXTPICS = pics/md5_amd64.o \ 36*1e49577aSRod Evans pics/sha1-x86_64.o \ 37*1e49577aSRod Evans pics/sha512-x86_64.o \ 38*1e49577aSRod Evans pics/sha256-x86_64.o 39*1e49577aSRod Evans 40*1e49577aSRod EvansCLEANFILES += $(EXTPICS) \ 41*1e49577aSRod Evans $(EXTPICS:pics/%.o=%.s) 42160abee0Sda73024 43160abee0Sda73024# This prevents <sys/asm_linkage.h> from including C source: 44160abee0Sda73024AS_CPPFLAGS += -D_ASM 45160abee0Sda73024 46*1e49577aSRod Evans.KEPP_STATE: 47*1e49577aSRod Evans 48*1e49577aSRod Evansall: $(LIBS) 49*1e49577aSRod Evans 50734b6a94Sdarrenminstall: all $(ROOTLIBS64) $(ROOTLINKS64) $(ROOTLINT64) 51160abee0Sda73024 52*1e49577aSRod Evanslint: lintcheck 53*1e49577aSRod Evans 5455553f71Sda73024pics/%.o: %.s 55321502cdSda73024 $(COMPILE.s) -o $@ ${@F:.o=.s} 56321502cdSda73024 $(POST_PROCESS_O) 57321502cdSda73024 58160abee0Sda73024md5_amd64.s: $(COMDIR)/md5/amd64/md5_amd64.pl 59160abee0Sda73024 $(PERL) $? $@ 60160abee0Sda73024 61321502cdSda73024sha1-x86_64.s: $(COMDIR)/sha1/amd64/sha1-x86_64.pl 62321502cdSda73024 $(PERL) $? $@ 6355553f71Sda73024 6455553f71Sda73024sha512-x86_64.s: $(COMDIR)/sha2/amd64/sha512-x86_64.pl 6555553f71Sda73024 $(PERL) $? $@ 6655553f71Sda73024 6755553f71Sda73024sha256-x86_64.s: $(COMDIR)/sha2/amd64/sha512-x86_64.pl 6855553f71Sda73024 $(PERL) $? $@ 69*1e49577aSRod Evans 70*1e49577aSRod Evansinclude ../Makefile.targ 71