First commit
This commit is contained in:
commit
4d7084a6de
BIN
.cache/clangd/index/affine-mat.h.801E3D35CA46BBBF.idx
Normal file
BIN
.cache/clangd/index/affine-mat.h.801E3D35CA46BBBF.idx
Normal file
Binary file not shown.
BIN
.cache/clangd/index/affine-post.h.08888BC2A67FF356.idx
Normal file
BIN
.cache/clangd/index/affine-post.h.08888BC2A67FF356.idx
Normal file
Binary file not shown.
BIN
.cache/clangd/index/affine-post.h.F251B0C3CD95F7FC.idx
Normal file
BIN
.cache/clangd/index/affine-post.h.F251B0C3CD95F7FC.idx
Normal file
Binary file not shown.
BIN
.cache/clangd/index/affine-pre.h.96B1C872618C1E0E.idx
Normal file
BIN
.cache/clangd/index/affine-pre.h.96B1C872618C1E0E.idx
Normal file
Binary file not shown.
BIN
.cache/clangd/index/affine-pre.h.D2A7FE13BD494B75.idx
Normal file
BIN
.cache/clangd/index/affine-pre.h.D2A7FE13BD494B75.idx
Normal file
Binary file not shown.
BIN
.cache/clangd/index/affine.h.232C8C4D0B89D82E.idx
Normal file
BIN
.cache/clangd/index/affine.h.232C8C4D0B89D82E.idx
Normal file
Binary file not shown.
BIN
.cache/clangd/index/affine.h.C5981434FA2D6146.idx
Normal file
BIN
.cache/clangd/index/affine.h.C5981434FA2D6146.idx
Normal file
Binary file not shown.
BIN
.cache/clangd/index/affine.h.E6E6D6EC6CEA28D6.idx
Normal file
BIN
.cache/clangd/index/affine.h.E6E6D6EC6CEA28D6.idx
Normal file
Binary file not shown.
BIN
.cache/clangd/index/affine2d.h.198CA3EE22F49A97.idx
Normal file
BIN
.cache/clangd/index/affine2d.h.198CA3EE22F49A97.idx
Normal file
Binary file not shown.
BIN
.cache/clangd/index/affine2d.h.E4B637995F20EBAB.idx
Normal file
BIN
.cache/clangd/index/affine2d.h.E4B637995F20EBAB.idx
Normal file
Binary file not shown.
BIN
.cache/clangd/index/bezier.h.77D9586CE31EE074.idx
Normal file
BIN
.cache/clangd/index/bezier.h.77D9586CE31EE074.idx
Normal file
Binary file not shown.
BIN
.cache/clangd/index/bitmap.h.AD4FEEC482722464.idx
Normal file
BIN
.cache/clangd/index/bitmap.h.AD4FEEC482722464.idx
Normal file
Binary file not shown.
BIN
.cache/clangd/index/box.h.116F022CEFEA1A85.idx
Normal file
BIN
.cache/clangd/index/box.h.116F022CEFEA1A85.idx
Normal file
Binary file not shown.
BIN
.cache/clangd/index/box.h.3C205620278D6594.idx
Normal file
BIN
.cache/clangd/index/box.h.3C205620278D6594.idx
Normal file
Binary file not shown.
BIN
.cache/clangd/index/cam.h.200991FEE772B7B2.idx
Normal file
BIN
.cache/clangd/index/cam.h.200991FEE772B7B2.idx
Normal file
Binary file not shown.
BIN
.cache/clangd/index/cam.h.6EC8ACBD088D3D6D.idx
Normal file
BIN
.cache/clangd/index/cam.h.6EC8ACBD088D3D6D.idx
Normal file
Binary file not shown.
BIN
.cache/clangd/index/cglm.h.9016EBB36FED6D66.idx
Normal file
BIN
.cache/clangd/index/cglm.h.9016EBB36FED6D66.idx
Normal file
Binary file not shown.
BIN
.cache/clangd/index/color.h.F2F52BE05879E44F.idx
Normal file
BIN
.cache/clangd/index/color.h.F2F52BE05879E44F.idx
Normal file
Binary file not shown.
BIN
.cache/clangd/index/color.h.FE35235D7039D8C9.idx
Normal file
BIN
.cache/clangd/index/color.h.FE35235D7039D8C9.idx
Normal file
Binary file not shown.
BIN
.cache/clangd/index/common.h.60AD3D2A306D8A51.idx
Normal file
BIN
.cache/clangd/index/common.h.60AD3D2A306D8A51.idx
Normal file
Binary file not shown.
BIN
.cache/clangd/index/curve.h.AAF8B5C752035DDC.idx
Normal file
BIN
.cache/clangd/index/curve.h.AAF8B5C752035DDC.idx
Normal file
Binary file not shown.
BIN
.cache/clangd/index/curve.h.EF5E40098283BEF9.idx
Normal file
BIN
.cache/clangd/index/curve.h.EF5E40098283BEF9.idx
Normal file
Binary file not shown.
BIN
.cache/clangd/index/ease.h.F667846574C20DDA.idx
Normal file
BIN
.cache/clangd/index/ease.h.F667846574C20DDA.idx
Normal file
Binary file not shown.
BIN
.cache/clangd/index/euler.h.D9CCF43A68DB32ED.idx
Normal file
BIN
.cache/clangd/index/euler.h.D9CCF43A68DB32ED.idx
Normal file
Binary file not shown.
BIN
.cache/clangd/index/euler.h.F05C4A505221B361.idx
Normal file
BIN
.cache/clangd/index/euler.h.F05C4A505221B361.idx
Normal file
Binary file not shown.
BIN
.cache/clangd/index/fmath.h.973CC0D6222296DF.idx
Normal file
BIN
.cache/clangd/index/fmath.h.973CC0D6222296DF.idx
Normal file
Binary file not shown.
BIN
.cache/clangd/index/frustum.h.1E82E39EE4180E26.idx
Normal file
BIN
.cache/clangd/index/frustum.h.1E82E39EE4180E26.idx
Normal file
Binary file not shown.
BIN
.cache/clangd/index/frustum.h.6D82D1CE62AF8FF9.idx
Normal file
BIN
.cache/clangd/index/frustum.h.6D82D1CE62AF8FF9.idx
Normal file
Binary file not shown.
BIN
.cache/clangd/index/gfx.h.DFE065BB35C54DB0.idx
Normal file
BIN
.cache/clangd/index/gfx.h.DFE065BB35C54DB0.idx
Normal file
Binary file not shown.
BIN
.cache/clangd/index/glad.h.CFB97092C7C292B2.idx
Normal file
BIN
.cache/clangd/index/glad.h.CFB97092C7C292B2.idx
Normal file
Binary file not shown.
BIN
.cache/clangd/index/glfw3.h.E6FEB5EB08F97FF4.idx
Normal file
BIN
.cache/clangd/index/glfw3.h.E6FEB5EB08F97FF4.idx
Normal file
Binary file not shown.
BIN
.cache/clangd/index/intrin.h.B071B3FF5462BDE1.idx
Normal file
BIN
.cache/clangd/index/intrin.h.B071B3FF5462BDE1.idx
Normal file
Binary file not shown.
BIN
.cache/clangd/index/io.h.48B25F60F100B5B6.idx
Normal file
BIN
.cache/clangd/index/io.h.48B25F60F100B5B6.idx
Normal file
Binary file not shown.
BIN
.cache/clangd/index/io.h.647E8F0D564DCAAF.idx
Normal file
BIN
.cache/clangd/index/io.h.647E8F0D564DCAAF.idx
Normal file
Binary file not shown.
BIN
.cache/clangd/index/ivec2.h.BB0419D5A2CFEE1B.idx
Normal file
BIN
.cache/clangd/index/ivec2.h.BB0419D5A2CFEE1B.idx
Normal file
Binary file not shown.
BIN
.cache/clangd/index/ivec2.h.C7B06C7AE355CF57.idx
Normal file
BIN
.cache/clangd/index/ivec2.h.C7B06C7AE355CF57.idx
Normal file
Binary file not shown.
BIN
.cache/clangd/index/ivec3.h.1EEF3EEA60C12386.idx
Normal file
BIN
.cache/clangd/index/ivec3.h.1EEF3EEA60C12386.idx
Normal file
Binary file not shown.
BIN
.cache/clangd/index/ivec4.h.8B62D46829F719A1.idx
Normal file
BIN
.cache/clangd/index/ivec4.h.8B62D46829F719A1.idx
Normal file
Binary file not shown.
BIN
.cache/clangd/index/khrplatform.h.7FB474C9EB85D3C1.idx
Normal file
BIN
.cache/clangd/index/khrplatform.h.7FB474C9EB85D3C1.idx
Normal file
Binary file not shown.
BIN
.cache/clangd/index/main.c.4CB5CE34A69A03F5.idx
Normal file
BIN
.cache/clangd/index/main.c.4CB5CE34A69A03F5.idx
Normal file
Binary file not shown.
BIN
.cache/clangd/index/main.h.5E55335D654F222C.idx
Normal file
BIN
.cache/clangd/index/main.h.5E55335D654F222C.idx
Normal file
Binary file not shown.
BIN
.cache/clangd/index/mat2.h.5F322A864550270B.idx
Normal file
BIN
.cache/clangd/index/mat2.h.5F322A864550270B.idx
Normal file
Binary file not shown.
BIN
.cache/clangd/index/mat2.h.C34024B62509D2AA.idx
Normal file
BIN
.cache/clangd/index/mat2.h.C34024B62509D2AA.idx
Normal file
Binary file not shown.
BIN
.cache/clangd/index/mat2.h.E9DAF5C7B045103D.idx
Normal file
BIN
.cache/clangd/index/mat2.h.E9DAF5C7B045103D.idx
Normal file
Binary file not shown.
BIN
.cache/clangd/index/mat3.h.3356226B7ECC7153.idx
Normal file
BIN
.cache/clangd/index/mat3.h.3356226B7ECC7153.idx
Normal file
Binary file not shown.
BIN
.cache/clangd/index/mat3.h.B7529B4A51AACD00.idx
Normal file
BIN
.cache/clangd/index/mat3.h.B7529B4A51AACD00.idx
Normal file
Binary file not shown.
BIN
.cache/clangd/index/mat3.h.E33C1AF92792A524.idx
Normal file
BIN
.cache/clangd/index/mat3.h.E33C1AF92792A524.idx
Normal file
Binary file not shown.
BIN
.cache/clangd/index/mat4.h.225EA351D88F499E.idx
Normal file
BIN
.cache/clangd/index/mat4.h.225EA351D88F499E.idx
Normal file
Binary file not shown.
BIN
.cache/clangd/index/mat4.h.53882B0BA86EBB0A.idx
Normal file
BIN
.cache/clangd/index/mat4.h.53882B0BA86EBB0A.idx
Normal file
Binary file not shown.
BIN
.cache/clangd/index/mat4.h.B4FEFDBD9483F03D.idx
Normal file
BIN
.cache/clangd/index/mat4.h.B4FEFDBD9483F03D.idx
Normal file
Binary file not shown.
BIN
.cache/clangd/index/ortho_rh_no.h.20506918FE9786DA.idx
Normal file
BIN
.cache/clangd/index/ortho_rh_no.h.20506918FE9786DA.idx
Normal file
Binary file not shown.
BIN
.cache/clangd/index/ortho_rh_no.h.21904B02ED686188.idx
Normal file
BIN
.cache/clangd/index/ortho_rh_no.h.21904B02ED686188.idx
Normal file
Binary file not shown.
BIN
.cache/clangd/index/persp.h.DB598CA9569AC22D.idx
Normal file
BIN
.cache/clangd/index/persp.h.DB598CA9569AC22D.idx
Normal file
Binary file not shown.
BIN
.cache/clangd/index/persp_rh_no.h.454FCC46FF1802E5.idx
Normal file
BIN
.cache/clangd/index/persp_rh_no.h.454FCC46FF1802E5.idx
Normal file
Binary file not shown.
BIN
.cache/clangd/index/persp_rh_no.h.DFEC91520841B79F.idx
Normal file
BIN
.cache/clangd/index/persp_rh_no.h.DFEC91520841B79F.idx
Normal file
Binary file not shown.
BIN
.cache/clangd/index/plane.h.937321CC56E5EE4C.idx
Normal file
BIN
.cache/clangd/index/plane.h.937321CC56E5EE4C.idx
Normal file
Binary file not shown.
BIN
.cache/clangd/index/plane.h.F2CAC1143D9FE1BD.idx
Normal file
BIN
.cache/clangd/index/plane.h.F2CAC1143D9FE1BD.idx
Normal file
Binary file not shown.
BIN
.cache/clangd/index/project.h.3A3A98769B7427C4.idx
Normal file
BIN
.cache/clangd/index/project.h.3A3A98769B7427C4.idx
Normal file
Binary file not shown.
BIN
.cache/clangd/index/project.h.EEC1A7C360465DBC.idx
Normal file
BIN
.cache/clangd/index/project.h.EEC1A7C360465DBC.idx
Normal file
Binary file not shown.
BIN
.cache/clangd/index/project_no.h.B137C8DF16B555D0.idx
Normal file
BIN
.cache/clangd/index/project_no.h.B137C8DF16B555D0.idx
Normal file
Binary file not shown.
BIN
.cache/clangd/index/quat.h.7FAEB278BFD11160.idx
Normal file
BIN
.cache/clangd/index/quat.h.7FAEB278BFD11160.idx
Normal file
Binary file not shown.
BIN
.cache/clangd/index/quat.h.CC621C34BAB2C897.idx
Normal file
BIN
.cache/clangd/index/quat.h.CC621C34BAB2C897.idx
Normal file
Binary file not shown.
BIN
.cache/clangd/index/quat.h.D92829502E501BD6.idx
Normal file
BIN
.cache/clangd/index/quat.h.D92829502E501BD6.idx
Normal file
Binary file not shown.
BIN
.cache/clangd/index/ray.h.9D699231F4F9CD25.idx
Normal file
BIN
.cache/clangd/index/ray.h.9D699231F4F9CD25.idx
Normal file
Binary file not shown.
BIN
.cache/clangd/index/shader.h.AD1F8F68CCAA2480.idx
Normal file
BIN
.cache/clangd/index/shader.h.AD1F8F68CCAA2480.idx
Normal file
Binary file not shown.
BIN
.cache/clangd/index/sphere.h.149FCD031BB1F006.idx
Normal file
BIN
.cache/clangd/index/sphere.h.149FCD031BB1F006.idx
Normal file
Binary file not shown.
BIN
.cache/clangd/index/sphere.h.A01D9762F64642B6.idx
Normal file
BIN
.cache/clangd/index/sphere.h.A01D9762F64642B6.idx
Normal file
Binary file not shown.
BIN
.cache/clangd/index/struct.h.753EF1A6E5F9E9FB.idx
Normal file
BIN
.cache/clangd/index/struct.h.753EF1A6E5F9E9FB.idx
Normal file
Binary file not shown.
BIN
.cache/clangd/index/texture.h.9BC82A360885A118.idx
Normal file
BIN
.cache/clangd/index/texture.h.9BC82A360885A118.idx
Normal file
Binary file not shown.
BIN
.cache/clangd/index/time.h.D3782EDF7DA4ED35.idx
Normal file
BIN
.cache/clangd/index/time.h.D3782EDF7DA4ED35.idx
Normal file
Binary file not shown.
BIN
.cache/clangd/index/types-struct.h.73CA098B24D60257.idx
Normal file
BIN
.cache/clangd/index/types-struct.h.73CA098B24D60257.idx
Normal file
Binary file not shown.
BIN
.cache/clangd/index/types.h.EC5A3D85181FBA3A.idx
Normal file
BIN
.cache/clangd/index/types.h.EC5A3D85181FBA3A.idx
Normal file
Binary file not shown.
BIN
.cache/clangd/index/types.h.FB67F70379A1E8B5.idx
Normal file
BIN
.cache/clangd/index/types.h.FB67F70379A1E8B5.idx
Normal file
Binary file not shown.
BIN
.cache/clangd/index/util.h.A8A30F472ED6E14E.idx
Normal file
BIN
.cache/clangd/index/util.h.A8A30F472ED6E14E.idx
Normal file
Binary file not shown.
BIN
.cache/clangd/index/util.h.F782C1C23E1D198B.idx
Normal file
BIN
.cache/clangd/index/util.h.F782C1C23E1D198B.idx
Normal file
Binary file not shown.
BIN
.cache/clangd/index/vao.h.AB33A8EE0B061B29.idx
Normal file
BIN
.cache/clangd/index/vao.h.AB33A8EE0B061B29.idx
Normal file
Binary file not shown.
BIN
.cache/clangd/index/vbo.h.F623E912505BB73A.idx
Normal file
BIN
.cache/clangd/index/vbo.h.F623E912505BB73A.idx
Normal file
Binary file not shown.
BIN
.cache/clangd/index/vec2-ext.h.1C9F137F4F5091AF.idx
Normal file
BIN
.cache/clangd/index/vec2-ext.h.1C9F137F4F5091AF.idx
Normal file
Binary file not shown.
BIN
.cache/clangd/index/vec2-ext.h.AAF681163EAB9594.idx
Normal file
BIN
.cache/clangd/index/vec2-ext.h.AAF681163EAB9594.idx
Normal file
Binary file not shown.
BIN
.cache/clangd/index/vec2.h.004BBD2F34E63ED2.idx
Normal file
BIN
.cache/clangd/index/vec2.h.004BBD2F34E63ED2.idx
Normal file
Binary file not shown.
BIN
.cache/clangd/index/vec2.h.50C40861EBC745E8.idx
Normal file
BIN
.cache/clangd/index/vec2.h.50C40861EBC745E8.idx
Normal file
Binary file not shown.
BIN
.cache/clangd/index/vec3-ext.h.3FECCB0CC4E4E4BC.idx
Normal file
BIN
.cache/clangd/index/vec3-ext.h.3FECCB0CC4E4E4BC.idx
Normal file
Binary file not shown.
BIN
.cache/clangd/index/vec3-ext.h.5729D08CE1F51D49.idx
Normal file
BIN
.cache/clangd/index/vec3-ext.h.5729D08CE1F51D49.idx
Normal file
Binary file not shown.
BIN
.cache/clangd/index/vec3.h.32D4D3E01C8C4ED6.idx
Normal file
BIN
.cache/clangd/index/vec3.h.32D4D3E01C8C4ED6.idx
Normal file
Binary file not shown.
BIN
.cache/clangd/index/vec3.h.A75EBB512284C81D.idx
Normal file
BIN
.cache/clangd/index/vec3.h.A75EBB512284C81D.idx
Normal file
Binary file not shown.
BIN
.cache/clangd/index/vec4-ext.h.28C22448E7C4B3BA.idx
Normal file
BIN
.cache/clangd/index/vec4-ext.h.28C22448E7C4B3BA.idx
Normal file
Binary file not shown.
BIN
.cache/clangd/index/vec4-ext.h.F25F29AE7EF2FF8F.idx
Normal file
BIN
.cache/clangd/index/vec4-ext.h.F25F29AE7EF2FF8F.idx
Normal file
Binary file not shown.
BIN
.cache/clangd/index/vec4.h.01D8F30509948C0D.idx
Normal file
BIN
.cache/clangd/index/vec4.h.01D8F30509948C0D.idx
Normal file
Binary file not shown.
BIN
.cache/clangd/index/vec4.h.7D3E0BC7E78819AB.idx
Normal file
BIN
.cache/clangd/index/vec4.h.7D3E0BC7E78819AB.idx
Normal file
Binary file not shown.
BIN
.cache/clangd/index/view_rh.h.C77EEB532C8EE184.idx
Normal file
BIN
.cache/clangd/index/view_rh.h.C77EEB532C8EE184.idx
Normal file
Binary file not shown.
BIN
.cache/clangd/index/view_rh_no.h.CF04BCC85176AADD.idx
Normal file
BIN
.cache/clangd/index/view_rh_no.h.CF04BCC85176AADD.idx
Normal file
Binary file not shown.
BIN
.cache/clangd/index/view_rh_no.h.E41827615ED6D265.idx
Normal file
BIN
.cache/clangd/index/view_rh_no.h.E41827615ED6D265.idx
Normal file
Binary file not shown.
BIN
.cache/clangd/index/x86.h.ED05D3B94AE4F41F.idx
Normal file
BIN
.cache/clangd/index/x86.h.ED05D3B94AE4F41F.idx
Normal file
Binary file not shown.
57
.gitignore
vendored
Normal file
57
.gitignore
vendored
Normal file
@ -0,0 +1,57 @@
|
|||||||
|
# Other
|
||||||
|
build/*
|
||||||
|
assets/*
|
||||||
|
bin/*
|
||||||
|
|
||||||
|
# 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
|
||||||
|
|
||||||
|
# Kernel Module Compile Results
|
||||||
|
*.mod*
|
||||||
|
*.cmd
|
||||||
|
.tmp_versions/
|
||||||
|
modules.order
|
||||||
|
Module.symvers
|
||||||
|
Mkfile.old
|
||||||
|
dkms.conf
|
21
LICENSE
Normal file
21
LICENSE
Normal file
@ -0,0 +1,21 @@
|
|||||||
|
MIT License
|
||||||
|
|
||||||
|
Copyright (c) 2020 v0idv0id - Martin Willner - lvslinux@gmail.com
|
||||||
|
|
||||||
|
Permission is hereby granted, free of charge, to any person obtaining a copy
|
||||||
|
of this software and associated documentation files (the "Software"), to deal
|
||||||
|
in the Software without restriction, including without limitation the rights
|
||||||
|
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
||||||
|
copies of the Software, and to permit persons to whom the Software is
|
||||||
|
furnished to do so, subject to the following conditions:
|
||||||
|
|
||||||
|
The above copyright notice and this permission notice shall be included in all
|
||||||
|
copies or substantial portions of the Software.
|
||||||
|
|
||||||
|
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
||||||
|
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
||||||
|
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
||||||
|
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
||||||
|
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
||||||
|
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
||||||
|
SOFTWARE.
|
82
Makefile
Normal file
82
Makefile
Normal file
@ -0,0 +1,82 @@
|
|||||||
|
#Compiler and Linker
|
||||||
|
CC := clang
|
||||||
|
|
||||||
|
#The Target Binary Program
|
||||||
|
TARGET := wotos
|
||||||
|
|
||||||
|
#The Directories, Source, Includes, Objects, Binary and Resources
|
||||||
|
SRCDIR := src
|
||||||
|
INCDIR := lib
|
||||||
|
BUILDDIR := build
|
||||||
|
TARGETDIR := bin
|
||||||
|
RESDIR := res
|
||||||
|
SRCEXT := c
|
||||||
|
DEPEXT := d
|
||||||
|
OBJEXT := o
|
||||||
|
|
||||||
|
#Flags, Libraries and Includes
|
||||||
|
CFLAGS := -Wall -pedantic
|
||||||
|
CFLAGS += -Ilib/cglm/include -Ilib/glad/include -Ilib/glfw/include -Ilib/stb
|
||||||
|
CFLAGS += -Iinclude/ -I/usr/include/freetype2 -I/usr/include/stb
|
||||||
|
LDFLAGS := -lglfw -ldl -lmpv -lfreetype -lm
|
||||||
|
INC := -I$(INCDIR) -I/usr/local/include
|
||||||
|
INCDEP := -I$(INCDIR)
|
||||||
|
|
||||||
|
#---------------------------------------------------------------------------------
|
||||||
|
#DO NOT EDIT BELOW THIS LINE
|
||||||
|
#---------------------------------------------------------------------------------
|
||||||
|
SOURCES := $(shell find $(SRCDIR) -type f -name *.$(SRCEXT))
|
||||||
|
OBJECTS := $(patsubst $(SRCDIR)/%,$(BUILDDIR)/%,$(SOURCES:.$(SRCEXT)=.$(OBJEXT)))
|
||||||
|
|
||||||
|
#Defauilt Make
|
||||||
|
all: resources $(TARGET)
|
||||||
|
|
||||||
|
#Custom install
|
||||||
|
libs:
|
||||||
|
cd lib/cglm && cmake . -DCGLM_STATIC=ON && make
|
||||||
|
cd lib/glad && $(CC) -o src/glad.o -Iinclude -c src/glad.c
|
||||||
|
cd lib/glfw && cmake . && make
|
||||||
|
|
||||||
|
#Remake
|
||||||
|
remake: cleaner all
|
||||||
|
|
||||||
|
#Copy Resources from Resources Directory to Target Directory
|
||||||
|
resources: directories
|
||||||
|
@cp -r $(RESDIR)/* $(TARGETDIR)/
|
||||||
|
|
||||||
|
#Make the Directories
|
||||||
|
directories:
|
||||||
|
@mkdir -p $(TARGETDIR)
|
||||||
|
@mkdir -p $(BUILDDIR)
|
||||||
|
|
||||||
|
#Clean only Objecst
|
||||||
|
clean:
|
||||||
|
@$(RM) -rf $(BUILDDIR)
|
||||||
|
|
||||||
|
#Full Clean, Objects and Binaries
|
||||||
|
cleaner: clean
|
||||||
|
@$(RM) -rf $(TARGETDIR)
|
||||||
|
|
||||||
|
#Pull in dependency info for *existing* .o files
|
||||||
|
-include $(OBJECTS:.$(OBJEXT)=.$(DEPEXT))
|
||||||
|
|
||||||
|
#Link
|
||||||
|
$(TARGET): $(OBJECTS)
|
||||||
|
$(CC) -o $(TARGETDIR)/$(TARGET) $^ $(LDFLAGS)
|
||||||
|
|
||||||
|
#Compile
|
||||||
|
$(BUILDDIR)/%.$(OBJEXT): $(SRCDIR)/%.$(SRCEXT)
|
||||||
|
@mkdir -p $(dir $@)
|
||||||
|
$(CC) $(CFLAGS) $(INC) -c -o $@ $<
|
||||||
|
@$(CC) $(CFLAGS) $(INCDEP) -MM $(SRCDIR)/$*.$(SRCEXT) > $(BUILDDIR)/$*.$(DEPEXT)
|
||||||
|
@cp -f $(BUILDDIR)/$*.$(DEPEXT) $(BUILDDIR)/$*.$(DEPEXT).tmp
|
||||||
|
@sed -e 's|.*:|$(BUILDDIR)/$*.$(OBJEXT):|' < $(BUILDDIR)/$*.$(DEPEXT).tmp > $(BUILDDIR)/$*.$(DEPEXT)
|
||||||
|
@sed -e 's/.*://' -e 's/\\$$//' < $(BUILDDIR)/$*.$(DEPEXT).tmp | fmt -1 | sed -e 's/^ *//' -e 's/$$/:/' >> $(BUILDDIR)/$*.$(DEPEXT)
|
||||||
|
@rm -f $(BUILDDIR)/$*.$(DEPEXT).tmp
|
||||||
|
|
||||||
|
#Run
|
||||||
|
run: all
|
||||||
|
@$(TARGETDIR)/$(TARGET) $(ARGS)
|
||||||
|
|
||||||
|
#Non-File Targets
|
||||||
|
.PHONY: all remake clean cleaner resources
|
25
compile_commands.json
Normal file
25
compile_commands.json
Normal file
@ -0,0 +1,25 @@
|
|||||||
|
[
|
||||||
|
{
|
||||||
|
"arguments": [
|
||||||
|
"/usr/bin/clang",
|
||||||
|
"-Wall",
|
||||||
|
"-pedantic",
|
||||||
|
"-Ilib/cglm/include",
|
||||||
|
"-Ilib/glad/include",
|
||||||
|
"-Ilib/glfw/include",
|
||||||
|
"-Ilib/stb",
|
||||||
|
"-Iinclude/",
|
||||||
|
"-I/usr/include/freetype2",
|
||||||
|
"-I/usr/include/stb",
|
||||||
|
"-Ilib",
|
||||||
|
"-I/usr/local/include",
|
||||||
|
"-c",
|
||||||
|
"-o",
|
||||||
|
"build/main.o",
|
||||||
|
"src/main.c"
|
||||||
|
],
|
||||||
|
"directory": "/home/steaky/git/wotos-mpv",
|
||||||
|
"file": "/home/steaky/git/wotos-mpv/src/main.c",
|
||||||
|
"output": "/home/steaky/git/wotos-mpv/build/main.o"
|
||||||
|
}
|
||||||
|
]
|
1
lib/cglm/.gitattributes
vendored
Normal file
1
lib/cglm/.gitattributes
vendored
Normal file
@ -0,0 +1 @@
|
|||||||
|
*.h linguist-language=C
|
8
lib/cglm/.github/FUNDING.yml
vendored
Normal file
8
lib/cglm/.github/FUNDING.yml
vendored
Normal file
@ -0,0 +1,8 @@
|
|||||||
|
# These are supported funding model platforms
|
||||||
|
|
||||||
|
github: [recp]
|
||||||
|
patreon: recp
|
||||||
|
open_collective: cglm
|
||||||
|
ko_fi: # Replace with a single Ko-fi username
|
||||||
|
tidelift: # Replace with a single Tidelift platform-name/package-name e.g., npm/babel
|
||||||
|
custom: # Replace with a single custom sponsorship URL
|
Some files were not shown because too many files have changed in this diff Show More
Reference in New Issue
Block a user