Edit

kc3-lang/libtommath/etc/makefile

Branch :

  • Show log

    Commit

  • Author : Daniel Mendler
    Date : 2019-05-07 11:55:43
    Hash : e8ff3429
    Message : cleanup make output

  • etc/makefile
  • CFLAGS += -Wall -W -Wextra -Wshadow -O3 -I../
    
    # default lib name (requires install with root)
    # LIBNAME=-ltommath
    
    # libname when you can't install the lib with install
    LIBNAME=../libtommath.a
    
    #provable primes
    pprime: pprime.o
    	$(CC) $(CFLAGS) pprime.o $(LIBNAME) -o pprime
    
    # portable [well requires clock()] tuning app
    tune: tune.o
    	$(CC) $(CFLAGS) tune.o $(LIBNAME) -o tune
    	./tune_it.sh
    
    test_standalone: tune.o
    	# The benchmark program works as a testtool, too
    	$(CC) $(CFLAGS) tune.o $(LIBNAME) -o test
    
    # spits out mersenne primes
    mersenne: mersenne.o
    	$(CC) $(CFLAGS) mersenne.o $(LIBNAME) -o mersenne
    
    # finds DR safe primes for the given config
    drprime: drprime.o
    	$(CC) $(CFLAGS) drprime.o $(LIBNAME) -o drprime
    
    # finds 2k safe primes for the given config
    2kprime: 2kprime.o
    	$(CC) $(CFLAGS) 2kprime.o $(LIBNAME) -o 2kprime
    
    mont: mont.o
    	$(CC) $(CFLAGS) mont.o $(LIBNAME) -o mont
    
    
    clean:
    	rm -f *.log *.o *.obj *.exe pprime tune mersenne drprime mont 2kprime pprime.dat \
            tuning_list multiplying squaring test *.da *.dyn *.dpi *~