1
0
mirror of https://github.com/hsoft/collapseos.git synced 2024-10-06 11:31:04 +11:00
collapseos/tools/bin2c/Makefile
Byron A. Grobe f65c189e9b
Replace bin2c.sh with a more portable implementation.
`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.
2020-04-05 13:04:05 -05:00

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