labyrinth

diff Makefile @ 3:45b91185b298

android port
author John Tsiombikas <nuclear@member.fsf.org>
date Fri, 01 May 2015 04:36:50 +0300
parents 8ba79034e8a6
children
line diff
     1.1 --- a/Makefile	Mon Apr 27 05:37:17 2015 +0300
     1.2 +++ b/Makefile	Fri May 01 04:36:50 2015 +0300
     1.3 @@ -1,14 +1,15 @@
     1.4 -src = $(wildcard src/*.c)
     1.5 +include proj.mk
     1.6 +src += src/glut/main.c
     1.7 +
     1.8  obj = $(src:.c=.o)
     1.9 -bin = lab
    1.10  
    1.11  sys = $(shell uname -s)
    1.12  
    1.13 -libgl_Linux = -lGL -lGLU -lglut
    1.14 -libgl_Darwin = -framework OpenGL -framework GLUT
    1.15 +libgl_Linux = -lGL -lGLU -lglut -lGLEW
    1.16 +libgl_Darwin = -framework OpenGL -framework GLUT -lGLEW
    1.17  
    1.18 -CFLAGS = -pedantic -Wall -g
    1.19 -LDFLAGS = $(libgl_$(sys)) -lm
    1.20 +CFLAGS = -pedantic -Wall -g $(incpaths)
    1.21 +LDFLAGS = $(libpaths) $(libgl_$(sys)) -lm
    1.22  
    1.23  $(bin): $(obj)
    1.24  	$(CC) -o $@ $(obj) $(LDFLAGS)