annotate Makefile @ 2576:812b16ee49db

I had been living under apparent false impression that "realfft.c" on which the FFT implementation in DMLIB was basically copied from was released in public domain at some point, but it could very well be that it never was. Correct license is (or seems to be) GNU GPL. Thus I removing the code from DMLIB, and profusely apologize to the author, Philip Van Baren. It was never my intention to distribute code based on his original work under a more liberal license than originally intended.
author Matti Hamalainen <ccr@tnsp.org>
date Fri, 11 Mar 2022 16:32:50 +0200
parents 8ab923fe23ef
children 669b71e8b868
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
2418
8abdd95139d6 Build system cleanups: reordering, more comments.
Matti Hamalainen <ccr@tnsp.org>
parents: 2414
diff changeset
1 ###
8abdd95139d6 Build system cleanups: reordering, more comments.
Matti Hamalainen <ccr@tnsp.org>
parents: 2414
diff changeset
2 ### Generic UNIX targets
8abdd95139d6 Build system cleanups: reordering, more comments.
Matti Hamalainen <ccr@tnsp.org>
parents: 2414
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
1557
5e5f75b45f8d Initial port to SDL2. Many things will not work now.
Matti Hamalainen <ccr@tnsp.org>
parents: 1432
diff changeset
11 SDL_CFLAGS ?= $(shell pkg-config --cflags sdl2)
5e5f75b45f8d Initial port to SDL2. Many things will not work now.
Matti Hamalainen <ccr@tnsp.org>
parents: 1432
diff changeset
12 SDL_LDFLAGS ?= $(shell pkg-config --libs sdl2)
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
1557
5e5f75b45f8d Initial port to SDL2. Many things will not work now.
Matti Hamalainen <ccr@tnsp.org>
parents: 1432
diff changeset
14 SDL_TTF_CFLAGS ?= $(shell pkg-config --cflags SDL2_ttf)
5e5f75b45f8d Initial port to SDL2. Many things will not work now.
Matti Hamalainen <ccr@tnsp.org>
parents: 1432
diff changeset
15 SDL_TTF_LDFLAGS ?= $(shell pkg-config --libs SDL2_ttf)
840
a9d0d35476ae Add flag variables for SDL_ttf.
Matti Hamalainen <ccr@tnsp.org>
parents: 503
diff changeset
16
1398
2791f790497d Use $(shell ..) instead of backtics.
Matti Hamalainen <ccr@tnsp.org>
parents: 1272
diff changeset
17 TREMOR_CFLAGS ?= $(shell pkg-config --cflags ogg)
2791f790497d Use $(shell ..) instead of backtics.
Matti Hamalainen <ccr@tnsp.org>
parents: 1272
diff changeset
18 TREMOR_LDFLAGS ?= /usr/lib/libvorbisidec.a $(shell pkg-config --variable=libdir ogg)/libogg.a
0
32250b436bca Initial re-import.
Matti Hamalainen <ccr@tnsp.org>
parents:
diff changeset
19
1398
2791f790497d Use $(shell ..) instead of backtics.
Matti Hamalainen <ccr@tnsp.org>
parents: 1272
diff changeset
20 LIBPNG_CFLAGS ?= $(shell pkg-config --cflags libpng)
1421
c3bda6e63b00 Stray whitespace at line end.
Matti Hamalainen <ccr@tnsp.org>
parents: 1398
diff changeset
21 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
22
1398
2791f790497d Use $(shell ..) instead of backtics.
Matti Hamalainen <ccr@tnsp.org>
parents: 1272
diff changeset
23 ZLIB_CFLAGS ?= $(shell pkg-config --cflags zlib)
2791f790497d Use $(shell ..) instead of backtics.
Matti Hamalainen <ccr@tnsp.org>
parents: 1272
diff changeset
24 ZLIB_LDFLAGS ?= $(shell pkg-config --libs zlib)
424
e88b2993801c Fix build for Win32.
Matti Hamalainen <ccr@tnsp.org>
parents: 421
diff changeset
25
2568
8ab923fe23ef Add Make parameter/variable CHARGEN= for easier defining of
Matti Hamalainen <ccr@tnsp.org>
parents: 2547
diff changeset
26 # NOTE! If you want to define the default path for C64 chargen
8ab923fe23ef Add Make parameter/variable CHARGEN= for easier defining of
Matti Hamalainen <ccr@tnsp.org>
parents: 2547
diff changeset
27 # ROM image file, you can set it with this define and/or Make
8ab923fe23ef Add Make parameter/variable CHARGEN= for easier defining of
Matti Hamalainen <ccr@tnsp.org>
parents: 2547
diff changeset
28 # parameter. Do take note of the somewhat peculiar quotation and
8ab923fe23ef Add Make parameter/variable CHARGEN= for easier defining of
Matti Hamalainen <ccr@tnsp.org>
parents: 2547
diff changeset
29 # escape of backlash '\'. Example: (notice the single quotes)
8ab923fe23ef Add Make parameter/variable CHARGEN= for easier defining of
Matti Hamalainen <ccr@tnsp.org>
parents: 2547
diff changeset
30 #
8ab923fe23ef Add Make parameter/variable CHARGEN= for easier defining of
Matti Hamalainen <ccr@tnsp.org>
parents: 2547
diff changeset
31 # make CHARGEN='/usr/local/share/vice/C64/chargen'
8ab923fe23ef Add Make parameter/variable CHARGEN= for easier defining of
Matti Hamalainen <ccr@tnsp.org>
parents: 2547
diff changeset
32 #
8ab923fe23ef Add Make parameter/variable CHARGEN= for easier defining of
Matti Hamalainen <ccr@tnsp.org>
parents: 2547
diff changeset
33 # If not specified, the shellscript findchargen.sh will be
8ab923fe23ef Add Make parameter/variable CHARGEN= for easier defining of
Matti Hamalainen <ccr@tnsp.org>
parents: 2547
diff changeset
34 # run to detect if the file can be found from VICE installations.
8ab923fe23ef Add Make parameter/variable CHARGEN= for easier defining of
Matti Hamalainen <ccr@tnsp.org>
parents: 2547
diff changeset
35 #
8ab923fe23ef Add Make parameter/variable CHARGEN= for easier defining of
Matti Hamalainen <ccr@tnsp.org>
parents: 2547
diff changeset
36 ifneq ($(CHARGEN),)
8ab923fe23ef Add Make parameter/variable CHARGEN= for easier defining of
Matti Hamalainen <ccr@tnsp.org>
parents: 2547
diff changeset
37 CFLAGS += -DDM_DEF_CHARGEN='"$(CHARGEN)"'
8ab923fe23ef Add Make parameter/variable CHARGEN= for easier defining of
Matti Hamalainen <ccr@tnsp.org>
parents: 2547
diff changeset
38 else
2547
71f04d8e791e Implement a simple shell script for finding C64 chargen ROM image file
Matti Hamalainen <ccr@tnsp.org>
parents: 2418
diff changeset
39 FINDCHARGEN := $(shell sh $(DMLIB)/tools/findchargen.sh)
71f04d8e791e Implement a simple shell script for finding C64 chargen ROM image file
Matti Hamalainen <ccr@tnsp.org>
parents: 2418
diff changeset
40 CFLAGS += $(FINDCHARGEN)
2568
8ab923fe23ef Add Make parameter/variable CHARGEN= for easier defining of
Matti Hamalainen <ccr@tnsp.org>
parents: 2547
diff changeset
41 endif
0
32250b436bca Initial re-import.
Matti Hamalainen <ccr@tnsp.org>
parents:
diff changeset
42
1432
a9516570cc26 Improve build, so that we can build the tools and tests with minimal
Matti Hamalainen <ccr@tnsp.org>
parents: 1421
diff changeset
43 TOOL_LDFLAGS ?=
1272
acae5f8ebc67 Fix build process.
Matti Hamalainen <ccr@tnsp.org>
parents: 1166
diff changeset
44
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
45 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
46
e1526854e735 Add install target for Unix Makefile that installs tool binaries only, to
Matti Hamalainen <ccr@tnsp.org>
parents: 424
diff changeset
47
e1526854e735 Add install target for Unix Makefile that installs tool binaries only, to
Matti Hamalainen <ccr@tnsp.org>
parents: 424
diff changeset
48 install: all
2110
85f76ec15090 Support DESTDIR for 'make install'.
Matti Hamalainen <ccr@tnsp.org>
parents: 1557
diff changeset
49 @for fn in $(TOOL_TARGETS); do echo " INSTALL $$fn $(DESTDIR)$(PREFIX)/bin/"; $(INSTALL) -m 755 "$$fn" $(DESTDIR)$(PREFIX)/bin/; done