Ah shit, here we go again
This commit is contained in:
commit
f78f66cf9a
|
@ -0,0 +1,2 @@
|
|||
asciify
|
||||
obj/*.o
|
|
@ -0,0 +1,3 @@
|
|||
[submodule "thirdparty/stb"]
|
||||
path = thirdparty/stb
|
||||
url = https://github.com/nothings/stb/
|
|
@ -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,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;
|
||||
}
|
|
@ -0,0 +1,2 @@
|
|||
#define STB_IMAGE_IMPLEMENTATION
|
||||
#include "./stb_image.h"
|
|
@ -0,0 +1,2 @@
|
|||
#include "../thirdparty/stb/stb_image.h"
|
||||
|
|
@ -0,0 +1 @@
|
|||
Subproject commit af1a5bc352164740c1cc1354942b1c6b72eacb8a
|
Loading…
Reference in New Issue