From 6dbae0c34040a41f7f00fb3e7d04074b5625b2ae Mon Sep 17 00:00:00 2001 From: Danny Holman Date: Sun, 4 Aug 2024 21:59:14 -0500 Subject: Initial commit Signed-off-by: Danny Holman --- .gitignore | 34 ++++++++++++++++++++++++++++++++++ LICENSE | 22 ++++++++++++++++++++++ Makefile | 42 ++++++++++++++++++++++++++++++++++++++++++ doc/dco.txt | 26 ++++++++++++++++++++++++++ 4 files changed, 124 insertions(+) create mode 100644 .gitignore create mode 100644 LICENSE create mode 100644 Makefile create mode 100644 doc/dco.txt diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..78e4e10 --- /dev/null +++ b/.gitignore @@ -0,0 +1,34 @@ +# Normal rules +.* +*.a +*.bin +*.bz2 +*.c.* +*.d +*.dll +*.dwo +*.elf +*.exe +*.gz +*.i +*.ll +*.lst +*.lzma +*.lzo +*.o +*.o.* +*.patch +*.so +*.tar +*.xz +*.zstd + +# Don't ignore these +!.gitattributes +!.gitignore + +# ctags/cscope files +cscope.* +ncscope.* +tags +TAGS diff --git a/LICENSE b/LICENSE new file mode 100644 index 0000000..f418435 --- /dev/null +++ b/LICENSE @@ -0,0 +1,22 @@ +Copyright notice: + + (C) 2024 Danny Holman + + This software is provided 'as-is', without any express or implied + warranty. In no event will the authors be held liable for any damages + arising from the use of this software. + + Permission is granted to anyone to use this software for any purpose, + including commercial applications, and to alter it and redistribute it + freely, subject to the following restrictions: + + 1. The origin of this software must not be misrepresented; you must not + claim that you wrote the original software. If you use this software + in a product, an acknowledgment in the product documentation would be + appreciated but is not required. + 2. Altered source versions must be plainly marked as such, and must not be + misrepresented as being the original software. + 3. This notice may not be removed or altered from any source distribution. + + Danny Holman + dholman@gymli.org diff --git a/Makefile b/Makefile new file mode 100644 index 0000000..b6c0086 --- /dev/null +++ b/Makefile @@ -0,0 +1,42 @@ +CC?=gcc +INCLUDE?=-Iinclude +CFLAGS?=-O0 +LDFLAGS?= +LIBS?=-lglfw -lvulkan + +# -- Do not edit below this line -- + +VERSION:="$(shell git describe --abbrev=4 --dirty --always --tags)" +INCLUDE:=$(INCLUDE) +CFLAGS:=$(CFLAGS) -Wall -Wextra -DVERSION=\"$(VERSION)\" -ggdb -fstack-protector-all -fPIC +LDFLAGS:=$(LDFLAGS) -shared +LIBS:=$(LIBS) + +ENGINE=librune.so +ENGINE_OBJS=src/init.o \ + src/graphics.o \ + src/callbacks.o \ + +LINK_LIST=$(LDFLAGS) \ + $(ENGINE_OBJS) \ + $(LIBS) \ + +.PHONY: all clean install install-headers +.SUFFIXES: .o .c + +all: $(ENGINE) + +$(ENGINE): $(ENGINE_OBJS) + @$(CC) -o $@ $(LINK_LIST) + @echo [LD] $@ + +.c.o: + @$(CC) -MD -c $< -o $@ $(CFLAGS) $(INCLUDE) + @echo [CC] $@ + +clean: + $(RM) $(ENGINE) + $(RM) $(ENGINE_OBJS) *.o */*.o */*/*.o + $(RM) $(ENGINE_OBJS:.o=.d) *.d */*.d */*/*.d + +-include $(ENGINE_OBJS:.o=.d) diff --git a/doc/dco.txt b/doc/dco.txt new file mode 100644 index 0000000..f2928d2 --- /dev/null +++ b/doc/dco.txt @@ -0,0 +1,26 @@ +Developer's Certificate of Origin 1.1 +------------------------------------- + +By making a contribution to this project, I certify that: + + (a) The contribution was created in whole or in part by me and I + have the right to submit it under the open source license + indicated in the file; or + + (b) The contribution is based upon previous work that, to the best + of my knowledge, is covered under an appropriate open source + license and I have the right under that license to submit that + work with modifications, whether created in whole or in part + by me, under the same open source license (unless I am + permitted to submit under a different license), as indicated + in the file; or + + (c) The contribution was provided directly to me by some other + person who certified (a), (b) or (c) and I have not modified + it. + + (d) I understand and agree that this project and the contribution + are public and that a record of the contribution (including all + personal information I submit with it, including my sign-off) is + maintained indefinitely and may be redistributed consistent with + this project or the open source license(s) involved. -- cgit v1.2.3