xref: /titanic_44/usr/src/lib/libmd/amd64/Makefile (revision 321502cd0930b1eb6d4805e17f16234f3e3ff4b2)
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#
22160abee0Sda73024# Copyright 2008 Sun Microsystems, Inc.  All rights reserved.
23734b6a94Sdarrenm# Use is subject to license terms.
24734b6a94Sdarrenm#
25734b6a94Sdarrenm# ident	"%Z%%M%	%I%	%E% SMI"
26734b6a94Sdarrenm#
27734b6a94Sdarrenm
28734b6a94SdarrenmLIBRARY= libmd.a
29734b6a94Sdarrenm
30160abee0Sda73024MD5_PSR_OBJECTS = md5_amd64.o
31*321502cdSda73024SHA1_PSR_OBJECTS = sha1-x86_64.o
32160abee0Sda73024
33734b6a94Sdarrenminclude ../Makefile.com
34734b6a94Sdarrenminclude $(SRC)/lib/Makefile.lib.64
35734b6a94Sdarrenm
36*321502cdSda73024CLEANFILES += md5_amd64.s sha1-x86_64.s
37160abee0Sda73024
38160abee0Sda73024# This prevents <sys/asm_linkage.h> from including C source:
39160abee0Sda73024AS_CPPFLAGS += -D_ASM
40160abee0Sda73024
41734b6a94Sdarrenminstall: all $(ROOTLIBS64) $(ROOTLINKS64) $(ROOTLINT64)
42160abee0Sda73024
43*321502cdSda73024pics/md5_amd64.o: md5_amd64.s
44*321502cdSda73024	$(COMPILE.s) -o $@ ${@F:.o=.s}
45*321502cdSda73024	$(POST_PROCESS_O)
46*321502cdSda73024
47*321502cdSda73024pics/sha1-x86_64.o: sha1-x86_64.s
48*321502cdSda73024	$(COMPILE.s) -o $@ ${@F:.o=.s}
49*321502cdSda73024	$(POST_PROCESS_O)
50*321502cdSda73024
51160abee0Sda73024md5_amd64.s: $(COMDIR)/md5/amd64/md5_amd64.pl
52160abee0Sda73024	$(PERL) $? $@
53160abee0Sda73024
54*321502cdSda73024sha1-x86_64.s: $(COMDIR)/sha1/amd64/sha1-x86_64.pl
55*321502cdSda73024	$(PERL) $? $@
56