1
0
Fork 0
mirror of https://github.com/anrieff/libcpuid synced 2025-10-13 11:10:39 +00:00
libcpuid/libcpuid/Makefile.am
The Tumultuous Unicorn Of Darkness dc06877f4f
Update match_entry_t to remove internal codes and bits
Remove brand_code, model_bits and model_code fields, add a new brand sub-struct.

There fields were complicated to manage, adding complex functions to make it work.
amd_bits_t and intel_bits_t enums were truncated, I had to replace them with #define in 2e01aa0303.

Some of these #define were conflicting with other C headers (ctype.h on OpenBSD, corecrt_wctype.h on Windows), that is why I wanted to get rid of it.

I updated some CPU codenames meanwhile for more consistency.

Fix #212.
2025-04-27 19:22:11 +02:00

74 lines
1.6 KiB
Makefile

EXTRA_DIST =
lib_LTLIBRARIES =
noinst_LTLIBRARIES =
lib_LTLIBRARIES += libcpuid.la
libcpuid_la_LDFLAGS = \
-export-symbols $(srcdir)/libcpuid.sym \
-no-undefined -version-info @LIBCPUID_VERSION_INFO@
libcpuid_la_SOURCES = \
cpuid_main.c \
recog_amd.c \
recog_arm.c \
recog_centaur.c \
recog_intel.c \
rdtsc.c \
asm-bits.c \
libcpuid_util.c \
rdcpuid.c \
rdmsr.c
if WINDOWS
libcpuid_la_SOURCES += msrdriver.c
endif
libcpuid_la_DEPENDENCIES = \
$(srcdir)/libcpuid.sym
libcpuidincludedir = $(includedir)/libcpuid
libcpuidinclude_HEADERS = \
libcpuid.h \
libcpuid_constants.h \
libcpuid_types.h
noinst_HEADERS = \
asm-bits.h \
libcpuid_arm_driver.h \
libcpuid_internal.h \
libcpuid_util.h \
recog_amd.h \
recog_arm.h \
recog_centaur.h \
recog_intel.h \
rdcpuid.h \
rdtsc.h
EXTRA_DIST += libcpuid.sym libcpuid_vc71.vcproj libcpuid_vc10.vcxproj libcpuid_vc10.vcxproj.filters
if HAVE_DOXYGEN
directory = $(top_srcdir)/libcpuid/docs/man/man3
dist_man_MANS = $(directory)/cpu_id_t.3 \
$(directory)/cpu_list_t.3 \
$(directory)/cpu_mark_t.3 \
$(directory)/cpu_raw_data_t.3 \
$(directory)/libcpuid.3 \
$(directory)/cpuid_tool.3
$(directory)/cpu_id_t.3: doxyfile.stamp
$(directory)/cpu_list_t.3: doxyfile.stamp
$(directory)/cpu_mark_t.3: doxyfile.stamp
$(directory)/cpu_raw_data_t.3: doxyfile.stamp
$(directory)/libcpuid.3: doxyfile.stamp
$(directory)/cpuid_tool.3: doxyfile.stamp
doxyfile.stamp:
$(DOXYGEN) Doxyfile
echo Timestamp > doxyfile.stamp
CLEANFILES = doxyfile.stamp
all-local: doxyfile.stamp
clean-local:
rm -rf $(top_srcdir)/libcpuid/docs
endif