| all: build |
all: build |
| |
|
| |
ifdef conf |
| |
include $(root)/config/configs/$(conf).mk |
| |
endif |
| |
|
| include $(root)/test/compiler.mk |
include $(root)/test/compiler.mk |
| |
|
| check: .dummy$(obj) |
name: |
| $(RM) .dummy* |
@echo $(name) |
| |
|
| build: ecrypt-test$(id)$(exe) |
build: ecrypt-test$(id)$(exe) |
| |
|
| api = ecrypt-$(type).h |
api = ecrypt-$(type).h |
| |
|
| ifdef var |
ifdef var |
| defvar = $(D)ECRYPT_VARIANT=$(var) |
defvar = -DECRYPT_VARIANT=$(var) |
| endif |
endif |
| |
|
| CFLAGS = $(opt) |
CFLAGS = $(opt) |
| LDFLAGS = $(CFLAGS) |
LDFLAGS = $(CFLAGS) |
| TARGET_ARCH = $(arch) |
TARGET_ARCH = $(arch) |
| CPPFLAGS = $(D)ECRYPT_API=$(api) $(defvar) $(I) $(root)/include $(I) . |
CPPFLAGS = -DECRYPT_API=$(api) $(defvar) -I $(root)/include -I . |
| VPATH = $(root)/test:$(root)/api:$(root)/include |
VPATH = $(root)/test:$(root)/api:$(root)/include |
| |
|
| ecrypt-test$(id)$(exe): ecrypt-test$(obj) ecrypt-$(type)$(obj) $(name)$(obj) |
ecrypt-test$(id)$(exe): ecrypt-test$(obj) ecrypt-$(type)$(obj) $(name)$(obj) |
| ecrypt-$(type)$(obj): $(api) |
ecrypt-$(type)$(obj): $(api) |
| $(name)$(obj): $(api) |
$(name)$(obj): $(api) |
| |
|
| .dummy$(obj): .dummy.c $(api) |
|
| .dummy.c: |
|
| echo "#include \"$(api)\"" > .dummy.c; |
|
| |
|
| clean: |
clean: |
| $(RM) ecrypt-test$(id)$(exe) *$(obj) .dummy* |
$(RM) ecrypt-test$(id)$(exe) *$(obj) |
| |
|
| .PHONY: all build hash command clean |
.PHONY: all name build hash command clean |