Make a src folder
This commit is contained in:
parent
1a6fa90571
commit
8efe95258a
40 changed files with 23 additions and 15 deletions
16
Makefile
16
Makefile
|
@ -12,21 +12,27 @@ S+=comp.c wayland.c glfw.c
|
|||
S+=vulkan.c kitty.c
|
||||
S+=gpu_allocator.c hashmap.c util.c io.c matrix.c dynarray.c image.c types.c allocator.c log.c
|
||||
S+=object.c register.c
|
||||
S+=Wayland/xdg-shell-protocol.c
|
||||
SO=$(addprefix build/,$(S:.c=.o))
|
||||
# SC=$(addprefix src/,$(S))
|
||||
SC=$S
|
||||
SC=$(addprefix src/,$(S))
|
||||
|
||||
clean:
|
||||
rm -f build/*
|
||||
rm -rf build/
|
||||
mkdir build
|
||||
mkdir build/Wayland
|
||||
|
||||
install:
|
||||
./main
|
||||
|
||||
.c.o:
|
||||
gcc $(FLAGS) -c -o $@ $<
|
||||
build/%.o: %.c
|
||||
gcc -c $(FLAGS) -o $@ $<
|
||||
build/%.o: src/%.c
|
||||
gcc -c $(FLAGS) -o $@ $<
|
||||
|
||||
main: $(SO) Wayland/xdg-shell-protocol.c
|
||||
gcc $(FLAGS) -o $@ $(SO) Wayland/xdg-shell-protocol.c
|
||||
main: $(SO)
|
||||
gcc $(FLAGS) -o $@ $(SO)
|
||||
|
||||
.DEFAULT_GOAL=main
|
||||
.PHONY: clean
|
||||
|
|
6
main.c
6
main.c
|
@ -1,6 +1,6 @@
|
|||
#include "comp.h"
|
||||
#include "object.h"
|
||||
#include "register.h"
|
||||
#include "src/comp.h"
|
||||
#include "src/object.h"
|
||||
#include "src/register.h"
|
||||
#include "trig.c"
|
||||
|
||||
#include <stdbool.h>
|
||||
|
|
|
@ -61,6 +61,7 @@
|
|||
}
|
||||
|
||||
dyn_array_define(da_uint32_t, uint32_t);
|
||||
dyn_array_define(da_string, char *);
|
||||
|
||||
void *dyn_array_create();
|
||||
void *dyn_array_create_mem(struct Mem *mem);
|
|
@ -600,6 +600,7 @@ void kitty_create_image_attatchments(struct Kitty *kitty, struct Vk *state) {
|
|||
sampler_info.maxLod = 0.0;
|
||||
CHECK_VK_RESULT(vkCreateSampler(state->device, &sampler_info, NULL,
|
||||
&atch->image.sampler));
|
||||
free(atch->image.pixels);
|
||||
}
|
||||
}
|
||||
|
14
trig.c
14
trig.c
|
@ -1,10 +1,10 @@
|
|||
#include "allocator.h"
|
||||
#include "kitty.h"
|
||||
#include "log.h"
|
||||
#include "matrix.h"
|
||||
#include "object.h"
|
||||
#include "types.h"
|
||||
#include "util.h"
|
||||
#include "src/allocator.h"
|
||||
#include "src/kitty.h"
|
||||
#include "src/log.h"
|
||||
#include "src/matrix.h"
|
||||
#include "src/object.h"
|
||||
#include "src/types.h"
|
||||
#include "src/util.h"
|
||||
|
||||
#define INSTANCE_COUNT 1000
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue