aboutsummaryrefslogtreecommitdiff
path: root/src/libsec/386/mkfile
blob: 6f970600f6c5749e14d98c1d618bef37dc8b6170 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
<$PLAN9/src/mkhdr

LIB=libsec.a
SFILES=\
	md5block.s\
	sha1block.s\

HFILES=$PLAN9/include/libsec.h

OFILES=${SFILES:%.s=%.$O}

UPDATE=mkfile\
	$HFILES\
	$SFILES\

<$PLAN9/src/mksyslib

%.s: %.spp
	if [ `uname` = OpenBSD ] || [ `uname` = Darwin ]
	then
		gcc -xc -D__`uname`__ -E $stem.spp >$stem.s
	else
		cpp $stem.spp >$stem.s
	fi

CLEANFILES=md5block.s sha1block.s