mainboard/dell: Add new mainboard XPS 8300 (Sandy Bridge)
[coreboot.git] / util / msrtool / Makefile.in
blob326dda309f915b336e2022a53d0a5299b808e316
1 ## SPDX-License-Identifier: GPL-2.0-only
2 # Makefile for msrtool
5 PROGRAM = msrtool
7 CC = @CC@
8 INSTALL = @INSTALL@
9 PREFIX = @PREFIX@
10 CFLAGS = @CFLAGS@
11 LDFLAGS = @LDFLAGS@
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)
17 all: $(PROGRAM)
19 $(PROGRAM): $(OBJS) Makefile.deps
20 $(CC) -o $@ $(OBJS) $(LDFLAGS)
22 $(PROGRAM).o: $(PROGRAM).c
23 $(CC) $(CFLAGS) -DVERSION='"@VERSION@"' -c $< -o $@
25 install: $(PROGRAM)
26 mkdir -p $(DESTDIR)$(PREFIX)/sbin
27 $(INSTALL) $(PROGRAM) $(DESTDIR)$(PREFIX)/sbin
29 distprep: distclean Makefile.deps
31 clean:
32 rm -f $(PROGRAM) $(OBJS)
34 distclean: clean
35 rm -f Makefile
37 mrproper: distclean
38 rm -f Makefile.deps
40 dep:
41 rm -f Makefile.deps
42 $(MAKE) Makefile.deps
44 Makefile.deps: $(patsubst %.o,%.c,$(OBJS))
45 $(CC) -MM $^ > $@
47 .PHONY: all distprep clean distclean mrproper dep
49 -include Makefile.deps