annotate Makefile @ 1156:622a469932b1

Change direct assignments to ?=, so that those Makefile variables can be overridden.
author Matti Hamalainen <ccr@tnsp.org>
date Thu, 05 Mar 2015 06:12:06 +0200
parents 6abb6c25d8ed
children f29fa5b6b748
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
0
32250b436bca Initial re-import.
Matti Hamalainen <ccr@tnsp.org>
parents:
diff changeset
1 #
32250b436bca Initial re-import.
Matti Hamalainen <ccr@tnsp.org>
parents:
diff changeset
2 # Generic UNIX targets
32250b436bca Initial re-import.
Matti Hamalainen <ccr@tnsp.org>
parents:
diff changeset
3 #
877
4a2ed354ab4c Use ?= in the Makefiles to accept preset values.
Matti Hamalainen <ccr@tnsp.org>
parents: 876
diff changeset
4 DMLIB ?= ./
886
6abb6c25d8ed Reorder for clarity.
Matti Hamalainen <ccr@tnsp.org>
parents: 877
diff changeset
5 BINPATH ?= ./
841
dd35d66c3714 Improve build process.
Matti Hamalainen <ccr@tnsp.org>
parents: 840
diff changeset
6 OBJPATH ?= ./obj/unix/
dd35d66c3714 Improve build process.
Matti Hamalainen <ccr@tnsp.org>
parents: 840
diff changeset
7 PREFIX ?= /usr/local
877
4a2ed354ab4c Use ?= in the Makefiles to accept preset values.
Matti Hamalainen <ccr@tnsp.org>
parents: 876
diff changeset
8 INSTALL ?= install
4a2ed354ab4c Use ?= in the Makefiles to accept preset values.
Matti Hamalainen <ccr@tnsp.org>
parents: 876
diff changeset
9 RANLIB ?= ranlib
841
dd35d66c3714 Improve build process.
Matti Hamalainen <ccr@tnsp.org>
parents: 840
diff changeset
10
1156
622a469932b1 Change direct assignments to ?=, so that those Makefile variables can be
Matti Hamalainen <ccr@tnsp.org>
parents: 886
diff changeset
11 SDL_CFLAGS ?= `pkg-config --cflags sdl`
622a469932b1 Change direct assignments to ?=, so that those Makefile variables can be
Matti Hamalainen <ccr@tnsp.org>
parents: 886
diff changeset
12 SDL_LDFLAGS ?= `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
13
1156
622a469932b1 Change direct assignments to ?=, so that those Makefile variables can be
Matti Hamalainen <ccr@tnsp.org>
parents: 886
diff changeset
14 SDL_TTF_CFLAGS ?= `pkg-config --cflags SDL_ttf`
622a469932b1 Change direct assignments to ?=, so that those Makefile variables can be
Matti Hamalainen <ccr@tnsp.org>
parents: 886
diff changeset
15 SDL_TTF_LDFLAGS ?= `pkg-config --libs SDL_ttf`
840
a9d0d35476ae Add flag variables for SDL_ttf.
Matti Hamalainen <ccr@tnsp.org>
parents: 503
diff changeset
16
1156
622a469932b1 Change direct assignments to ?=, so that those Makefile variables can be
Matti Hamalainen <ccr@tnsp.org>
parents: 886
diff changeset
17 TREMOR_CFLAGS ?= `pkg-config --cflags ogg`
622a469932b1 Change direct assignments to ?=, so that those Makefile variables can be
Matti Hamalainen <ccr@tnsp.org>
parents: 886
diff changeset
18 TREMOR_LDFLAGS ?= /usr/lib/libvorbisidec.a `pkg-config --variable=libdir ogg`/libogg.a
0
32250b436bca Initial re-import.
Matti Hamalainen <ccr@tnsp.org>
parents:
diff changeset
19
1156
622a469932b1 Change direct assignments to ?=, so that those Makefile variables can be
Matti Hamalainen <ccr@tnsp.org>
parents: 886
diff changeset
20 LIBPNG_CFLAGS ?= `pkg-config --cflags libpng`
622a469932b1 Change direct assignments to ?=, so that those Makefile variables can be
Matti Hamalainen <ccr@tnsp.org>
parents: 886
diff changeset
21 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
22
1156
622a469932b1 Change direct assignments to ?=, so that those Makefile variables can be
Matti Hamalainen <ccr@tnsp.org>
parents: 886
diff changeset
23 ZLIB_CFLAGS ?= `pkg-config --cflags zlib`
622a469932b1 Change direct assignments to ?=, so that those Makefile variables can be
Matti Hamalainen <ccr@tnsp.org>
parents: 886
diff changeset
24 ZLIB_LDFLAGS ?= `pkg-config --libs zlib`
424
e88b2993801c Fix build for Win32.
Matti Hamalainen <ccr@tnsp.org>
parents: 421
diff changeset
25
0
32250b436bca Initial re-import.
Matti Hamalainen <ccr@tnsp.org>
parents:
diff changeset
26
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
27 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
28
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 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
31 @for fn in $(TOOL_TARGETS); do echo " INSTALL $$fn $(PREFIX)/bin/"; $(INSTALL) -m 755 "$$fn" $(PREFIX)/bin/; done