annotate Makefile @ 409:5a27c0fbbf20 default tip

Added tag rel-1_0_1 for changeset f18129e65b6f
author Matti Hamalainen <ccr@tnsp.org>
date Wed, 20 Dec 2023 08:08:38 +0200
parents 964ae4f29138
children
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
0
8e7e08bf7b9e Initial import.
Matti Hamalainen <ccr@tnsp.org>
parents:
diff changeset
1 #
8e7e08bf7b9e Initial import.
Matti Hamalainen <ccr@tnsp.org>
parents:
diff changeset
2 # Configuration settings for Linux and generic UNIX
8e7e08bf7b9e Initial import.
Matti Hamalainen <ccr@tnsp.org>
parents:
diff changeset
3 # See other Makefile.* files for more options.
8e7e08bf7b9e Initial import.
Matti Hamalainen <ccr@tnsp.org>
parents:
diff changeset
4 #
8e7e08bf7b9e Initial import.
Matti Hamalainen <ccr@tnsp.org>
parents:
diff changeset
5
130
d73b74602759 Build system cleanups.
Matti Hamalainen <ccr@tnsp.org>
parents: 124
diff changeset
6 # Compiler, flags and linker flags
68
8dda5f225083 Improve build process.
Matti Hamalainen <ccr@tnsp.org>
parents: 54
diff changeset
7 PREFIX ?= /usr/local
130
d73b74602759 Build system cleanups.
Matti Hamalainen <ccr@tnsp.org>
parents: 124
diff changeset
8
d73b74602759 Build system cleanups.
Matti Hamalainen <ccr@tnsp.org>
parents: 124
diff changeset
9 BINTOOL_PREFIX =
0
8e7e08bf7b9e Initial import.
Matti Hamalainen <ccr@tnsp.org>
parents:
diff changeset
10
122
9fb96c170bbc Make build process less noisy and also work with parallel make.
Matti Hamalainen <ccr@tnsp.org>
parents: 68
diff changeset
11 CFLAGS += -DHAVE_CONFIG_H
68
8dda5f225083 Improve build process.
Matti Hamalainen <ccr@tnsp.org>
parents: 54
diff changeset
12 LDFLAGS +=
0
8e7e08bf7b9e Initial import.
Matti Hamalainen <ccr@tnsp.org>
parents:
diff changeset
13
157
8fc887cb56d0 Implement iconv support for converting from PSID de-facto latin-1/ISO-8859-*
Matti Hamalainen <ccr@tnsp.org>
parents: 130
diff changeset
14 CFLAGS += -DHAVE_ICONV
8fc887cb56d0 Implement iconv support for converting from PSID de-facto latin-1/ISO-8859-*
Matti Hamalainen <ccr@tnsp.org>
parents: 130
diff changeset
15
122
9fb96c170bbc Make build process less noisy and also work with parallel make.
Matti Hamalainen <ccr@tnsp.org>
parents: 68
diff changeset
16 CFLAGS += -DHAVE_STRING_H
393
db64a58314a9 Renaming BOOL->bool and TRUE/FALSE to true/false, and using stdbool.h if available.
Matti Hamalainen <ccr@tnsp.org>
parents: 346
diff changeset
17 CFLAGS += -DHAVE_STDBOOL_H
298
4c00b579d7ac Build system define fixes.
Matti Hamalainen <ccr@tnsp.org>
parents: 274
diff changeset
18 CFLAGS += -DHAVE_INTTYPES_H
4c00b579d7ac Build system define fixes.
Matti Hamalainen <ccr@tnsp.org>
parents: 274
diff changeset
19 #CFLAGS += -DHAVE_STDINT_H
0
8e7e08bf7b9e Initial import.
Matti Hamalainen <ccr@tnsp.org>
parents:
diff changeset
20 #CFLAGS += -DHAVE_SYS_TYPES_H
8e7e08bf7b9e Initial import.
Matti Hamalainen <ccr@tnsp.org>
parents:
diff changeset
21
8e7e08bf7b9e Initial import.
Matti Hamalainen <ccr@tnsp.org>
parents:
diff changeset
22 # Miscellaneous
346
5fafd0735b18 Fix build.
Matti Hamalainen <ccr@tnsp.org>
parents: 298
diff changeset
23 BINPATH = ./
5fafd0735b18 Fix build.
Matti Hamalainen <ccr@tnsp.org>
parents: 298
diff changeset
24 OBJPATH = obj/unix/
5fafd0735b18 Fix build.
Matti Hamalainen <ccr@tnsp.org>
parents: 298
diff changeset
25 BINEXT =
0
8e7e08bf7b9e Initial import.
Matti Hamalainen <ccr@tnsp.org>
parents:
diff changeset
26
8e7e08bf7b9e Initial import.
Matti Hamalainen <ccr@tnsp.org>
parents:
diff changeset
27
4
ea774012d049 Fix build system.
Matti Hamalainen <ccr@tnsp.org>
parents: 0
diff changeset
28 ###
ea774012d049 Fix build system.
Matti Hamalainen <ccr@tnsp.org>
parents: 0
diff changeset
29 ### Stuff
ea774012d049 Fix build system.
Matti Hamalainen <ccr@tnsp.org>
parents: 0
diff changeset
30 ###
346
5fafd0735b18 Fix build.
Matti Hamalainen <ccr@tnsp.org>
parents: 298
diff changeset
31 ENDIANCHK_BIN = $(BINPATH)endianchk$(BINEXT)
68
8dda5f225083 Improve build process.
Matti Hamalainen <ccr@tnsp.org>
parents: 54
diff changeset
32 NOINST_TARGETS += $(ENDIANCHK_BIN) config.h
122
9fb96c170bbc Make build process less noisy and also work with parallel make.
Matti Hamalainen <ccr@tnsp.org>
parents: 68
diff changeset
33 THLIBS_DEP += config.h
4
ea774012d049 Fix build system.
Matti Hamalainen <ccr@tnsp.org>
parents: 0
diff changeset
34
405
964ae4f29138 Rename Makefile.gen to Makefile.common
Matti Hamalainen <ccr@tnsp.org>
parents: 393
diff changeset
35 include Makefile.common
4
ea774012d049 Fix build system.
Matti Hamalainen <ccr@tnsp.org>
parents: 0
diff changeset
36
ea774012d049 Fix build system.
Matti Hamalainen <ccr@tnsp.org>
parents: 0
diff changeset
37
68
8dda5f225083 Improve build process.
Matti Hamalainen <ccr@tnsp.org>
parents: 54
diff changeset
38 install: all
8dda5f225083 Improve build process.
Matti Hamalainen <ccr@tnsp.org>
parents: 54
diff changeset
39 @for fn in $(TARGETS); do echo " INSTALL $$fn $(PREFIX)/bin/"; $(INSTALL) -m 755 "$$fn" $(PREFIX)/bin/; done