endif
endif
+ifneq ($(USE_NS),)
+OPTIONS_OBJS += src/namespace.o
+endif
+
+ifneq ($(USE_OT),)
+include addons/ot/Makefile
+endif
+
+ifneq ($(USE_LIBATOMIC),)
+ TARGET_LDFLAGS += -latomic
+endif
+
+#### End of the USE_* options handling, any such option that would be added
+#### below could be silently ignored.
+
# appends all foo_{C,LD}FLAGS to OPTIONS_{C,LD}FLAGS
$(collect_opts_flags)
COPTS += -finstrument-functions
endif
-ifneq ($(USE_NS),)
-OPTIONS_OBJS += src/namespace.o
-endif
-
-ifneq ($(USE_OT),)
-include addons/ot/Makefile
-endif
-
-ifneq ($(USE_LIBATOMIC),)
- TARGET_LDFLAGS += -latomic
-endif
-
#### Global link options
# These options are added at the end of the "ld" command line. Use LDFLAGS to
# add options at the beginning of the "ld" command line if needed.
addons/ot/src/vars.o
endif
-OPTIONS_CFLAGS += $(OT_CFLAGS) -Iaddons/ot/include
-OPTIONS_LDFLAGS += $(OT_LDFLAGS)
-OPTIONS_CFLAGS += $(OT_DEFINE)
+OT_CFLAGS := $(OT_CFLAGS) -Iaddons/ot/include $(OT_DEFINE)