mirror of
https://github.com/lexborisov/Modest
synced 2024-11-22 05:41:32 +03:00
oh
This commit is contained in:
parent
a47253f849
commit
6acfafec4d
5
Makefile
5
Makefile
@ -16,6 +16,7 @@ MODEST_OPTIMIZATION_LEVEL ?= -O2
|
|||||||
|
|
||||||
CFLAGS ?= -Wall -Werror
|
CFLAGS ?= -Wall -Werror
|
||||||
CFLAGS += $(MODEST_OPTIMIZATION_LEVEL) -Wno-unused-variable --std=c99 -I$(SRCDIR)
|
CFLAGS += $(MODEST_OPTIMIZATION_LEVEL) -Wno-unused-variable --std=c99 -I$(SRCDIR)
|
||||||
|
LDFLAGS ?= -lm
|
||||||
|
|
||||||
ifneq ($(OS),Windows_NT)
|
ifneq ($(OS),Windows_NT)
|
||||||
CFLAGS += -fPIC
|
CFLAGS += -fPIC
|
||||||
@ -31,7 +32,7 @@ ifeq ($(MODEST_BUILD_WITHOUT_THREADS),YES)
|
|||||||
CFLAGS += -DMODEST_BUILD_WITHOUT_THREADS -DMyHTML_BUILD_WITHOUT_THREADS
|
CFLAGS += -DMODEST_BUILD_WITHOUT_THREADS -DMyHTML_BUILD_WITHOUT_THREADS
|
||||||
else
|
else
|
||||||
$(info Build with POSIX Threads)
|
$(info Build with POSIX Threads)
|
||||||
CFLAGS += -pthread -lm
|
CFLAGS += -pthread
|
||||||
endif
|
endif
|
||||||
|
|
||||||
ifeq ($(OS),Windows_NT)
|
ifeq ($(OS),Windows_NT)
|
||||||
@ -62,7 +63,7 @@ include $(TARGET)/modest/Makefile.mk
|
|||||||
OBJS := $(patsubst %.c,%.o,$(SRCS))
|
OBJS := $(patsubst %.c,%.o,$(SRCS))
|
||||||
|
|
||||||
shared: $(OBJS)
|
shared: $(OBJS)
|
||||||
$(CC) -shared $(IMP_FLAG) $(OBJS) $(LDFLAGS) -o $(LIB_TMP)/lib$(LIBNAME)$(LIBPOSTFIX)
|
$(CC) -shared $(IMP_FLAG) $(OBJS) -o $(LIB_TMP)/lib$(LIBNAME)$(LIBPOSTFIX) $(LDFLAGS)
|
||||||
|
|
||||||
static: shared
|
static: shared
|
||||||
$(AR) crus $(LIB_TMP)/lib$(LIBNAME)$(LIBSTATIC_POSTFIX).a $(OBJS)
|
$(AR) crus $(LIB_TMP)/lib$(LIBNAME)$(LIBSTATIC_POSTFIX).a $(OBJS)
|
||||||
|
Loading…
Reference in New Issue
Block a user