annotate Makefile @ 841:dd35d66c3714

Improve build process.
author Matti Hamalainen <ccr@tnsp.org>
date Mon, 14 Jul 2014 00:09:12 +0300
parents a9d0d35476ae
children 8d909205b0fd
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 #
841
dd35d66c3714 Improve build process.
Matti Hamalainen <ccr@tnsp.org>
parents: 840
diff changeset
4 DMLIB = ./
dd35d66c3714 Improve build process.
Matti Hamalainen <ccr@tnsp.org>
parents: 840
diff changeset
5 BINPATH ?=
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 EXEEXT ?=
dd35d66c3714 Improve build process.
Matti Hamalainen <ccr@tnsp.org>
parents: 840
diff changeset
8 PREFIX ?= /usr/local
dd35d66c3714 Improve build process.
Matti Hamalainen <ccr@tnsp.org>
parents: 840
diff changeset
9 INSTALL = install
dd35d66c3714 Improve build process.
Matti Hamalainen <ccr@tnsp.org>
parents: 840
diff changeset
10 RANLIB = ranlib
dd35d66c3714 Improve build process.
Matti Hamalainen <ccr@tnsp.org>
parents: 840
diff changeset
11
0
32250b436bca Initial re-import.
Matti Hamalainen <ccr@tnsp.org>
parents:
diff changeset
12 SDL_CFLAGS=`sdl-config --cflags`
32250b436bca Initial re-import.
Matti Hamalainen <ccr@tnsp.org>
parents:
diff changeset
13 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
14
840
a9d0d35476ae Add flag variables for SDL_ttf.
Matti Hamalainen <ccr@tnsp.org>
parents: 503
diff changeset
15 SDL_TTF_CFLAGS=
a9d0d35476ae Add flag variables for SDL_ttf.
Matti Hamalainen <ccr@tnsp.org>
parents: 503
diff changeset
16 SDL_TTF_LDFLAGS=-lSDL_ttf
a9d0d35476ae Add flag variables for SDL_ttf.
Matti Hamalainen <ccr@tnsp.org>
parents: 503
diff changeset
17
112
e1b6aa3017c2 Add Tremor stuff to default Makefiles.
Matti Hamalainen <ccr@tnsp.org>
parents: 5
diff changeset
18 TREMOR_CFLAGS=-I/usr/local/lib/
e1b6aa3017c2 Add Tremor stuff to default Makefiles.
Matti Hamalainen <ccr@tnsp.org>
parents: 5
diff changeset
19 TREMOR_LDFLAGS=/usr/local/lib/libvorbisidec.a /usr/lib/i386-linux-gnu/libogg.a
0
32250b436bca Initial re-import.
Matti Hamalainen <ccr@tnsp.org>
parents:
diff changeset
20
421
f18f07d8a731 Fix building with libpng.
Matti Hamalainen <ccr@tnsp.org>
parents: 407
diff changeset
21 LIBPNG_CFLAGS=`pkg-config --cflags libpng`
f18f07d8a731 Fix building with libpng.
Matti Hamalainen <ccr@tnsp.org>
parents: 407
diff changeset
22 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
23
424
e88b2993801c Fix build for Win32.
Matti Hamalainen <ccr@tnsp.org>
parents: 421
diff changeset
24 ZLIB_CFLAGS=`pkg-config --cflags zlib`
e88b2993801c Fix build for Win32.
Matti Hamalainen <ccr@tnsp.org>
parents: 421
diff changeset
25 ZLIB_LDFLAGS=`pkg-config --libs zlib`
e88b2993801c Fix build for Win32.
Matti Hamalainen <ccr@tnsp.org>
parents: 421
diff changeset
26
0
32250b436bca Initial re-import.
Matti Hamalainen <ccr@tnsp.org>
parents:
diff changeset
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