diff --git a/tools/file2c/binaries/file2c b/tools/file2c/binaries/file2c new file mode 100755 index 00000000..403c7d8f Binary files /dev/null and b/tools/file2c/binaries/file2c differ diff --git a/tools/file2c/Binaries - Win32/file2c.exe b/tools/file2c/binaries/file2c.exe similarity index 100% rename from tools/file2c/Binaries - Win32/file2c.exe rename to tools/file2c/binaries/file2c.exe diff --git a/tools/file2c/readme.txt b/tools/file2c/readme.txt index 54984111..884ed7e0 100644 --- a/tools/file2c/readme.txt +++ b/tools/file2c/readme.txt @@ -1,6 +1,11 @@ This utility converts a file (of any type) into a c array 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: file2c -cs test.bmp test-image.h diff --git a/tools/file2c/source/Makefile b/tools/file2c/source/Makefile new file mode 100644 index 00000000..a6a7041c --- /dev/null +++ b/tools/file2c/source/Makefile @@ -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) + diff --git a/tools/file2c/Source/VS 2012 Project/file2c.sln b/tools/file2c/source/VS 2012 Project/file2c.sln similarity index 100% rename from tools/file2c/Source/VS 2012 Project/file2c.sln rename to tools/file2c/source/VS 2012 Project/file2c.sln diff --git a/tools/file2c/Source/VS 2012 Project/file2c.v11.suo b/tools/file2c/source/VS 2012 Project/file2c.v11.suo similarity index 100% rename from tools/file2c/Source/VS 2012 Project/file2c.v11.suo rename to tools/file2c/source/VS 2012 Project/file2c.v11.suo diff --git a/tools/file2c/Source/VS 2012 Project/file2c/file2c.vcxproj b/tools/file2c/source/VS 2012 Project/file2c/file2c.vcxproj similarity index 100% rename from tools/file2c/Source/VS 2012 Project/file2c/file2c.vcxproj rename to tools/file2c/source/VS 2012 Project/file2c/file2c.vcxproj diff --git a/tools/file2c/Source/VS 2012 Project/file2c/file2c.vcxproj.filters b/tools/file2c/source/VS 2012 Project/file2c/file2c.vcxproj.filters similarity index 100% rename from tools/file2c/Source/VS 2012 Project/file2c/file2c.vcxproj.filters rename to tools/file2c/source/VS 2012 Project/file2c/file2c.vcxproj.filters diff --git a/tools/file2c/Source/VS 2012 Project/file2c/file2c.vcxproj.user b/tools/file2c/source/VS 2012 Project/file2c/file2c.vcxproj.user similarity index 100% rename from tools/file2c/Source/VS 2012 Project/file2c/file2c.vcxproj.user rename to tools/file2c/source/VS 2012 Project/file2c/file2c.vcxproj.user diff --git a/tools/file2c/source/file2c b/tools/file2c/source/file2c new file mode 100755 index 00000000..403c7d8f Binary files /dev/null and b/tools/file2c/source/file2c differ diff --git a/tools/file2c/Source/file2c.c b/tools/file2c/source/file2c.c similarity index 99% rename from tools/file2c/Source/file2c.c rename to tools/file2c/source/file2c.c index d2b862e6..10fcc446 100644 --- a/tools/file2c/Source/file2c.c +++ b/tools/file2c/source/file2c.c @@ -150,3 +150,4 @@ size_t i; return 0; } +