Mercurial > hg > dmlib
annotate Makefile @ 1398:2791f790497d
Use $(shell ..) instead of backtics.
author | Matti Hamalainen <ccr@tnsp.org> |
---|---|
date | Sat, 28 Oct 2017 17:45:39 +0300 |
parents | acae5f8ebc67 |
children | c3bda6e63b00 |
rev | line source |
---|---|
0 | 1 # |
2 # Generic UNIX targets | |
3 # | |
1166 | 4 DM_CFLAGS += -DDM_HAVE_MEMSET=1 |
5 | |
877
4a2ed354ab4c
Use ?= in the Makefiles to accept preset values.
Matti Hamalainen <ccr@tnsp.org>
parents:
876
diff
changeset
|
6 DMLIB ?= ./ |
886 | 7 BINPATH ?= ./ |
841 | 8 OBJPATH ?= ./obj/unix/ |
9 PREFIX ?= /usr/local | |
877
4a2ed354ab4c
Use ?= in the Makefiles to accept preset values.
Matti Hamalainen <ccr@tnsp.org>
parents:
876
diff
changeset
|
10 INSTALL ?= install |
4a2ed354ab4c
Use ?= in the Makefiles to accept preset values.
Matti Hamalainen <ccr@tnsp.org>
parents:
876
diff
changeset
|
11 RANLIB ?= ranlib |
841 | 12 |
1398
2791f790497d
Use $(shell ..) instead of backtics.
Matti Hamalainen <ccr@tnsp.org>
parents:
1272
diff
changeset
|
13 SDL_CFLAGS ?= $(shell pkg-config --cflags sdl) |
2791f790497d
Use $(shell ..) instead of backtics.
Matti Hamalainen <ccr@tnsp.org>
parents:
1272
diff
changeset
|
14 SDL_LDFLAGS ?= $(shell pkg-config --libs sdl) |
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 |
1398
2791f790497d
Use $(shell ..) instead of backtics.
Matti Hamalainen <ccr@tnsp.org>
parents:
1272
diff
changeset
|
16 SDL_TTF_CFLAGS ?= $(shell pkg-config --cflags SDL_ttf) |
2791f790497d
Use $(shell ..) instead of backtics.
Matti Hamalainen <ccr@tnsp.org>
parents:
1272
diff
changeset
|
17 SDL_TTF_LDFLAGS ?= $(shell pkg-config --libs SDL_ttf) |
840
a9d0d35476ae
Add flag variables for SDL_ttf.
Matti Hamalainen <ccr@tnsp.org>
parents:
503
diff
changeset
|
18 |
1398
2791f790497d
Use $(shell ..) instead of backtics.
Matti Hamalainen <ccr@tnsp.org>
parents:
1272
diff
changeset
|
19 TREMOR_CFLAGS ?= $(shell pkg-config --cflags ogg) |
2791f790497d
Use $(shell ..) instead of backtics.
Matti Hamalainen <ccr@tnsp.org>
parents:
1272
diff
changeset
|
20 TREMOR_LDFLAGS ?= /usr/lib/libvorbisidec.a $(shell pkg-config --variable=libdir ogg)/libogg.a |
0 | 21 |
1398
2791f790497d
Use $(shell ..) instead of backtics.
Matti Hamalainen <ccr@tnsp.org>
parents:
1272
diff
changeset
|
22 LIBPNG_CFLAGS ?= $(shell pkg-config --cflags libpng) |
2791f790497d
Use $(shell ..) instead of backtics.
Matti Hamalainen <ccr@tnsp.org>
parents:
1272
diff
changeset
|
23 LIBPNG_LDFLAGS ?= $(shell 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
|
24 |
1398
2791f790497d
Use $(shell ..) instead of backtics.
Matti Hamalainen <ccr@tnsp.org>
parents:
1272
diff
changeset
|
25 ZLIB_CFLAGS ?= $(shell pkg-config --cflags zlib) |
2791f790497d
Use $(shell ..) instead of backtics.
Matti Hamalainen <ccr@tnsp.org>
parents:
1272
diff
changeset
|
26 ZLIB_LDFLAGS ?= $(shell pkg-config --libs zlib) |
424 | 27 |
0 | 28 |
1272 | 29 TOOL_LDFLAGS ?= $(SDL_LDFLAGS) |
30 | |
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
|
31 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
|
32 |
e1526854e735
Add install target for Unix Makefile that installs tool binaries only, to
Matti Hamalainen <ccr@tnsp.org>
parents:
424
diff
changeset
|
33 |
e1526854e735
Add install target for Unix Makefile that installs tool binaries only, to
Matti Hamalainen <ccr@tnsp.org>
parents:
424
diff
changeset
|
34 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
|
35 @for fn in $(TOOL_TARGETS); do echo " INSTALL $$fn $(PREFIX)/bin/"; $(INSTALL) -m 755 "$$fn" $(PREFIX)/bin/; done |