mirror of
https://github.com/lexborisov/Modest
synced 2024-11-21 21:31:25 +03:00
Makefile
This commit is contained in:
parent
4a54eecead
commit
acf97b3871
5
Makefile
5
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 :=
|
||||
|
@ -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)
|
||||
|
@ -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
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user