mirror of
https://github.com/lexborisov/Modest
synced 2024-11-22 05:41:32 +03:00
Fix Makefile's for MSYS* of cygwin
This commit is contained in:
parent
c0877a7b5a
commit
3ae6381670
8
Makefile
8
Makefile
@ -14,7 +14,11 @@ BIN_TMP := bin
|
|||||||
MODEST_OPTIMIZATION_LEVEL ?= -O2
|
MODEST_OPTIMIZATION_LEVEL ?= -O2
|
||||||
|
|
||||||
CFLAGS ?= -Wall -Werror
|
CFLAGS ?= -Wall -Werror
|
||||||
CFLAGS += $(MODEST_OPTIMIZATION_LEVEL) -Wno-unused-variable -fPIC --std=c99 -I$(SRCDIR)
|
CFLAGS += $(MODEST_OPTIMIZATION_LEVEL) -Wno-unused-variable --std=c99 -I$(SRCDIR)
|
||||||
|
|
||||||
|
ifneq ($(OS),Windows_NT)
|
||||||
|
CFLAGS += -fPIC
|
||||||
|
endif
|
||||||
|
|
||||||
ifdef MODEST_BUILD_DEBUG
|
ifdef MODEST_BUILD_DEBUG
|
||||||
CFLAGS += -g
|
CFLAGS += -g
|
||||||
@ -80,4 +84,4 @@ test:
|
|||||||
test/myhtml/utils/avl_tree
|
test/myhtml/utils/avl_tree
|
||||||
test/myhtml/encoding_detect_meta test/myhtml/data/encoding/detect_meta.html
|
test/myhtml/encoding_detect_meta test/myhtml/data/encoding/detect_meta.html
|
||||||
|
|
||||||
.PHONY: all clean clone test
|
.PHONY: all clean clone test
|
||||||
|
@ -10,7 +10,11 @@ INCLUDE_TMP := include
|
|||||||
MODEST_OPTIMIZATION_LEVEL ?= -O2
|
MODEST_OPTIMIZATION_LEVEL ?= -O2
|
||||||
|
|
||||||
CFLAGS ?= -Wall -Werror
|
CFLAGS ?= -Wall -Werror
|
||||||
CFLAGS += $(MODEST_OPTIMIZATION_LEVEL) -Wno-unused-variable -fPIC --std=c99 -I../include
|
CFLAGS += $(MODEST_OPTIMIZATION_LEVEL) -Wno-unused-variable --std=c99 -I../include
|
||||||
|
|
||||||
|
ifneq ($(OS),Windows_NT)
|
||||||
|
CFLAGS += -fPIC
|
||||||
|
endif
|
||||||
|
|
||||||
MODEST_BUILD_WITHOUT_THREADS ?= NO
|
MODEST_BUILD_WITHOUT_THREADS ?= NO
|
||||||
ifeq ($(MODEST_BUILD_WITHOUT_THREADS),YES)
|
ifeq ($(MODEST_BUILD_WITHOUT_THREADS),YES)
|
||||||
@ -46,4 +50,4 @@ $(TARGET): $(OBJS)
|
|||||||
clean:
|
clean:
|
||||||
rm -f $(OBJS)
|
rm -f $(OBJS)
|
||||||
|
|
||||||
.PHONY: all
|
.PHONY: all
|
||||||
|
@ -10,7 +10,11 @@ INCLUDE_TMP := include
|
|||||||
MODEST_OPTIMIZATION_LEVEL ?= -O2
|
MODEST_OPTIMIZATION_LEVEL ?= -O2
|
||||||
|
|
||||||
CFLAGS ?= -Wall -Werror
|
CFLAGS ?= -Wall -Werror
|
||||||
CFLAGS += $(MODEST_OPTIMIZATION_LEVEL) -Wno-unused-variable -fPIC --std=c99 -I../include
|
CFLAGS += $(MODEST_OPTIMIZATION_LEVEL) -Wno-unused-variable --std=c99 -I../include
|
||||||
|
|
||||||
|
ifneq ($(OS),Windows_NT)
|
||||||
|
CFLAGS += -fPIC
|
||||||
|
endif
|
||||||
|
|
||||||
MODEST_BUILD_WITHOUT_THREADS ?= NO
|
MODEST_BUILD_WITHOUT_THREADS ?= NO
|
||||||
ifeq ($(MODEST_BUILD_WITHOUT_THREADS),YES)
|
ifeq ($(MODEST_BUILD_WITHOUT_THREADS),YES)
|
||||||
@ -47,4 +51,4 @@ $(TARGET): $(OBJS)
|
|||||||
clean:
|
clean:
|
||||||
rm -f $(OBJS)
|
rm -f $(OBJS)
|
||||||
|
|
||||||
.PHONY: all
|
.PHONY: all
|
||||||
|
Loading…
Reference in New Issue
Block a user