summaryrefslogtreecommitdiff
path: root/Makefile
blob: df1607103095051b1fd184e1904f1ab50909818a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
CFLAGS = -Wall -W -Wshadow -g -O2
#CFLAGS += $(shell if $(CC) -m32 -S -o /dev/null -xc /dev/null >/dev/null 2>&1; then echo "-m32"; fi)

#CFLAGS += -mwin32 -DWIN32_LEAN_AND_MEAN
SHELL = /bin/sh

all: x86info test

OBJS =\
	AMD/identify.o\
	AMD/bluesmoke.o\
	AMD/MSR-Athlon.o\
	AMD/MSR-K6.o\
	AMD/powernow.o\
	AMD/dumppsb.o\
	AMD/bugs.o\
\
	Cyrix/identify.o\
\
	Intel/identify.o\
	Intel/info.o\
	Intel/bluesmoke.o\
	Intel/cachesize.o\
	Intel/eblcr.o\
	Intel/MSR-P4.o\
	Intel/MSR-P6.o\
	Intel/microcode.o\
\
	IDT/identify.o\
	IDT/MSR-C3.o\
\
	NatSemi/identify.o\
\
	RiSE/identify.o\
\
	x86info.o\
	havecpuid.o\
	cpuid.o\
	cpuid_UP.o\
	features.o\
	identify.o\
	rdmsr.o\
	binary.o\
	mptable.o\
	get_model_name.o\
	mtrr.o \
	connector.o\
\
	bench/benchmarks.o\
	bench/MHz.o

x86info: $(OBJS)
	$(CC) $(CFLAGS) -o x86info $(OBJS)

.c.o:
	$(CC) $(CFLAGS) -o $@ -c $<

.S.o:
	$(CC) $(CFLAGS) -o $@ -c $<

nodes:
	scripts/makenodes

test:
	scripts/testnodes

clean:
	@find . -name "*.o" -exec rm {} \;
	@find . -name "*~" -exec rm {} \;
	@rm -f x86info x86info.exe