Mercurial > hg > dmlib
diff Makefile @ 877:4a2ed354ab4c
Use ?= in the Makefiles to accept preset values.
author | Matti Hamalainen <ccr@tnsp.org> |
---|---|
date | Wed, 04 Feb 2015 19:07:16 +0200 |
parents | 8d909205b0fd |
children | 6abb6c25d8ed |
line wrap: on
line diff
--- a/Makefile Wed Feb 04 18:00:48 2015 +0200 +++ b/Makefile Wed Feb 04 19:07:16 2015 +0200 @@ -1,19 +1,19 @@ # # Generic UNIX targets # -DMLIB = ./ +DMLIB ?= ./ BINPATH ?= OBJPATH ?= ./obj/unix/ EXEEXT ?= PREFIX ?= /usr/local -INSTALL = install -RANLIB = ranlib +INSTALL ?= install +RANLIB ?= ranlib -SDL_CFLAGS=`sdl-config --cflags` -SDL_LDFLAGS=`sdl-config --static-libs` +SDL_CFLAGS=`pkg-config --cflags sdl` +SDL_LDFLAGS=`pkg-config --libs sdl` -SDL_TTF_CFLAGS= -SDL_TTF_LDFLAGS=-lSDL_ttf +SDL_TTF_CFLAGS=`pkg-config --cflags SDL_ttf` +SDL_TTF_LDFLAGS=`pkg-config --libs SDL_ttf` TREMOR_CFLAGS=`pkg-config --cflags ogg` TREMOR_LDFLAGS=/usr/lib/libvorbisidec.a `pkg-config --variable=libdir ogg`/libogg.a