aboutsummaryrefslogtreecommitdiff
path: root/subprojects/nk_pugl/nuklear/demo/allegro5/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'subprojects/nk_pugl/nuklear/demo/allegro5/Makefile')
-rw-r--r--subprojects/nk_pugl/nuklear/demo/allegro5/Makefile22
1 files changed, 22 insertions, 0 deletions
diff --git a/subprojects/nk_pugl/nuklear/demo/allegro5/Makefile b/subprojects/nk_pugl/nuklear/demo/allegro5/Makefile
new file mode 100644
index 0000000..090a126
--- /dev/null
+++ b/subprojects/nk_pugl/nuklear/demo/allegro5/Makefile
@@ -0,0 +1,22 @@
+# Install
+BIN = demo
+
+# Flags
+CFLAGS += -std=c99 -pedantic -O2
+
+SRC = main.c
+OBJ = $(SRC:.c=.o)
+
+# TODO: Handle Windows build
+#ifeq ($(OS),Windows_NT)
+#BIN := $(BIN).exe
+#LIBS = -lglfw3 -lopengl32 -lm -lGLU32 -lGLEW32
+#else
+LIBS = -lallegro -lallegro_main -lallegro_image -lallegro_font \
+ -lallegro_ttf -lallegro_primitives -lm
+#endif
+
+$(BIN):
+ @mkdir -p bin
+ rm -f bin/$(BIN) $(OBJS)
+ $(CC) $(SRC) $(CFLAGS) -o bin/$(BIN) $(LIBS)