[svn] / ecrypt / trunk / test / ecrypt-test.mk  

svn: ecrypt/trunk/test/ecrypt-test.mk

File: [svn] / ecrypt / trunk / test / ecrypt-test.mk (download)
Revision: 48, Thu Aug 4 20:07:05 2005 UTC (7 years, 9 months ago) by cdecanni
File size: 891 byte(s)
* a few small changes.
all: build

include $(root)/test/compiler.mk

check: .dummy$(obj)
	$(RM) .dummy*

build: ecrypt-test$(id)$(exe)

hash: ecrypt-test$(id)$(exe)
	@md5sum ecrypt-test$(id)$(exe)

command: ecrypt-test$(id)$(exe)
	@echo $(run) ./ecrypt-test$(id)$(exe)

api = ecrypt-$(type).h

ifdef var
  defvar = $(D)ECRYPT_VARIANT=$(var)
endif

CFLAGS = $(opt)
LDFLAGS = $(CFLAGS)
TARGET_ARCH = $(arch)
CPPFLAGS = $(D)ECRYPT_API=$(api) $(defvar) $(I) $(root)/include $(I) .
VPATH = $(root)/test:$(root)/api:$(root)/include

ecrypt-test$(id)$(exe): ecrypt-test$(obj) ecrypt-$(type)$(obj) $(name)$(obj)
$(api): ecrypt-config.h ecrypt-machine.h ecrypt-portable.h 
ecrypt-test$(obj): $(api)
ecrypt-$(type)$(obj): $(api)
$(name)$(obj): $(api)

.dummy$(obj): .dummy.c $(api)
.dummy.c:
	echo "#include \"$(api)\"" > .dummy.c;

clean:
	$(RM) ecrypt-test$(id)$(exe) *$(obj) .dummy*

.PHONY: all build hash command clean

eSTREAM Project

Powered by ViewCVS 1.0-dev
(Powered by Apache)

ViewCVS and CVS Help