Mercurial > hg > th-libs
annotate Makefile @ 735:31bc1ed07cf5
Renaming BOOL->bool and TRUE/FALSE to true/false, and using stdbool.h if available.
author | Matti Hamalainen <ccr@tnsp.org> |
---|---|
date | Wed, 07 Dec 2022 12:14:39 +0200 |
parents | ee165ef28b6f |
children | 94e8e6ad8c9e |
rev | line source |
---|---|
599
ee165ef28b6f
Improve few Makefile comments.
Matti Hamalainen <ccr@tnsp.org>
parents:
576
diff
changeset
|
1 ### |
ee165ef28b6f
Improve few Makefile comments.
Matti Hamalainen <ccr@tnsp.org>
parents:
576
diff
changeset
|
2 ### Configuration settings for Linux and generic UNIX |
ee165ef28b6f
Improve few Makefile comments.
Matti Hamalainen <ccr@tnsp.org>
parents:
576
diff
changeset
|
3 ### |
254
3d1e2af4e4e6
Start of a very simplistic unit test suite. Initially handling just printf()
Matti Hamalainen <ccr@tnsp.org>
parents:
diff
changeset
|
4 |
422 | 5 # Miscellaneous |
599
ee165ef28b6f
Improve few Makefile comments.
Matti Hamalainen <ccr@tnsp.org>
parents:
576
diff
changeset
|
6 BINTOOL_PREFIX ?= |
ee165ef28b6f
Improve few Makefile comments.
Matti Hamalainen <ccr@tnsp.org>
parents:
576
diff
changeset
|
7 PREFIX ?= /usr/local |
ee165ef28b6f
Improve few Makefile comments.
Matti Hamalainen <ccr@tnsp.org>
parents:
576
diff
changeset
|
8 BINPATH ?= ./ |
ee165ef28b6f
Improve few Makefile comments.
Matti Hamalainen <ccr@tnsp.org>
parents:
576
diff
changeset
|
9 OBJPATH ?= obj/unix/ |
ee165ef28b6f
Improve few Makefile comments.
Matti Hamalainen <ccr@tnsp.org>
parents:
576
diff
changeset
|
10 BINEXT ?= |
422 | 11 |
433 | 12 # Compiler flags and linker flags |
399 | 13 CFLAGS += -DHAVE_CONFIG_H |
254
3d1e2af4e4e6
Start of a very simplistic unit test suite. Initially handling just printf()
Matti Hamalainen <ccr@tnsp.org>
parents:
diff
changeset
|
14 LDFLAGS += |
3d1e2af4e4e6
Start of a very simplistic unit test suite. Initially handling just printf()
Matti Hamalainen <ccr@tnsp.org>
parents:
diff
changeset
|
15 |
399 | 16 CFLAGS += -DHAVE_STRING_H |
735
31bc1ed07cf5
Renaming BOOL->bool and TRUE/FALSE to true/false, and using stdbool.h if available.
Matti Hamalainen <ccr@tnsp.org>
parents:
599
diff
changeset
|
17 CFLAGS += -DHAVE_STDBOOL_H |
576
e4ae9ef86332
Remove useless HAVE_* defines.
Matti Hamalainen <ccr@tnsp.org>
parents:
562
diff
changeset
|
18 CFLAGS += -DHAVE_INTTYPES_H |
254
3d1e2af4e4e6
Start of a very simplistic unit test suite. Initially handling just printf()
Matti Hamalainen <ccr@tnsp.org>
parents:
diff
changeset
|
19 #CFLAGS += -DHAVE_SYS_TYPES_H |
3d1e2af4e4e6
Start of a very simplistic unit test suite. Initially handling just printf()
Matti Hamalainen <ccr@tnsp.org>
parents:
diff
changeset
|
20 |
3d1e2af4e4e6
Start of a very simplistic unit test suite. Initially handling just printf()
Matti Hamalainen <ccr@tnsp.org>
parents:
diff
changeset
|
21 |
3d1e2af4e4e6
Start of a very simplistic unit test suite. Initially handling just printf()
Matti Hamalainen <ccr@tnsp.org>
parents:
diff
changeset
|
22 ### |
422 | 23 ### Unix targets |
254
3d1e2af4e4e6
Start of a very simplistic unit test suite. Initially handling just printf()
Matti Hamalainen <ccr@tnsp.org>
parents:
diff
changeset
|
24 ### |
562
5d2c1bfc04aa
Rename EXEEXT to BINEXT in the build system.
Matti Hamalainen <ccr@tnsp.org>
parents:
457
diff
changeset
|
25 ENDIANCHK_BIN = $(BINPATH)endianchk$(BINEXT) |
254
3d1e2af4e4e6
Start of a very simplistic unit test suite. Initially handling just printf()
Matti Hamalainen <ccr@tnsp.org>
parents:
diff
changeset
|
26 NOINST_TARGETS += $(ENDIANCHK_BIN) config.h |
302 | 27 THLIBS_DEP += config.h |
254
3d1e2af4e4e6
Start of a very simplistic unit test suite. Initially handling just printf()
Matti Hamalainen <ccr@tnsp.org>
parents:
diff
changeset
|
28 |
3d1e2af4e4e6
Start of a very simplistic unit test suite. Initially handling just printf()
Matti Hamalainen <ccr@tnsp.org>
parents:
diff
changeset
|
29 include Makefile.gen |