jenkins-bot has submitted this change and it was merged.
Change subject: Use GNU Make's implicit rules to build object and executable
files
......................................................................
Use GNU Make's implicit rules to build object and executable files
Thereby, CFLAGS, LDFLAGS and all the other environment variables get
actually used.
We drop -g from default CFLAGS, as debugging information are not
needed in a release.
Change-Id: I9409458ee75872fb6eb884ed866c7b2c5a122050
---
M Makefile
1 file changed, 4 insertions(+), 6 deletions(-)
Approvals:
Ottomata: Looks good to me, approved
jenkins-bot: Verified
diff --git a/Makefile b/Makefile
index e690fa4..bde7def 100644
--- a/Makefile
+++ b/Makefile
@@ -4,7 +4,10 @@
LDLIBS+=-ldb -lpthread
-CFLAGS+=-Wall -g
+CFLAGS+=-Wall
+# To get debug information into the executables, uncomment the
+# following line
+#CFLAGS+=-g
SUBDIRS=tests
@@ -13,13 +16,8 @@
all: collector filter
collector: collector.h collector.c export.o
- gcc -o collector collector.c export.o -ldb -lpthread
-
-filter: filter.c
- gcc -o filter filter.c
export.o: export.c collector.h
- gcc -c -o export.o export.c
clean:
$(RM) *.o collector filter
--
To view, visit https://gerrit.wikimedia.org/r/165622
To unsubscribe, visit https://gerrit.wikimedia.org/r/settings
Gerrit-MessageType: merged
Gerrit-Change-Id: I9409458ee75872fb6eb884ed866c7b2c5a122050
Gerrit-PatchSet: 2
Gerrit-Project: analytics/webstatscollector
Gerrit-Branch: master
Gerrit-Owner: QChris <[email protected]>
Gerrit-Reviewer: Ottomata <[email protected]>
Gerrit-Reviewer: jenkins-bot <>
_______________________________________________
MediaWiki-commits mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits