aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--.gitignore2
-rw-r--r--main.c13
-rw-r--r--makefile12
3 files changed, 27 insertions, 0 deletions
diff --git a/.gitignore b/.gitignore
new file mode 100644
index 0000000..f0c9b81
--- /dev/null
+++ b/.gitignore
@@ -0,0 +1,2 @@
+*.o
+main
diff --git a/main.c b/main.c
new file mode 100644
index 0000000..be899de
--- /dev/null
+++ b/main.c
@@ -0,0 +1,13 @@
+#include <GLFW/glfw3.h>
+
+int main(int argc, char** argv) {
+ glfwInit();
+
+ glfwWindowHint(GLFW_CONTEXT_VERSION_MAJOR, 3);
+ glfwWindowHint(GLFW_CONTEXT_VERSION_MINOR, 3);
+
+ glfwWindowHint(GLFW_OPENGL_PROFILE, GLFW_OPENGL_CORE_PROFILE);
+
+ return 0;
+}
+
diff --git a/makefile b/makefile
new file mode 100644
index 0000000..4525ae0
--- /dev/null
+++ b/makefile
@@ -0,0 +1,12 @@
+LDFLAGS += -lglfw
+
+.PHONY: FORCE
+
+all: main FORCE
+
+main: main.o
+
+
+clean: FORCE
+ git clean -fxdi
+