1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
|
diff --git a/Makefile b/Makefile
index 3e9aa23..071620e 100644
--- a/Makefile
+++ b/Makefile
@@ -80,20 +80,20 @@ FULL_CFLAGS = $(BASE_FLAGS) $(CFLAGS) $(DEFINES) $(WARNINGS) $(INCLUDES) \
-MMD -MP $(shell pkg-config --cflags $(PKGS))
FULL_LDFLAGS = $(BASE_FLAGS) $(LDFLAGS) -shared -Wl,-soname,$(LIB_SONAME) \
$(shell pkg-config --libs $(PKGS))
-DEBUG_FLAGS = -g
+DEBUG_FLAGS =
RELEASE_FLAGS =
-COVERAGE_FLAGS = -g
+COVERAGE_FLAGS =
KEEP_SYMBOLS ?= 0
ifneq ($(KEEP_SYMBOLS),0)
-RELEASE_FLAGS += -g
+#RELEASE_FLAGS += -g
endif
DEBUG_LDFLAGS = $(FULL_LDFLAGS) $(DEBUG_FLAGS)
RELEASE_LDFLAGS = $(FULL_LDFLAGS) $(RELEASE_FLAGS)
-DEBUG_CFLAGS = $(FULL_CFLAGS) $(DEBUG_FLAGS) -DDEBUG
-RELEASE_CFLAGS = $(FULL_CFLAGS) $(RELEASE_FLAGS) -O2
-COVERAGE_CFLAGS = $(FULL_CFLAGS) $(COVERAGE_FLAGS) --coverage
+DEBUG_CFLAGS = $(FULL_CFLAGS) $(DEBUG_FLAGS)
+RELEASE_CFLAGS = $(FULL_CFLAGS) $(RELEASE_FLAGS)
+COVERAGE_CFLAGS = $(FULL_CFLAGS) $(COVERAGE_FLAGS)
#
# Files
@@ -119,11 +119,11 @@ COVERAGE_STATIC_LIB = $(COVERAGE_BUILD_DIR)/$(STATIC_LIB)
#
DEPS = $(DEBUG_OBJS:%.o=%.d) $(RELEASE_OBJS:%.o=%.d) $(COVERAGE_OBJS:%.o=%.d)
-ifneq ($(MAKECMDGOALS),clean)
-ifneq ($(strip $(DEPS)),)
--include $(DEPS)
-endif
-endif
+#ifneq ($(MAKECMDGOALS),clean)
+#ifneq ($(strip $(DEPS)),)
+#-include $(DEPS)
+#endif
+#endif
$(PKGCONFIG): | $(BUILD_DIR)
$(DEBUG_OBJS) $(DEBUG_LIB) $(DEBUG_STATIC_LIB): | $(DEBUG_BUILD_DIR)
@@ -191,7 +191,7 @@ $(DEBUG_LIB): $(DEBUG_OBJS)
$(RELEASE_LIB): $(RELEASE_OBJS)
$(LD) $(RELEASE_OBJS) $(RELEASE_LDFLAGS) -o $@
ifeq ($(KEEP_SYMBOLS),0)
- $(STRIP) $@
+# $(STRIP) $@
endif
$(DEBUG_LINK): $(DEBUG_LIB)
|