|
|
@@ -180,7 +180,7 @@ src/stream/chacha/chacha_keystream.obj src/stream/chacha/chacha_setup.obj src/st
|
|
|
src/stream/rc4/rc4.obj src/stream/rc4/rc4_test.obj src/stream/sober128/sober128.obj \
|
|
|
src/stream/sober128/sober128_test.obj
|
|
|
|
|
|
-#List of test objects to compile (all goes to tomcrypt_prof.lib)
|
|
|
+#List of test objects to compile
|
|
|
TOBJECTS=tests/base64_test.obj tests/cipher_hash_test.obj tests/common.obj tests/der_tests.obj tests/dh_test.obj \
|
|
|
tests/dsa_test.obj tests/ecc_test.obj tests/file_test.obj tests/katja_test.obj tests/mac_test.obj tests/misc_test.obj \
|
|
|
tests/modes_test.obj tests/multi_test.obj tests/no_prng.obj tests/pkcs_1_eme_test.obj tests/pkcs_1_emsa_test.obj \
|
|
|
@@ -222,28 +222,28 @@ $(LIBMAIN_S): $(OBJECTS)
|
|
|
lib /out:$(LIBMAIN_S) $(OBJECTS)
|
|
|
|
|
|
#Demo tools/utilities
|
|
|
-hashsum.exe: demos/hashsum.c $(LIBMAIN_S)
|
|
|
- cl $(LTC_CFLAGS) demos/hashsum.c $(LIBMAIN_S) $(LTC_LDFLAGS)
|
|
|
+hashsum.exe: demos/hashsum.c tests/common.c $(LIBMAIN_S)
|
|
|
+ cl $(LTC_CFLAGS) demos/hashsum.c tests/common.c $(LIBMAIN_S) $(LTC_LDFLAGS) /Fe$@
|
|
|
ltcrypt.exe: demos/ltcrypt.c $(LIBMAIN_S)
|
|
|
- cl $(LTC_CFLAGS) demos/ltcrypt.c $(LIBMAIN_S) $(LTC_LDFLAGS)
|
|
|
+ cl $(LTC_CFLAGS) demos/ltcrypt.c tests/common.c $(LIBMAIN_S) $(LTC_LDFLAGS) /Fe$@
|
|
|
small.exe: demos/small.c $(LIBMAIN_S)
|
|
|
- cl $(LTC_CFLAGS) demos/small.c $(LIBMAIN_S) $(LTC_LDFLAGS)
|
|
|
+ cl $(LTC_CFLAGS) demos/small.c tests/common.c $(LIBMAIN_S) $(LTC_LDFLAGS) /Fe$@
|
|
|
tv_gen.exe: demos/tv_gen.c $(LIBMAIN_S)
|
|
|
- cl $(LTC_CFLAGS) demos/tv_gen.c $(LIBMAIN_S) $(LTC_LDFLAGS)
|
|
|
-
|
|
|
-#Tests + timing tests
|
|
|
+ cl $(LTC_CFLAGS) demos/tv_gen.c tests/common.c $(LIBMAIN_S) $(LTC_LDFLAGS) /Fe$@
|
|
|
timing.exe: demos/timing.c $(LIBMAIN_S)
|
|
|
- cl $(LTC_CFLAGS) demos/timing.c $(LIBMAIN_S) $(LTC_LDFLAGS)
|
|
|
+ cl $(LTC_CFLAGS) demos/timing.c tests/common.c $(LIBMAIN_S) $(LTC_LDFLAGS) /Fe$@
|
|
|
+
|
|
|
+#Tests
|
|
|
test.exe: $(LIBMAIN_S) $(TOBJECTS)
|
|
|
- cl $(LTC_CFLAGS) $(TOBJECTS) $(LIBMAIN_S) $(LTC_LDFLAGS)
|
|
|
+ cl $(LTC_CFLAGS) $(TOBJECTS) $(LIBMAIN_S) $(LTC_LDFLAGS) /Fe$@
|
|
|
|
|
|
all: $(LIBMAIN_S) hashsum.exe ltcrypt.exe small.exe tv_gen.exe timing.exe test.exe
|
|
|
|
|
|
test: test.exe
|
|
|
|
|
|
clean:
|
|
|
- @cmd /c del /Q *_tv.txt 2>nul
|
|
|
- @cmd /c del /Q /S *.OBJ *.LIB *.EXE *.DLL 2>nul
|
|
|
+ @-cmd /c del /Q *_tv.txt 2>nul
|
|
|
+ @-cmd /c del /Q /S *.OBJ *.LIB *.EXE *.DLL 2>nul
|
|
|
|
|
|
#Install the library + headers
|
|
|
install: $(LIBMAIN_S)
|