diff --git a/makefile b/makefile index a04cd4d..4bb5789 100644 --- a/makefile +++ b/makefile @@ -55,7 +55,6 @@ s_mp_zero_buf.o s_mp_zero_digs.o $(LIBNAME): $(OBJECTS) $(AR) $(ARFLAGS) $@ $(OBJECTS) - $(RANLIB) $@ #make a profiled library (takes a while!!!) # @@ -77,7 +76,6 @@ profiled_single: pre_gen rm -f *.o timing $(CC) $(LTM_CFLAGS) -fbranch-probabilities -c pre_gen/tommath_amalgam.c -o tommath_amalgam.o $(AR) $(ARFLAGS) $(LIBNAME) tommath_amalgam.o - $(RANLIB) $(LIBNAME) install: $(LIBNAME) install -d $(DESTDIR)$(LIBPATH) diff --git a/makefile.mingw b/makefile.mingw index c597143..16d7db3 100644 --- a/makefile.mingw +++ b/makefile.mingw @@ -13,8 +13,7 @@ PREFIX = c:\mingw CC = gcc AR = ar -ARFLAGS = r -RANLIB = ranlib +ARFLAGS = rcs STRIP = strip CFLAGS = -O2 LDFLAGS = @@ -69,7 +68,6 @@ $(OBJECTS): $(HEADERS) #Create libtommath.a $(LIBMAIN_S): $(OBJECTS) $(AR) $(ARFLAGS) $@ $(OBJECTS) - $(RANLIB) $@ #Create DLL + import library libtommath.dll.a $(LIBMAIN_D) $(LIBMAIN_I): $(OBJECTS) diff --git a/makefile.unix b/makefile.unix index 33a3829..d093a76 100644 --- a/makefile.unix +++ b/makefile.unix @@ -16,8 +16,7 @@ LIBPATH = $(PREFIX)/lib INCPATH = $(PREFIX)/include CC = cc AR = ar -ARFLAGS = r -RANLIB = ranlib +ARFLAGS = rcs CFLAGS = -O2 LDFLAGS = @@ -72,7 +71,6 @@ $(OBJECTS): $(HEADERS) #Create libtommath.a $(LIBMAIN_S): $(OBJECTS) $(AR) $(ARFLAGS) $@ $(OBJECTS) - $(RANLIB) $@ #Build test_standalone suite test: demo/shared.o demo/test.o $(LIBMAIN_S) diff --git a/makefile_include.mk b/makefile_include.mk index aebbc8f..be53ba7 100644 --- a/makefile_include.mk +++ b/makefile_include.mk @@ -36,7 +36,6 @@ endif # CROSS_COMPILE non-empty LD=$(CROSS_COMPILE)ld AR=$(CROSS_COMPILE)ar -RANLIB=$(CROSS_COMPILE)ranlib ifndef MAKE # BSDs refer to GNU Make as gmake @@ -89,7 +88,6 @@ endif ifdef COMPILE_LTO LTM_CFLAGS += -flto AR = $(subst clang,llvm-ar,$(subst gcc,gcc-ar,$(CC))) -RANLIB = $(subst clang,llvm-ranlib,$(subst gcc,gcc-ranlib,$(CC))) endif endif # COMPILE_SIZE