aboutsummaryrefslogtreecommitdiff
path: root/nuklear/demo/x11_opengl3/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'nuklear/demo/x11_opengl3/Makefile')
-rw-r--r--nuklear/demo/x11_opengl3/Makefile26
1 files changed, 26 insertions, 0 deletions
diff --git a/nuklear/demo/x11_opengl3/Makefile b/nuklear/demo/x11_opengl3/Makefile
new file mode 100644
index 0000000..1173b6c
--- /dev/null
+++ b/nuklear/demo/x11_opengl3/Makefile
@@ -0,0 +1,26 @@
+# Install
+BIN = demo
+
+# Compiler
+CC = clang
+DCC = gcc
+
+# Flags
+CFLAGS = -std=c99 -pedantic -O2
+
+SRC = main.c
+OBJ = $(SRC:.c=.o)
+
+# Modes
+.PHONY: gcc
+gcc: CC = gcc
+gcc: $(BIN)
+
+.PHONY: clang
+clang: CC = clang
+clang: $(BIN)
+
+$(BIN):
+ @mkdir -p bin
+ rm -f bin/$(BIN) $(OBJS)
+ $(CC) $(SRC) $(CFLAGS) -o bin/$(BIN) -lX11 -lm -lGL -lm -lGLU