diff --git a/Makefile.am b/Makefile.am index 091bc3f..0f78da1 100644 --- a/Makefile.am +++ b/Makefile.am @@ -1,5 +1,5 @@ AUTOMAKE_OPTIONS = foreign subdir-objects -Wall bin_PROGRAMS = forge -forge_SOURCES = src/main.c src/args.c src/forge.c src/file.c +forge_SOURCES = src/main.c src/args.c src/forge.c src/file.c src/window.c src/shaders.c forge_CFLAGS = -Ofast -march=native -flto -funroll-loops -fprefetch-loop-arrays -fno-exceptions -fopenmp -include_HEADERS = src/main.h src/args.h src/config.h src/types.h src/forge.h src/file.h src/constants.h include/linmath.h include/glad/gl.h \ No newline at end of file +include_HEADERS = src/main.h src/args.h src/config.h src/types.h src/forge.h src/file.h src/constants.h src/window.h src/shaders.h include/linmath.h include/glad/gl.h \ No newline at end of file diff --git a/src/args.c b/src/args.c index d7a5ec2..4e7dce4 100644 --- a/src/args.c +++ b/src/args.c @@ -27,12 +27,12 @@ void print_help(int status_code) { void invalid_arg(char *arg) { fprintf(stderr, "invalid argument: '%s'\n\n", arg); - print_help(1); + print_help(EXIT_FAILURE); } void invalid_value(char *arg, char *value) { fprintf(stderr, "invalid value for argument '%s': '%s'\n\n", arg, value); - print_help(1); + print_help(EXIT_FAILURE); } bool is_arg(char *arg, char *ref) { return strcoll(arg, ref) == 0; } diff --git a/src/shaders.c b/src/shaders.c new file mode 100644 index 0000000..e69de29 diff --git a/src/shaders.h b/src/shaders.h new file mode 100644 index 0000000..afbf5ea --- /dev/null +++ b/src/shaders.h @@ -0,0 +1,4 @@ +#ifndef SHADERS_H +#define SHADERS_H + +#endif \ No newline at end of file diff --git a/src/window.c b/src/window.c new file mode 100644 index 0000000..e69de29 diff --git a/src/window.h b/src/window.h new file mode 100644 index 0000000..46ddc2c --- /dev/null +++ b/src/window.h @@ -0,0 +1,4 @@ +#ifndef WINDOW_H +#define WINDOW_H + +#endif \ No newline at end of file