diff options
author | Nao Pross <naopross@thearcway.org> | 2018-11-29 00:05:39 +0100 |
---|---|---|
committer | Nao Pross <naopross@thearcway.org> | 2018-11-29 00:16:27 +0100 |
commit | 0c5dffe44ee1a13ab38041de73e3d0373458375e (patch) | |
tree | 9c9bfcd6b0b3890c7da2a2ef88510e637969970a /makefile | |
parent | Add padding to output (diff) | |
download | base32asm-0c5dffe44ee1a13ab38041de73e3d0373458375e.tar.gz base32asm-0c5dffe44ee1a13ab38041de73e3d0373458375e.zip |
Add b32d for future decoder implementation, update test
Diffstat (limited to '')
-rw-r--r-- | makefile | 25 |
1 files changed, 19 insertions, 6 deletions
@@ -1,15 +1,28 @@ -all: b32e - # test b32e hello - echo -n "hello" | ./b32e - @printf '\n' - echo -n "hello" | base32 -i +.PHONY: all +all: b32e b32d +.PHONY: test +test: b32e b32d + cat makefile | ./b32e > makefile.b32 + cat makefile | base32 -w 0 > makefile.check.b32 + + cat makefile.b32 | ./b32d + cat makefile.check.b32 | base32 -d + +# encoder b32e: b32e.o ld -o $@ $< b32e.o: b32e.asm nasm -f elf64 -g -F dwarf -O0 -w+all -o $@ $< +# decoder +b32d: b32d.o + ld -o $@ $< + +b32d.o: b32d.asm + nasm -f elf64 -g -F dwarf -O0 -w+all -o $@ $< + .PHONY: clean clean: - rm -f *.o b32e b32d + rm -f *.o b32e b32d *.b32 |