This program had not seen updates since 2017 and thus cannot report
newer CPU models (the list of known ones is hardcoded). Use simple
library call instead of manually decoding the CPU code name.
While here, simplify the installation recipe in `do-install' target
and append to our default {C,LD}FLAGS rather than overwriting them.
Requested by: Dmitry Lukhtionov
16 lines
387 B
Plaintext
16 lines
387 B
Plaintext
--- Makefile.orig 2017-07-03 16:04:31 UTC
|
|
+++ Makefile
|
|
@@ -1,9 +1,9 @@
|
|
# Base CFLAGS
|
|
-CFLAGS := -O2 -fomit-frame-pointer -std=c99 \
|
|
- -pedantic -Wall -Wextra -MMD -pipe
|
|
+CFLAGS += -std=c99 -pedantic -Wall -Wextra -MMD \
|
|
+ -I$(LOCALBASE)/include -DUSE_LIBCPUID
|
|
|
|
# Base LDFLAGS
|
|
-LDFLAGS := -lcursesw -lm
|
|
+LDFLAGS += $(NCURSESLIBS) -lm -L$(LOCALBASE)/lib -lcpuid
|
|
|
|
# -----------
|
|
|