rename to tommath_amalgam.c

This commit is contained in:
Steffen Jaeckel 2019-10-28 15:42:23 +01:00
parent 02f4ee114c
commit a598e61b90

View File

@ -71,12 +71,12 @@ profiled:
#make a single object profiled library
profiled_single: pre_gen
$(CC) $(LTM_CFLAGS) -fprofile-arcs -c pre_gen/mp_all.c -o mp_all.o
$(CC) $(LTM_CFLAGS) -DMP_VERSION=\"before\" demo/timing.c mp_all.o -lgcov -o timing
$(CC) $(LTM_CFLAGS) -fprofile-arcs -c pre_gen/tommath_amalgam.c -o tommath_amalgam.o
$(CC) $(LTM_CFLAGS) -DMP_VERSION=\"before\" demo/timing.c tommath_amalgam.o -lgcov -o timing
./timing
rm -f *.o timing
$(CC) $(LTM_CFLAGS) -fbranch-probabilities -c pre_gen/mp_all.c -o mp_all.o
$(AR) $(ARFLAGS) $(LIBNAME) mp_all.o
$(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)
@ -120,9 +120,7 @@ docs manual:
.PHONY: pre_gen cmp
pre_gen:
mkdir -p pre_gen
cat *mp_*.c > mp_all.c
sed -e 's/[[:blank:]]*$$//' mp_all.c > pre_gen/mp_all.c
rm mp_all.c
cat *mp_*.c > pre_gen/tommath_amalgam.c
cmp: profiled_single
$(CC) $(LTM_CFLAGS) -DMP_VERSION=\"after\" demo/timing.c $(LIBNAME) -lgcov -o timing