shithub: drawterm-fdroid

ref: 90baca8302fd8b6ccad7d06b61da9ecf451ccf83
dir: /libmp/Makefile/

View raw version
ROOT=..
include ../Make.config
# N.B.  This is used only for secstore.  It needn't be fast.

LIB=libmp.a

OFILES=\
	betomp.$O\
	cnfield.$O\
	crt.$O\
	gmfield.$O\
	letomp.$O\
	mpadd.$O\
	mpaux.$O\
	mpcmp.$O\
	mpdigdiv.$O\
	mpdiv.$O\
	mpeuclid.$O\
	mpexp.$O\
	mpextendedgcd.$O\
	mpfactorial.$O\
	mpfield.$O\
	mpfmt.$O\
	mpinvert.$O\
	mpleft.$O\
	mplogic.$O\
	mpmod.$O\
	mpmodop.$O\
	mpmul.$O\
	mpnrand.$O\
	mprand.$O\
	mpright.$O\
	mpsel.$O\
	mpsub.$O\
	mptobe.$O\
	mptober.$O\
	mptoi.$O\
	mptole.$O\
	mptolel.$O\
	mptoui.$O\
	mptouv.$O\
	mptov.$O\
	mpvecadd.$O\
	mpveccmp.$O\
	mpvecdigmuladd.$O\
	mpvecsub.$O\
	mpvectscmp.$O\
	strtomp.$O

default: $(LIB)
$(LIB): $(OFILES)
	$(AR) r $(LIB) $(OFILES)
	$(RANLIB) $(LIB)

%.$O: %.c
	$(CC) $(CFLAGS) $*.c