path: root/utils/regtools/Makefile
diff options
authorAmaury Pouly <>2013-06-12 19:49:26 +0200
committerAmaury Pouly <>2013-06-12 19:49:26 +0200
commit7143ea681c377fe5901bd79801366a26ae0d394a (patch)
tree34fdaaa83590130b57b187878a89394505950b82 /utils/regtools/Makefile
parent11da9d23fe323ce452fcd04a10a0ddf78eaa63ea (diff)
imxtools: move regtools to its own directory
The register tools are in no way stmp specific. The XML description of the registers is powerful enough to describe the STMP register which should be more than enough to describe virtually all other SoCs. The generators follow the STMP coding convention but others could be used as well. Change-Id: If1a9f56e4a3594161688de34adbea698e5aaecd8
Diffstat (limited to 'utils/regtools/Makefile')
1 files changed, 28 insertions, 0 deletions
diff --git a/utils/regtools/Makefile b/utils/regtools/Makefile
new file mode 100644
index 0000000000..5dad380e7b
--- /dev/null
+++ b/utils/regtools/Makefile
@@ -0,0 +1,28 @@
+CFLAGS=-g -std=c99 -W -Wall `xml2-config --cflags` $(DEFINES)
+CXXFLAGS=-g -W -Wall `xml2-config --cflags` $(DEFINES)
+LDFLAGS=`xml2-config --libs`
+BINS= tester headergen hwemulgen
+all: $(BINS)
+%.o: %.c
+ $(CC) $(CFLAGS) -c -o $@ $<
+%.o: %.cpp
+ $(CXX) $(CXXFLAGS) -c -o $@ $<
+headergen: headergen.o desc_parser.o
+ $(LD) -o $@ $^ $(LDFLAGS)
+hwemulgen: hwemulgen.o desc_parser.o
+ $(LD) -o $@ $^ $(LDFLAGS)
+tester: tester.o desc_parser.o
+ $(LD) -o $@ $^ $(LDFLAGS)
+ rm -fr *.o $(BINS)