[Add] OpenAL to makefile. Preparing for Audio enginey thing.
This commit is contained in:
parent
47430b1fe9
commit
ab4d06a707
21
bin/Makefile
21
bin/Makefile
@ -14,8 +14,10 @@ CLUA = -I../lib/lua
|
||||
CSDL = $(shell sdl-config --cflags)
|
||||
CXML = $(shell xml2-config --cflags)
|
||||
CTTF = $(shell freetype-config --cflags)
|
||||
CAL = -lopenal
|
||||
CVORBIS =
|
||||
CGL =
|
||||
CFLAGS = $(CLUA) $(CSDL) $(CXML) $(CTTF) $(CGL) $(VERSION)
|
||||
CFLAGS = $(CLUA) $(CSDL) $(CXML) $(CTTF) $(CGL) $(CAL) $(CVORBIS) $(VERSION)
|
||||
ifdef DEBUG
|
||||
CFLAGS += -W -Wall -g3 -DDEBUG -DLUA_USE_APICHECK
|
||||
else
|
||||
@ -23,19 +25,26 @@ CFLAGS += -O2 -funroll-loops
|
||||
endif
|
||||
|
||||
LDLUA = ../lib/lua/liblua.a
|
||||
LDSDL = `sdl-config --libs` -lSDL_image
|
||||
LDXML = `xml2-config --libs`
|
||||
LDTTF = `freetype-config --libs`
|
||||
LDSDL = $(shell sdl-config --libs) -lSDL_image
|
||||
LDXML = $(shell xml2-config --libs)
|
||||
LDTTF = $(shell freetype-config --libs)
|
||||
LDGL = -lGL
|
||||
LDAL = -lopenal
|
||||
LDVORBIS = -lvorbisfile
|
||||
LDPNG = -lpng
|
||||
LDFLAGS = -lm $(LDLUA) $(LDSDL) $(LDXML) $(LDTTF) $(LDGL) $(LDPNG)
|
||||
LDFLAGS = -lm $(LDLUA) $(LDSDL) $(LDXML) $(LDTTF) $(LDGL) $(LDPNG) $(LDAL) $(LDVORBIS)
|
||||
|
||||
# This is just for gstat to run some analysis on performance.
|
||||
ifdef DEBUG
|
||||
LDFLAGS += -pg
|
||||
endif
|
||||
|
||||
DATA_AI = $(shell find ../scripts/ai/ -name '*.lua')
|
||||
DATA_GFX = $(shell find ../gfx/ -name '*.png')
|
||||
DATA_XML = $(shell find ../dat/ -name '*.xml' -o -name '*.ttf')
|
||||
DATA_SND = $(shell find ../snd/ -name '*.ogg')
|
||||
DATA = data
|
||||
DATAFILES = $(VERSIONFILE) $(shell find ../scripts/ ../gfx/ ../dat/ -name '*.lua' -o -name '*.png' -o -name '*.xml' -o -name '*.ttf')
|
||||
DATAFILES = $(VERSIONFILE) $(DATA_AI) $(DATA_GFX) $(DATA_XML) $(DATA_SND)
|
||||
|
||||
%.o: %.c %.h
|
||||
@gcc -c $(CFLAGS) -o $@ $<
|
||||
|
@ -8,7 +8,7 @@
|
||||
#include "log.h"
|
||||
#include "pack.h"
|
||||
|
||||
#define FONT_DEF "../gfx/fonts/font.ttf"
|
||||
#define FONT_DEF "../dat/font.ttf"
|
||||
|
||||
// == Font render routines.================================
|
||||
// Use a display list to store ASCII chars rendered with
|
||||
|
Loading…
Reference in New Issue
Block a user