labyrinth

view Makefile @ 8:d3f1f74067b0

ops, forgot to swapbuffers on the android side
author John Tsiombikas <nuclear@member.fsf.org>
date Mon, 04 May 2015 04:56:44 +0300
parents 8ba79034e8a6
children
line source
1 include proj.mk
2 src += src/glut/main.c
4 obj = $(src:.c=.o)
6 sys = $(shell uname -s)
8 libgl_Linux = -lGL -lGLU -lglut -lGLEW
9 libgl_Darwin = -framework OpenGL -framework GLUT -lGLEW
11 CFLAGS = -pedantic -Wall -g $(incpaths)
12 LDFLAGS = $(libpaths) $(libgl_$(sys)) -lm
14 $(bin): $(obj)
15 $(CC) -o $@ $(obj) $(LDFLAGS)
17 .PHONY: clean
18 clean:
19 rm -f $(obj) $(bin)