Lines 1-4
Link Here
|
1 |
--- Makefile.orig 2016-04-15 20:19:32 UTC |
1 |
--- Makefile.orig 2016-09-02 21:52:54 UTC |
2 |
+++ Makefile |
2 |
+++ Makefile |
3 |
@@ -1,5 +1,4 @@ |
3 |
@@ -1,5 +1,4 @@ |
4 |
-CFLAGS := -g -Os |
4 |
-CFLAGS := -g -Os |
Lines 7-13
Link Here
|
7 |
etcprefix := |
7 |
etcprefix := |
8 |
MANDIR := ${prefix}/share/man |
8 |
MANDIR := ${prefix}/share/man |
9 |
# Define appropiately for your distribution |
9 |
# Define appropiately for your distribution |
10 |
@@ -32,13 +31,20 @@ all: mcelog |
10 |
@@ -27,13 +26,20 @@ all: mcelog |
11 |
|
11 |
|
12 |
.PHONY: install clean depend FORCE |
12 |
.PHONY: install clean depend FORCE |
13 |
|
13 |
|
Lines 18-24
Link Here
|
18 |
- client.o cache.o sysfs.o yellow.o page.o rbtree.o \ |
18 |
- client.o cache.o sysfs.o yellow.o page.o rbtree.o \ |
19 |
+ eventloop.o leaky-bucket.o memdb.o server.o \ |
19 |
+ eventloop.o leaky-bucket.o memdb.o server.o \ |
20 |
+ client.o cache.o rbtree.o \ |
20 |
+ client.o cache.o rbtree.o \ |
21 |
xeon75xx.o sandy-bridge.o ivy-bridge.o haswell.o \ |
21 |
sandy-bridge.o ivy-bridge.o haswell.o \ |
22 |
broadwell_de.o broadwell_epex.o skylake_xeon.o \ |
22 |
broadwell_de.o broadwell_epex.o skylake_xeon.o \ |
23 |
- msr.o bus.o unknown.o |
23 |
- msr.o bus.o unknown.o |
24 |
+ msr.o |
24 |
+ msr.o |
Lines 28-37
Link Here
|
28 |
+ifdef FREEBSD |
28 |
+ifdef FREEBSD |
29 |
+OBJ += memstream.o |
29 |
+OBJ += memstream.o |
30 |
+endif |
30 |
+endif |
31 |
DISKDB_OBJ := diskdb.o dimm.o db.o |
31 |
CLEAN := mcelog dmi tsc dbquery .depend .depend.X dbquery.o \ |
32 |
CLEAN := mcelog dmi tsc dbquery .depend .depend.X dbquery.o ${DISKDB_OBJ} \ |
|
|
33 |
version.o version.c version.tmp |
32 |
version.o version.c version.tmp |
34 |
@@ -55,7 +61,7 @@ endif |
33 |
DOC := mce.pdf |
|
|
34 |
@@ -42,7 +48,7 @@ ADD_DEFINES := |
35 |
|
35 |
|
36 |
SRC := $(OBJ:.o=.c) |
36 |
SRC := $(OBJ:.o=.c) |
37 |
|
37 |
|
Lines 40-46
Link Here
|
40 |
|
40 |
|
41 |
# dbquery intentionally not installed by default |
41 |
# dbquery intentionally not installed by default |
42 |
install: mcelog mcelog.conf mcelog.conf.5 mcelog.triggers.5 |
42 |
install: mcelog mcelog.conf mcelog.conf.5 mcelog.triggers.5 |
43 |
@@ -94,7 +100,7 @@ depend: .depend |
43 |
@@ -81,7 +87,7 @@ depend: .depend |
44 |
|
44 |
|
45 |
version.tmp: FORCE |
45 |
version.tmp: FORCE |
46 |
( echo -n "char version[] = \"" ; \ |
46 |
( echo -n "char version[] = \"" ; \ |
Lines 49-55
Link Here
|
49 |
if [ -d .git ] ; then \ |
49 |
if [ -d .git ] ; then \ |
50 |
git describe --tags HEAD | tr -d '\n'; \ |
50 |
git describe --tags HEAD | tr -d '\n'; \ |
51 |
else \ |
51 |
else \ |
52 |
@@ -110,8 +116,6 @@ version.c: version.tmp |
52 |
@@ -97,8 +103,6 @@ version.c: version.tmp |
53 |
.depend: ${SRC} |
53 |
.depend: ${SRC} |
54 |
${CC} -MM -I. ${SRC} > .depend.X && mv .depend.X .depend |
54 |
${CC} -MM -I. ${SRC} > .depend.X && mv .depend.X .depend |
55 |
|
55 |
|