#Get all the normal include directories for a cthreads build
$(call TOSMake_include,cthreads.extra)
+PFLAGS += -DDYNTHREADS
#Stuff to build dynamically loadable binary
DYNLOAD_CFILE = $(TOSTHREAD_MAIN_PATH)
$(DYNLOAD_OBJCOPY_COMMAND)
$(DYNLOAD_GENTOS_COMMAND)
+ifneq ($(shell uname),Darwin)
+dynthreads_all: dynthreads_build
+ @echo " $(shell stat -t $(DYNLOAD_TOSFILE) | perl -lane 'print $$F[1];') bytes in BINARY"
+ @echo " writing TOS image"
+else
dynthreads_all: dynthreads_build
@echo " $(shell stat -F $(DYNLOAD_TOSFILE) | perl -lane 'print $$F[4];') bytes in BINARY"
@echo " writing TOS image"
+endif
dynthreads_builddir:
mkdir -p $(BUILDDIR)