3dphotoshoot
diff Makefile @ 26:a460b1e5af4a
added GLUT frontend
author | John Tsiombikas <nuclear@member.fsf.org> |
---|---|
date | Thu, 18 Jun 2015 03:55:05 +0300 |
parents | ac80210d5fbe |
children |
line diff
1.1 --- a/Makefile Thu Jun 18 03:12:30 2015 +0300 1.2 +++ b/Makefile Thu Jun 18 03:55:05 2015 +0300 1.3 @@ -1,18 +1,18 @@ 1.4 root = . 1.5 include $(root)/proj.mk 1.6 1.7 -src += $(wildcard $(root)/src/glut/*.c) 1.8 +src += $(wildcard $(root)/src/pc/*.c) 1.9 obj = $(src:.c=.o) $(ccsrc:.cc=.o) 1.10 1.11 ifeq ($(shell uname -s), Darwin) 1.12 - libgl = -framework OpenGL -framework GLUT 1.13 + libgl = -framework OpenGL -framework GLUT -lGLEW 1.14 else 1.15 - libgl = -lGL -lGLU -lglut 1.16 + libgl = -lGL -lGLU -lglut -lGLEW 1.17 endif 1.18 1.19 CXXFLAGS = -pedantic -Wall -g $(defs) -I$(root)/src/glut $(incpaths) 1.20 CFLAGS = $(CXXFLAGS) 1.21 -LDFLAGS = $(libpaths) $(libs) $(libgl) 1.22 +LDFLAGS = $(libpaths) $(libs) $(libgl) -ldl -lpthread 1.23 1.24 $(bin): $(obj) 1.25 $(CXX) -o $@ $(obj) $(LDFLAGS)