openndr / ndr-build-env

NDR Build Environment Component
https://openndr.org
Other
0 stars 2 forks source link

Add generic path build (depends on arch/platform or etc...) #3

Open Revimal opened 6 years ago

Revimal commented 6 years ago

I have two sub-path to build selectively.

/archdeps/x86
/archdeps/arm

ndr-build-env supporting sub-dir build, but I must write same Makefile files on each sub-path.

Plz add the generic build option (like this)

OBJ = generic_object

ifeq ($(NBE_ARCHTYPE), X86_64)
    GENERIC-DIR += x86
else ifeq($(NBE_ARCHTYPE), ARM_64)
    GENERIC-DIR += arm
endif

HDRS += obj.h
SRCS += obj.c

include $(NBE_DIR)/ndr.obj.mk
Revimal commented 6 years ago

not now... pending... :(