| |
|
| name = pomaranch |
name = pomaranch |
| type = sync |
type = sync |
| |
|
| root = $(ECRYPT_ROOT) |
|
| api = ecrypt-$(type).h |
|
| |
|
| ifdef STD |
|
| std = $(STD) |
|
| else |
|
| std = -ansi |
std = -ansi |
| endif |
|
| |
|
| ifdef OPT |
|
| opt = $(OPT) |
|
| else |
|
| opt = -O3 |
|
| endif |
|
| |
|
| CFLAGS = -Wall -pedantic $(opt) $(std) |
|
| CPPFLAGS = -DECRYPT_API=$(api) -I $(root)/include -I . |
|
| VPATH = $(root)/test:$(root)/api:$(root)/include |
|
| |
|
| ecrypt-test: ecrypt-test.o ecrypt-$(type).o $(name).o |
|
| |
|
| $(api): ecrypt-config.h ecrypt-machine.h ecrypt-portable.h |
|
| |
|
| ecrypt-test.o: $(api) |
root := $(shell \ |
| ecrypt-$(type).o: $(api) |
root="."; \ |
| |
while [ "$$PWD" != "/" ]; do \ |
| |
if [ -r "$$PWD/test/ecrypt-test.mk" ]; then \ |
| |
echo $$root; exit; \ |
| |
fi; \ |
| |
cd ..; root="$$root"/..; \ |
| |
done; \ |
| |
echo ".") |
| |
|
| $(name).o: $(api) |
include $(root)/test/ecrypt-test.mk |
| |
|
| clean: |
|
| $(RM) ecrypt-test *.o |
|