openbsd-ports/security/rsaref/files/Makefile
1997-12-02 14:24:36 +00:00

31 lines
752 B
Makefile

O= o
SO= so
LIB= ar
.SUFFIXES: .c .so .o
.c.so:
${CC} -fpic -DPIC ${CFLAGS} -c ${.IMPSRC} -o ${.TARGET}
RSAREFLIB=librsaref.a
.if (${MACHINE_ARCH} != "alpha")
SORSAREFLIB=librsaref.so.2.0
.endif
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)
.if (${MACHINE_ARCH} != "mips")
${LD} -x -Bshareable -Bforcearchive -o $@ $>
.else
${LD} -x -shared --whole-archive -o $@ $>
.endif