diff --git a/makefile b/makefile index aa569a4..6bb7342 100644 --- a/makefile +++ b/makefile @@ -85,11 +85,11 @@ endif # build the demos from a template define DEMO_template -$(1): demos/$(1).o $$(LIBNAME) +$(1): demos/$(1).o $$(LIBNAME) testprof/common.o ifneq ($V,1) @echo " * $${CC} $$@" endif - $${silent} $$(CC) $$(CFLAGS) $$< $$(LIB_PRE) $$(LIBNAME) $$(LIB_POST) $$(EXTRALIBS) -o $(1) + $${silent} $$(CC) $$(CFLAGS) $$< testprof/common.o $$(LIB_PRE) $$(LIBNAME) $$(LIB_POST) $$(EXTRALIBS) -o $(1) endef $(foreach demo, $(strip $(DEMOS)), $(eval $(call DEMO_template,$(demo)))) diff --git a/makefile.mingw b/makefile.mingw index 5b1cbc2..644815e 100644 --- a/makefile.mingw +++ b/makefile.mingw @@ -241,13 +241,13 @@ $(LIBMAIN_D) $(LIBMAIN_I): $(OBJECTS) $(STRIP) -S $(LIBMAIN_D) #Demo tools/utilities -hashsum.exe: demos/hashsum.o $(LIBMAIN_S) +hashsum: demos/hashsum.o testprof/common.o $(LIBMAIN_S) $(CC) $? $(LTC_LDFLAGS) -o $@ -ltcrypt.exe: demos/ltcrypt.o $(LIBMAIN_S) +crypt: demos/crypt.o testprof/common.o $(LIBMAIN_S) $(CC) $? $(LTC_LDFLAGS) -o $@ -small.exe: demos/small.o $(LIBMAIN_S) +small: demos/small.o testprof/common.o $(LIBMAIN_S) $(CC) $? $(LTC_LDFLAGS) -o $@ -tv_gen.exe: demos/tv_gen.o $(LIBMAIN_S) +tv_gen: demos/tv_gen.o testprof/common.o $(LIBMAIN_S) $(CC) $? $(LTC_LDFLAGS) -o $@ #Tests + timing tests diff --git a/makefile.shared b/makefile.shared index c608698..e0eb113 100644 --- a/makefile.shared +++ b/makefile.shared @@ -59,7 +59,7 @@ timing: $(LIBNAME) $(LIBTEST) $(TIMINGS) # build the demos from a template define DEMO_template -$(1): demos/$(1).o $$(LIBNAME) +$(1): demos/$(1).o testprof/common.o $$(LIBNAME) ifneq ($V,1) @echo " * $${CC} $$@" endif diff --git a/makefile.unix b/makefile.unix index b93315c..0074be1 100644 --- a/makefile.unix +++ b/makefile.unix @@ -243,13 +243,13 @@ $(LIBMAIN_S): $(OBJECTS) $(RANLIB) $@ #Demo tools/utilities -hashsum: demos/hashsum.o $(LIBMAIN_S) +hashsum: demos/hashsum.o testprof/common.o $(LIBMAIN_S) $(CC) $? $(LTC_LDFLAGS) -o $@ -ltcrypt: demos/ltcrypt.o $(LIBMAIN_S) +ltcrypt: demos/ltcrypt.o testprof/common.o $(LIBMAIN_S) $(CC) $? $(LTC_LDFLAGS) -o $@ -small: demos/small.o $(LIBMAIN_S) +small: demos/small.o testprof/common.o $(LIBMAIN_S) $(CC) $? $(LTC_LDFLAGS) -o $@ -tv_gen: demos/tv_gen.o $(LIBMAIN_S) +tv_gen: demos/tv_gen.o testprof/common.o $(LIBMAIN_S) $(CC) $? $(LTC_LDFLAGS) -o $@ #Tests + timing tests