1 ## SPDX-License-Identifier: GPL-2.0-only
13 TARGETS
= geodegx2.o geodelx.o cs5536.o k8.o via_c7.o intel_pentium3_early.o intel_pentium3.o intel_pentium4_early.o intel_pentium4_later.o intel_pentium_d.o intel_core1.o intel_core2_early.o intel_core2_later.o intel_nehalem.o intel_atom.o
14 SYSTEMS
= linux.o darwin.o freebsd.o
15 OBJS
= $(PROGRAM
).o msrutils.o sys.o
$(SYSTEMS
) $(TARGETS
)
19 $(PROGRAM
): $(OBJS
) Makefile.deps
20 $(CC
) -o
$@
$(OBJS
) $(LDFLAGS
)
22 $(PROGRAM
).o
: $(PROGRAM
).c
23 $(CC
) $(CFLAGS
) -DVERSION
='"@VERSION@"' -c
$< -o
$@
26 mkdir
-p
$(DESTDIR
)$(PREFIX
)/sbin
27 $(INSTALL
) $(PROGRAM
) $(DESTDIR
)$(PREFIX
)/sbin
29 distprep
: distclean Makefile.deps
32 rm -f
$(PROGRAM
) $(OBJS
)
44 Makefile.deps
: $(patsubst %.o
,%.c
,$(OBJS
))
47 .PHONY
: all distprep
clean distclean mrproper dep
49 -include Makefile.deps