diff --git a/Makefile b/Makefile index 7b839c5..56292a0 100644 --- a/Makefile +++ b/Makefile @@ -99,12 +99,15 @@ MODEST_BUILD_OBJECT_MODULES := $(foreach dir,$(MODEST_BUILD_MODULES_TARGET),$($( #******************** # Target options #*************** -all: $(MODEST_BUILD_MODULES_TARGET_ALL) +all: create $(MODEST_BUILD_MODULES_TARGET_ALL) $(call MODEST_BUILD_OBJECT_SHARED,$(MODEST_BUILD_OBJECT_MODULES),$(MODEST_LIBRARY)) clean: $(MODEST_BUILD_MODULES_TARGET_CLEAN) clone: $(MODEST_BUILD_MODULES_TARGET_CLONE) +create: + mkdir -p lib bin + .PHONY: all clean clone $(MODEST_BUILD_MODULES_TARGET_ALL) # SRCS := diff --git a/Makefile.cfg b/Makefile.cfg index d813824..b583d48 100644 --- a/Makefile.cfg +++ b/Makefile.cfg @@ -31,7 +31,7 @@ endif #******************* ifeq ($(OS),Darwin) MODEST_CFLAGS += -fPIC - MODEST_CFLAGS += $(MODEST_OPTIMIZATION_LEVEL) -Wno-unused-variable --std=c99 + MODEST_CFLAGS += $(MODEST_OPTIMIZATION_LEVEL) -Wno-unused-variable -Wno-unused-function --std=c99 LIB_NAME_SUFFIX := .dylib @@ -55,7 +55,7 @@ endif ifeq ($(MODEST_BUILD_OS),UNDEF) MODEST_CFLAGS += -fPIC MODEST_CFLAGS += -D_POSIX_C_SOURCE=199309L - MODEST_CFLAGS += $(MODEST_OPTIMIZATION_LEVEL) -Wno-unused-variable --std=c99 + MODEST_CFLAGS += $(MODEST_OPTIMIZATION_LEVEL) -Wno-unused-variable -Wno-unused-function --std=c99 # build without threads ifeq ($(MODEST_BUILD_WITHOUT_THREADS),YES) diff --git a/source/mycore/utils/mcsync.c b/source/mycore/utils/mcsync.c index bbaef9f..e5e0399 100644 --- a/source/mycore/utils/mcsync.c +++ b/source/mycore/utils/mcsync.c @@ -85,7 +85,7 @@ mcsync_status_t mcsync_lock(mcsync_t* mcsync) #ifndef MyCORE_BUILD_WITHOUT_THREADS return mcsync_spin_lock(mcsync->spinlock); #else - return MyCORE_STATUS_OK; + return MCSYNC_STATUS_OK; #endif } @@ -94,6 +94,6 @@ mcsync_status_t mcsync_unlock(mcsync_t* mcsync) #ifndef MyCORE_BUILD_WITHOUT_THREADS return mcsync_spin_unlock(mcsync->spinlock); #else - return MyCORE_STATUS_OK; + return MCSYNC_STATUS_OK; #endif }