2000-02-21 09:19:19 +00:00
|
|
|
# $FreeBSD$
|
|
|
|
|
1997-02-02 20:11:08 +00:00
|
|
|
O= o
|
|
|
|
SO= so
|
|
|
|
LIB= ar
|
|
|
|
|
|
|
|
.SUFFIXES: .c .so .o
|
|
|
|
|
|
|
|
.c.so:
|
|
|
|
${CC} -fpic -DPIC ${CFLAGS} -c ${.IMPSRC} -o ${.TARGET}
|
|
|
|
|
|
|
|
RSAREFLIB=librsaref.a
|
1998-09-14 22:33:48 +00:00
|
|
|
SORSAREFLIB=librsaref.so.2
|
1997-02-02 20:11:08 +00:00
|
|
|
|
|
|
|
all: ${RSAREFLIB} ${SORSAREFLIB}
|
|
|
|
|
|
|
|
$(RSAREFLIB) : desc.$(O) digit.$(O) md2c.$(O) md5c.$(O) nn.$(O) prime.$(O)\
|
|
|
|
rsa.$(O) r_encode.$(O) r_dh.$(O) r_enhanc.$(O) r_keygen.$(O) r_random.$(O)\
|
|
|
|
r_stdlib.$(O)
|
|
|
|
$(LIB) rc $@ $>
|
|
|
|
ranlib $@
|
|
|
|
|
|
|
|
$(SORSAREFLIB) : desc.$(SO) digit.$(SO) md2c.$(SO) md5c.$(SO) nn.$(SO) prime.$(SO)\
|
|
|
|
rsa.$(SO) r_encode.$(SO) r_dh.$(SO) r_enhanc.$(SO) r_keygen.$(SO) r_random.$(SO)\
|
|
|
|
r_stdlib.$(SO)
|
1998-09-16 14:08:49 +00:00
|
|
|
.if ${PORTOBJFORMAT} == elf
|
1998-09-15 03:38:59 +00:00
|
|
|
${CC} -o $@ -shared -Wl,-soname,$@ $>
|
1998-09-15 14:49:08 +00:00
|
|
|
.else
|
|
|
|
ld -Bshareable -x -o $@ $>
|
|
|
|
.endif
|