Mercurial > hg > dmlib
annotate Makefile @ 840:a9d0d35476ae
Add flag variables for SDL_ttf.
author | Matti Hamalainen <ccr@tnsp.org> |
---|---|
date | Sun, 13 Jul 2014 23:56:55 +0300 |
parents | f9be2bc8f8ed |
children | dd35d66c3714 |
rev | line source |
---|---|
0 | 1 # |
2 # Generic UNIX targets | |
3 # | |
4 SDL_CFLAGS=`sdl-config --cflags` | |
5 SDL_LDFLAGS=`sdl-config --static-libs` | |
407
59244a7ae37f
Move c64 utilities to the engine lib, as we benefit from a common framework.
Matti Hamalainen <ccr@tnsp.org>
parents:
355
diff
changeset
|
6 |
840
a9d0d35476ae
Add flag variables for SDL_ttf.
Matti Hamalainen <ccr@tnsp.org>
parents:
503
diff
changeset
|
7 SDL_TTF_CFLAGS= |
a9d0d35476ae
Add flag variables for SDL_ttf.
Matti Hamalainen <ccr@tnsp.org>
parents:
503
diff
changeset
|
8 SDL_TTF_LDFLAGS=-lSDL_ttf |
a9d0d35476ae
Add flag variables for SDL_ttf.
Matti Hamalainen <ccr@tnsp.org>
parents:
503
diff
changeset
|
9 |
112
e1b6aa3017c2
Add Tremor stuff to default Makefiles.
Matti Hamalainen <ccr@tnsp.org>
parents:
5
diff
changeset
|
10 TREMOR_CFLAGS=-I/usr/local/lib/ |
e1b6aa3017c2
Add Tremor stuff to default Makefiles.
Matti Hamalainen <ccr@tnsp.org>
parents:
5
diff
changeset
|
11 TREMOR_LDFLAGS=/usr/local/lib/libvorbisidec.a /usr/lib/i386-linux-gnu/libogg.a |
0 | 12 |
421 | 13 LIBPNG_CFLAGS=`pkg-config --cflags libpng` |
14 LIBPNG_LDFLAGS=`pkg-config --libs libpng` | |
407
59244a7ae37f
Move c64 utilities to the engine lib, as we benefit from a common framework.
Matti Hamalainen <ccr@tnsp.org>
parents:
355
diff
changeset
|
15 |
424 | 16 ZLIB_CFLAGS=`pkg-config --cflags zlib` |
17 ZLIB_LDFLAGS=`pkg-config --libs zlib` | |
18 | |
0 | 19 RANLIB=ranlib |
20 | |
1
6e169d87d963
Improve buildsystem to support more flexible builds.
Matti Hamalainen <ccr@tnsp.org>
parents:
0
diff
changeset
|
21 DMLIB = ./ |
5
bf77857b8e62
Default executable binpath changed back to ./
Matti Hamalainen <ccr@tnsp.org>
parents:
1
diff
changeset
|
22 BINPATH ?= |
0 | 23 OBJPATH ?= ./unix/ |
24 EXEEXT ?= | |
502
e1526854e735
Add install target for Unix Makefile that installs tool binaries only, to
Matti Hamalainen <ccr@tnsp.org>
parents:
424
diff
changeset
|
25 PREFIX ?= /usr/local |
e1526854e735
Add install target for Unix Makefile that installs tool binaries only, to
Matti Hamalainen <ccr@tnsp.org>
parents:
424
diff
changeset
|
26 INSTALL = install |
0 | 27 |
503
f9be2bc8f8ed
It would be nice if the install target would print out what it is actually
Matti Hamalainen <ccr@tnsp.org>
parents:
502
diff
changeset
|
28 include $(DMLIB)Makefile.gen |
502
e1526854e735
Add install target for Unix Makefile that installs tool binaries only, to
Matti Hamalainen <ccr@tnsp.org>
parents:
424
diff
changeset
|
29 |
e1526854e735
Add install target for Unix Makefile that installs tool binaries only, to
Matti Hamalainen <ccr@tnsp.org>
parents:
424
diff
changeset
|
30 |
e1526854e735
Add install target for Unix Makefile that installs tool binaries only, to
Matti Hamalainen <ccr@tnsp.org>
parents:
424
diff
changeset
|
31 install: all |
503
f9be2bc8f8ed
It would be nice if the install target would print out what it is actually
Matti Hamalainen <ccr@tnsp.org>
parents:
502
diff
changeset
|
32 @for fn in $(TOOL_TARGETS); do echo " INSTALL $$fn $(PREFIX)/bin/"; $(INSTALL) -m 755 "$$fn" $(PREFIX)/bin/; done |