dungeon_crawler
diff prototype/Makefile.in @ 47:d52711f2b9a1
started writting audio code
author | John Tsiombikas <nuclear@member.fsf.org> |
---|---|
date | Sun, 16 Sep 2012 08:16:50 +0300 |
parents | 862461b686f4 |
children | aa9e28670ae2 |
line diff
1.1 --- a/prototype/Makefile.in Thu Sep 13 06:33:51 2012 +0300 1.2 +++ b/prototype/Makefile.in Sun Sep 16 08:16:50 2012 +0300 1.3 @@ -1,21 +1,29 @@ 1.4 -csrc = $(wildcard src/*.c) $(wildcard vmath/*.c) $(wildcard drawtext/*.c) 1.5 -ccsrc = $(wildcard src/*.cc) $(wildcard vmath/*.cc) 1.6 +csrc = $(wildcard src/*.c) \ 1.7 + $(wildcard vmath/*.c) \ 1.8 + $(wildcard drawtext/*.c) 1.9 + 1.10 +ccsrc = $(wildcard src/*.cc) \ 1.11 + $(wildcard src/audio/*.cc) \ 1.12 + $(wildcard vmath/*.cc) 1.13 + 1.14 obj = $(csrc:.c=.o) $(ccsrc:.cc=.o) 1.15 dep = $(obj:.o=.d) 1.16 bin = proto 1.17 1.18 warn = -Wall -Wno-format-extra-args -Wno-char-subscripts 1.19 1.20 -inc = -I. -Ivmath -Idrawtext `pkg-config --cflags freetype2` 1.21 +inc = -I. -Isrc/audio -Ivmath -Idrawtext `pkg-config --cflags freetype2` 1.22 1.23 CFLAGS = -pedantic $(warn) $(dbg) $(opt) $(inc) 1.24 CXXFLAGS = $(CFLAGS) $(cxx11_cflags) 1.25 -LDFLAGS = $(cxx11_ldflags) $(libgl) -lm -lassimp -limago -lpsys `pkg-config --libs freetype2` 1.26 +LDFLAGS = $(cxx11_ldflags) $(libgl) $(libal) -lvorbisfile -lm -lassimp -limago -lpsys `pkg-config --libs freetype2` 1.27 1.28 ifeq ($(shell uname -s), Darwin) 1.29 libgl = -framework OpenGL -framework GLUT -lglew 1.30 + libal = -framework OpenAL 1.31 else 1.32 libgl = -lGL -lGLU -lglut -lGLEW 1.33 + libal = -lopenal 1.34 endif 1.35 1.36 $(bin): $(obj) Makefile