diff options
| author | Amaury Pouly <amaury.pouly@gmail.com> | 2012-11-14 12:35:21 +0100 |
|---|---|---|
| committer | Amaury Pouly <amaury.pouly@gmail.com> | 2012-11-14 12:35:21 +0100 |
| commit | 0c6b63479d83ada8782c751f779fef1271e2b874 (patch) | |
| tree | e2db6cdfa340b9c5e0d2a34b66c71bb45215abcf /utils/imxtools/regtools/Makefile | |
| parent | 5ead8f3f441221f19830af2866a33a7f3f03423e (diff) | |
| download | rockbox-0c6b63479d83ada8782c751f779fef1271e2b874.zip rockbox-0c6b63479d83ada8782c751f779fef1271e2b874.tar.gz rockbox-0c6b63479d83ada8782c751f779fef1271e2b874.tar.bz2 rockbox-0c6b63479d83ada8782c751f779fef1271e2b874.tar.xz | |
imxtools: add regtools to work with register descriptions
These tools allow one to read a register description in a XML
file and to produce something useful out of it. Three example
programs are written:
- tester which simply prints the register tree
- headergen which produces a set of headers with the #define
- hwemulgen which produces something for the hwemul tool (to come)
Change-Id: I52573688b29d5faeaf64ce7c5ffe08ee8db3d33c
Diffstat (limited to 'utils/imxtools/regtools/Makefile')
| -rw-r--r-- | utils/imxtools/regtools/Makefile | 28 |
1 files changed, 28 insertions, 0 deletions
diff --git a/utils/imxtools/regtools/Makefile b/utils/imxtools/regtools/Makefile new file mode 100644 index 0000000..5dad380 --- /dev/null +++ b/utils/imxtools/regtools/Makefile @@ -0,0 +1,28 @@ +DEFINES= +CC=gcc +CXX=g++ +LD=g++ +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) + +clean: + rm -fr *.o $(BINS) |