updated readme
[andemo] / Makefile
index fa01441..0d965ed 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -5,7 +5,7 @@ bin = demo
 
 warn = -pedantic -Wall
 dbg = -g
-#opt = -O3 -ffast-math -fno-strict-aliasing
+#opt = -O3 -ffast-math -fno-strict-aliasing -DNDEBUG
 def = -DMINIGLUT_USE_LIBC -DGLEW_STATIC
 incdir = -Isrc -Ilibs -Ilibs/imago/src -Ilibs/treestore -Ilibs/glew
 libs_path = libs/unix
@@ -38,6 +38,9 @@ $(bin): $(obj) Makefile $(libs)
 %.w32.o: %.c
        $(CC) -o $@ $(CFLAGS) -c $<
 
+$(libs_path)/%.a:
+       $(MAKE) -C libs
+
 .PHONY: clean
 clean:
        rm -f $(obj) $(bin)
@@ -66,6 +69,10 @@ android-clean:
 android-libs:
        $(MAKE) -f Makefile.android libs
 
+.PHONY: install
+install:
+       $(MAKE) -f Makefile.android install
+
 .PHONY: run
 run:
        $(MAKE) -f Makefile.android install run