forked from rib/gputop
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile.generated
54 lines (50 loc) · 1.29 KB
/
Makefile.generated
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
data_dir = $(top_srcdir)/gputop-data
script_dir = $(top_srcdir)/scripts
oa_xml_files = \
oa-hsw.xml \
oa-bdw.xml \
oa-chv.xml \
oa-sklgt2.xml \
oa-sklgt3.xml \
oa-sklgt4.xml \
oa-bxt.xml \
oa-kblgt2.xml \
oa-kblgt3.xml \
oa-glk.xml \
oa-cflgt2.xml
gputop_xml_files = $(oa_xml_files:oa-%.xml=gputop-%.xml)
oa_generated_sources = \
oa-hsw.c \
oa-hsw.h \
oa-bdw.h \
oa-bdw.c \
oa-chv.h \
oa-chv.c \
oa-sklgt2.h \
oa-sklgt2.c \
oa-sklgt3.h \
oa-sklgt3.c \
oa-sklgt4.h \
oa-sklgt4.c \
oa-bxt.h \
oa-bxt.c \
oa-kblgt2.h \
oa-kblgt2.c \
oa-kblgt3.h \
oa-kblgt3.c \
oa-glk.h \
oa-glk.c \
oa-cflgt2.h \
oa-cflgt2.c
# Note: we avoid using a multi target rule here and outputting both the
# .c and .h files in one go so we don't hit problems with parallel
# make and multiple invocations of the same script trying to write
# to the same files.
oa-%.h: $(data_dir)/oa-%.xml $(script_dir)/gputop-oa-codegen.py Makefile.am
$(PYTHON2) $(PYTHON_FLAGS) $(script_dir)/gputop-oa-codegen.py \
--header=$(builddir)/oa-$(*).h \
--chipset="$(*)" $(data_dir)/oa-$(*).xml
oa-%.c: $(data_dir)/oa-%.xml $(script_dir)/gputop-oa-codegen.py Makefile.am
$(PYTHON2) $(PYTHON_FLAGS) $(script_dir)/gputop-oa-codegen.py \
--code=$(builddir)/oa-$(*).c \
--chipset="$(*)" $(data_dir)/oa-$(*).xml