Fix Makefile's for MSYS* of cygwin

This commit is contained in:
Vincent Torri 2017-02-21 21:26:36 +01:00
parent c0877a7b5a
commit 3ae6381670
3 changed files with 18 additions and 6 deletions

View File

@ -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

View File

@ -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

View File

@ -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