file2c tool - Makefile, readme, linux binary
This commit is contained in:
parent
fb641b712e
commit
9b1dd95ff7
BIN
tools/file2c/binaries/file2c
Executable file
BIN
tools/file2c/binaries/file2c
Executable file
Binary file not shown.
@ -1,6 +1,11 @@
|
|||||||
This utility converts a file (of any type) into a c array
|
This utility converts a file (of any type) into a c array
|
||||||
so that it can be compiled into your project.
|
so that it can be compiled into your project.
|
||||||
|
|
||||||
|
Please note that we don't take any responsibility for the
|
||||||
|
precompiled binaries at all. They are provided 'as is' without
|
||||||
|
any warranty.
|
||||||
|
|
||||||
|
|
||||||
For example:
|
For example:
|
||||||
file2c -cs test.bmp test-image.h
|
file2c -cs test.bmp test-image.h
|
||||||
|
|
||||||
|
15
tools/file2c/source/Makefile
Normal file
15
tools/file2c/source/Makefile
Normal file
@ -0,0 +1,15 @@
|
|||||||
|
TARGET = file2c
|
||||||
|
SRCS = $(shell find -name '*.c')
|
||||||
|
OBJS = $(addsuffix .o,$(basename $(SRCS)))
|
||||||
|
|
||||||
|
CFLAGS = -Wall -p
|
||||||
|
|
||||||
|
CC = /usr/bin/gcc
|
||||||
|
RM = /bin/rm -f
|
||||||
|
|
||||||
|
all: clean
|
||||||
|
$(CC) $(CFLAGS) -o $(TARGET) $(SRCS)
|
||||||
|
|
||||||
|
clean:
|
||||||
|
$(RM) $(TARGET) $(OBJS)
|
||||||
|
|
BIN
tools/file2c/source/file2c
Executable file
BIN
tools/file2c/source/file2c
Executable file
Binary file not shown.
@ -150,3 +150,4 @@ size_t i;
|
|||||||
|
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue
Block a user