Преглед на файлове

introduce new all_test make-target

Steffen Jaeckel преди 9 години
родител
ревизия
61d730323a
променени са 7 файла, в които са добавени 12 реда и са изтрити 2 реда
  1. 1 1
      build.sh
  2. 1 1
      makefile
  3. 2 0
      makefile.icc
  4. 2 0
      makefile.mingw
  5. 2 0
      makefile.msvc
  6. 2 0
      makefile.shared
  7. 2 0
      makefile.unix

+ 1 - 1
build.sh

@@ -5,7 +5,7 @@ make clean 1>/dev/null 2>/dev/null
 
 
 echo -n "building..."
 echo -n "building..."
 
 
-CFLAGS="$2 $CFLAGS $4" EXTRALIBS="$5" make -f $3 test tv_gen 1>gcc_1.txt 2>gcc_2.txt
+CFLAGS="$2 $CFLAGS $4" EXTRALIBS="$5" make -f $3 all_test 1>gcc_1.txt 2>gcc_2.txt
 mret=$?
 mret=$?
 cnt=$(wc -l < gcc_2.txt)
 cnt=$(wc -l < gcc_2.txt)
 # ignore 2 lines since ar prints to stderr instead of stdout and ar is called for 
 # ignore 2 lines since ar prints to stderr instead of stdout and ar is called for 

+ 1 - 1
makefile

@@ -251,7 +251,7 @@ endef
 
 
 $(foreach demo, $(strip $(DEMOS)), $(eval $(call DEMO_template,$(demo))))
 $(foreach demo, $(strip $(DEMOS)), $(eval $(call DEMO_template,$(demo))))
 
 
-
+all_test: test tv_gen $(DEMOS)
 
 
 #This rule installs the library and the header files. This must be run
 #This rule installs the library and the header files. This must be run
 #as root in order to have a high enough permission to write to the correct
 #as root in order to have a high enough permission to write to the correct

+ 2 - 0
makefile.icc

@@ -308,6 +308,8 @@ timing: library $(TIMINGS) testprof/$(LIBTEST)
 test: library $(TESTS) testprof/$(LIBTEST)
 test: library $(TESTS) testprof/$(LIBTEST)
 	$(CC) $(TESTS) testprof/$(LIBTEST) $(LIBNAME) $(EXTRALIBS) -o $(TEST)
 	$(CC) $(TESTS) testprof/$(LIBTEST) $(LIBNAME) $(EXTRALIBS) -o $(TEST)
 
 
+all_test: test tv_gen hashsum crypt small timing
+
 #This rule installs the library and the header files. This must be run
 #This rule installs the library and the header files. This must be run
 #as root in order to have a high enough permission to write to the correct
 #as root in order to have a high enough permission to write to the correct
 #directories and to set the owner and group to root.
 #directories and to set the owner and group to root.

+ 2 - 0
makefile.mingw

@@ -246,6 +246,8 @@ timing: library testprof/$(LIBTEST) $(TIMINGS)
 test: library testprof/$(LIBTEST) $(TESTS)
 test: library testprof/$(LIBTEST) $(TESTS)
 	$(CC) $(LDFLAGS) $(TESTS) testprof/$(LIBTEST) $(LIBNAME) $(EXTRALIBS) -o $(TEST)
 	$(CC) $(LDFLAGS) $(TESTS) testprof/$(LIBTEST) $(LIBNAME) $(EXTRALIBS) -o $(TEST)
 
 
+all_test: test tv_gen hashsum crypt small multi timing
+
 install: library
 install: library
 	cmd /c if not exist "$(DESTDIR)$(LIBPATH)" mkdir "$(DESTDIR)$(LIBPATH)"
 	cmd /c if not exist "$(DESTDIR)$(LIBPATH)" mkdir "$(DESTDIR)$(LIBPATH)"
 	cmd /c if not exist "$(DESTDIR)$(INCPATH)" mkdir "$(DESTDIR)$(INCPATH)"
 	cmd /c if not exist "$(DESTDIR)$(INCPATH)" mkdir "$(DESTDIR)$(INCPATH)"

+ 2 - 0
makefile.msvc

@@ -168,6 +168,8 @@ test: demos/test.c library
 timing: demos/timing.c library
 timing: demos/timing.c library
 	cl $(CFLAGS) demos/timing.c testprof/tomcrypt_prof.lib tomcrypt.lib advapi32.lib $(EXTRALIBS)
 	cl $(CFLAGS) demos/timing.c testprof/tomcrypt_prof.lib tomcrypt.lib advapi32.lib $(EXTRALIBS)
 
 
+all_test: test tv_gen hashsum timing
+
 # $Source$
 # $Source$
 # $Revision$
 # $Revision$
 # $Date$
 # $Date$

+ 2 - 0
makefile.shared

@@ -244,6 +244,8 @@ test: library testprof/$(LIBTEST) $(TESTS)
 timing: library testprof/$(LIBTEST) $(TIMINGS)
 timing: library testprof/$(LIBTEST) $(TIMINGS)
 	$(LT) --mode=link --tag=CC $(CC) $(CFLAGS) $(CPPFLAGS) $(LDFLAGS) -o $(TIMING) $(TIMINGS) testprof/$(LIBTEST) $(LIBNAME) $(EXTRALIBS)
 	$(LT) --mode=link --tag=CC $(CC) $(CFLAGS) $(CPPFLAGS) $(LDFLAGS) -o $(TIMING) $(TIMINGS) testprof/$(LIBTEST) $(LIBNAME) $(EXTRALIBS)
 
 
+all_test: test tv_gen hashsum crypt small timing
+
 # $Source$
 # $Source$
 # $Revision$
 # $Revision$
 # $Date$
 # $Date$

+ 2 - 0
makefile.unix

@@ -246,6 +246,8 @@ timing: library testprof/$(LIBTEST) $(TIMINGS)
 test: library testprof/$(LIBTEST) $(TESTS)
 test: library testprof/$(LIBTEST) $(TESTS)
 	$(CC) $(LDFLAGS) $(TESTS) testprof/$(LIBTEST) $(LIBNAME) $(EXTRALIBS) -o $(TEST)
 	$(CC) $(LDFLAGS) $(TESTS) testprof/$(LIBTEST) $(LIBNAME) $(EXTRALIBS) -o $(TEST)
 
 
+all_test: test tv_gen hashsum crypt small multi timing
+
 #This rule installs the library and the header files. This must be run
 #This rule installs the library and the header files. This must be run
 #as root in order to have a high enough permission to write to the correct
 #as root in order to have a high enough permission to write to the correct
 #directories and to set the owner and group to root.
 #directories and to set the owner and group to root.