f65c189e9b
`xxd' is not available on all systems, and on others does not support the `-i' flag. Since bin2c.sh relied on a tool that I can't seem to find a compatible version of, I have included a simple, portable replacement in C. Usage remains the same: bin2c ARRAYNAME < inputfile > outputfile. This change is also reflected in emul/Makefile.
13 lines
121 B
Makefile
13 lines
121 B
Makefile
.PHONY: all clean
|
|
|
|
all: bin2c
|
|
|
|
bin2c: bin2c.o
|
|
$(CC) -o $@ $<
|
|
|
|
%.o: %.c
|
|
$(CC) -c -o $@ $<
|
|
|
|
clean:
|
|
rm -rf bin2c bin2c.o
|