comparison 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
comparison
equal deleted inserted replaced
876:8d909205b0fd 877:4a2ed354ab4c
1 # 1 #
2 # Generic UNIX targets 2 # Generic UNIX targets
3 # 3 #
4 DMLIB = ./ 4 DMLIB ?= ./
5 BINPATH ?= 5 BINPATH ?=
6 OBJPATH ?= ./obj/unix/ 6 OBJPATH ?= ./obj/unix/
7 EXEEXT ?= 7 EXEEXT ?=
8 PREFIX ?= /usr/local 8 PREFIX ?= /usr/local
9 INSTALL = install 9 INSTALL ?= install
10 RANLIB = ranlib 10 RANLIB ?= ranlib
11 11
12 SDL_CFLAGS=`sdl-config --cflags` 12 SDL_CFLAGS=`pkg-config --cflags sdl`
13 SDL_LDFLAGS=`sdl-config --static-libs` 13 SDL_LDFLAGS=`pkg-config --libs sdl`
14 14
15 SDL_TTF_CFLAGS= 15 SDL_TTF_CFLAGS=`pkg-config --cflags SDL_ttf`
16 SDL_TTF_LDFLAGS=-lSDL_ttf 16 SDL_TTF_LDFLAGS=`pkg-config --libs SDL_ttf`
17 17
18 TREMOR_CFLAGS=`pkg-config --cflags ogg` 18 TREMOR_CFLAGS=`pkg-config --cflags ogg`
19 TREMOR_LDFLAGS=/usr/lib/libvorbisidec.a `pkg-config --variable=libdir ogg`/libogg.a 19 TREMOR_LDFLAGS=/usr/lib/libvorbisidec.a `pkg-config --variable=libdir ogg`/libogg.a
20 20
21 LIBPNG_CFLAGS=`pkg-config --cflags libpng` 21 LIBPNG_CFLAGS=`pkg-config --cflags libpng`