Set up a basic submodule
This commit is contained in:
+53
@@ -0,0 +1,53 @@
|
|||||||
|
# Prerequisites
|
||||||
|
*.d
|
||||||
|
|
||||||
|
# Object files
|
||||||
|
*.o
|
||||||
|
*.ko
|
||||||
|
*.obj
|
||||||
|
*.elf
|
||||||
|
|
||||||
|
# Linker output
|
||||||
|
*.ilk
|
||||||
|
*.map
|
||||||
|
*.exp
|
||||||
|
|
||||||
|
# Precompiled Headers
|
||||||
|
*.gch
|
||||||
|
*.pch
|
||||||
|
|
||||||
|
# Libraries
|
||||||
|
*.lib
|
||||||
|
*.a
|
||||||
|
*.la
|
||||||
|
*.lo
|
||||||
|
|
||||||
|
# Shared objects (inc. Windows DLLs)
|
||||||
|
*.dll
|
||||||
|
*.so
|
||||||
|
*.so.*
|
||||||
|
*.dylib
|
||||||
|
|
||||||
|
# Executables
|
||||||
|
*.exe
|
||||||
|
*.out
|
||||||
|
*.app
|
||||||
|
*.i*86
|
||||||
|
*.x86_64
|
||||||
|
*.hex
|
||||||
|
|
||||||
|
# Debug files
|
||||||
|
*.dSYM/
|
||||||
|
*.su
|
||||||
|
*.idb
|
||||||
|
*.pdb
|
||||||
|
*.log
|
||||||
|
|
||||||
|
# Kernel Module Compile Results
|
||||||
|
*.mod*
|
||||||
|
*.cmd
|
||||||
|
.tmp_versions/
|
||||||
|
modules.order
|
||||||
|
Module.symvers
|
||||||
|
Mkfile.old
|
||||||
|
dkms.conf
|
||||||
@@ -0,0 +1,3 @@
|
|||||||
|
[submodule "Toy"]
|
||||||
|
path = Toy
|
||||||
|
url = git@github.com:krgamestudios/Toy.git
|
||||||
@@ -1,11 +1,17 @@
|
|||||||
zlib License
|
Copyright (c) 2026 Kayne Ruse, KR Game Studios
|
||||||
|
|
||||||
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.
|
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:
|
Permission is granted to anyone to use this software for any purpose,
|
||||||
|
including commercial applications, and to alter it and redistribute it
|
||||||
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.
|
freely, subject to the following restrictions:
|
||||||
|
|
||||||
2. Altered source versions must be plainly marked as such, and must not be misrepresented as being the original software.
|
|
||||||
|
|
||||||
|
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.
|
3. This notice may not be removed or altered from any source distribution.
|
||||||
|
|||||||
@@ -1,2 +1,3 @@
|
|||||||
# Pactoy
|
# Pactoy
|
||||||
|
|
||||||
|
A test game for The Toy Programming Langauge.
|
||||||
|
|||||||
Submodule
+1
Submodule Toy added at 6ebbcc45a3
@@ -0,0 +1,70 @@
|
|||||||
|
#compiler settings reference
|
||||||
|
#CC=gcc
|
||||||
|
#CFLAGS+=-std=c17 -g -Wall -Werror -Wextra -Wpedantic -Wformat=2 -Wno-newline-eof
|
||||||
|
#LIBS+=-lm
|
||||||
|
#LDFLAGS+=
|
||||||
|
|
||||||
|
#directories (override the build destination)
|
||||||
|
export TOY_SOURCEDIR=source
|
||||||
|
export TOY_REPLDIR=repl
|
||||||
|
export TOY_OUTDIR=../out
|
||||||
|
export TOY_OBJDIR=obj
|
||||||
|
|
||||||
|
#targets
|
||||||
|
all: Toy
|
||||||
|
|
||||||
|
.PHONY: Toy
|
||||||
|
Toy:
|
||||||
|
$(MAKE) -C Toy/source -k
|
||||||
|
|
||||||
|
#util targets
|
||||||
|
$(TOY_OUTDIR):
|
||||||
|
mkdir $(TOY_OUTDIR)
|
||||||
|
|
||||||
|
$(TOY_OBJDIR):
|
||||||
|
mkdir $(TOY_OBJDIR)
|
||||||
|
|
||||||
|
#util commands
|
||||||
|
.PHONY: clean
|
||||||
|
clean:
|
||||||
|
ifeq ($(shell uname),Linux)
|
||||||
|
find . -type f -name '*.o' -delete
|
||||||
|
find . -type f -name '*.a' -delete
|
||||||
|
find . -type f -name '*.out' -delete
|
||||||
|
find . -type f -name '*.exe' -delete
|
||||||
|
find . -type f -name '*.dll' -delete
|
||||||
|
find . -type f -name '*.lib' -delete
|
||||||
|
find . -type f -name '*.so' -delete
|
||||||
|
find . -type f -name '*.dylib' -delete
|
||||||
|
find . -type d -name 'out' -delete
|
||||||
|
find . -type d -name 'obj' -delete
|
||||||
|
else ifeq ($(shell uname),NetBSD)
|
||||||
|
find . -type f -name '*.o' -delete
|
||||||
|
find . -type f -name '*.a' -delete
|
||||||
|
find . -type f -name '*.out' -delete
|
||||||
|
find . -type f -name '*.exe' -delete
|
||||||
|
find . -type f -name '*.dll' -delete
|
||||||
|
find . -type f -name '*.lib' -delete
|
||||||
|
find . -type f -name '*.so' -delete
|
||||||
|
find . -type f -name '*.dylib' -delete
|
||||||
|
find . -type d -name 'out' -delete
|
||||||
|
find . -type d -name 'obj' -delete
|
||||||
|
else ifeq ($(OS),Windows_NT)
|
||||||
|
$(RM) *.o *.a *.exe *.dll *.lib *.so *.dylib
|
||||||
|
$(RM) out
|
||||||
|
$(RM) obj
|
||||||
|
else ifeq ($(shell uname),Darwin)
|
||||||
|
find . -type f -name '*.o' -delete
|
||||||
|
find . -type f -name '*.a' -delete
|
||||||
|
find . -type f -name '*.out' -delete
|
||||||
|
find . -type f -name '*.exe' -delete
|
||||||
|
find . -type f -name '*.dll' -delete
|
||||||
|
find . -type f -name '*.lib' -delete
|
||||||
|
find . -type f -name '*.so' -delete
|
||||||
|
find . -type f -name '*.dylib' -delete
|
||||||
|
find . -type d -name 'out' -delete
|
||||||
|
find . -type d -name 'obj' -delete
|
||||||
|
else
|
||||||
|
@echo "Deletion failed - what platform is this?"
|
||||||
|
endif
|
||||||
|
|
||||||
Reference in New Issue
Block a user