Ah shit, here we go again

This commit is contained in:
Casey 2022-01-30 23:04:56 +03:00
commit f78f66cf9a
8 changed files with 39 additions and 0 deletions

2
.gitignore vendored Normal file
View File

@ -0,0 +1,2 @@
asciify
obj/*.o

3
.gitmodules vendored Normal file
View File

@ -0,0 +1,3 @@
[submodule "thirdparty/stb"]
path = thirdparty/stb
url = https://github.com/nothings/stb/

18
Makefile Normal file
View File

@ -0,0 +1,18 @@
CFLAGS := -Wall -Wextra -Werror -pedantic -std=c99
CLIBS := -lm
INCLUDES := -Isrc
OBJECTS := obj/stb_image.o
all: lib asciify
lib: $(OBJECTS)
clean:
$(RM) obj/*
asciify: lib
$(CC) $(CFLAGS) src/main.c $(INCLUDES) $(OBJECTS) $(CLIBS) -o ./asciify
obj/%.o: src/%.c
$(CC) $(CFLAGS) $^ $(INCLUDES) -c -o $@

0
obj/.gitkeep Normal file
View File

11
src/main.c Normal file
View File

@ -0,0 +1,11 @@
#include <stdio.h>
#include <stdlib.h>
#include <stdint.h>
int main(int argc, char **argv)
{
(void)argc;
(void)argv;
printf("ah shit, here we go again\n");
return 0;
}

2
src/stb_image.c Normal file
View File

@ -0,0 +1,2 @@
#define STB_IMAGE_IMPLEMENTATION
#include "./stb_image.h"

2
src/stb_image.h Normal file
View File

@ -0,0 +1,2 @@
#include "../thirdparty/stb/stb_image.h"

1
thirdparty/stb vendored Submodule

@ -0,0 +1 @@
Subproject commit af1a5bc352164740c1cc1354942b1c6b72eacb8a