annotate Makefile @ 422:c89f7aa4ced8

Cleanup Makefile.
author Matti Hamalainen <ccr@tnsp.org>
date Wed, 09 Mar 2016 16:14:47 +0200
parents d8702bbab84f
children 0a2f32b8a26e
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
254
3d1e2af4e4e6 Start of a very simplistic unit test suite. Initially handling just printf()
Matti Hamalainen <ccr@tnsp.org>
parents:
diff changeset
1 #
3d1e2af4e4e6 Start of a very simplistic unit test suite. Initially handling just printf()
Matti Hamalainen <ccr@tnsp.org>
parents:
diff changeset
2 # Configuration settings for Linux and generic UNIX
3d1e2af4e4e6 Start of a very simplistic unit test suite. Initially handling just printf()
Matti Hamalainen <ccr@tnsp.org>
parents:
diff changeset
3 # See other Makefile.* files for more options.
3d1e2af4e4e6 Start of a very simplistic unit test suite. Initially handling just printf()
Matti Hamalainen <ccr@tnsp.org>
parents:
diff changeset
4 #
3d1e2af4e4e6 Start of a very simplistic unit test suite. Initially handling just printf()
Matti Hamalainen <ccr@tnsp.org>
parents:
diff changeset
5
422
c89f7aa4ced8 Cleanup Makefile.
Matti Hamalainen <ccr@tnsp.org>
parents: 421
diff changeset
6 # Miscellaneous
c89f7aa4ced8 Cleanup Makefile.
Matti Hamalainen <ccr@tnsp.org>
parents: 421
diff changeset
7 PREFIX = /usr/local
c89f7aa4ced8 Cleanup Makefile.
Matti Hamalainen <ccr@tnsp.org>
parents: 421
diff changeset
8 BINPATH = ./
c89f7aa4ced8 Cleanup Makefile.
Matti Hamalainen <ccr@tnsp.org>
parents: 421
diff changeset
9 OBJPATH = obj/unix/
c89f7aa4ced8 Cleanup Makefile.
Matti Hamalainen <ccr@tnsp.org>
parents: 421
diff changeset
10 EXEEXT =
c89f7aa4ced8 Cleanup Makefile.
Matti Hamalainen <ccr@tnsp.org>
parents: 421
diff changeset
11
254
3d1e2af4e4e6 Start of a very simplistic unit test suite. Initially handling just printf()
Matti Hamalainen <ccr@tnsp.org>
parents:
diff changeset
12 # C-compiler, flags and linker flags
3d1e2af4e4e6 Start of a very simplistic unit test suite. Initially handling just printf()
Matti Hamalainen <ccr@tnsp.org>
parents:
diff changeset
13 CC ?= gcc
3d1e2af4e4e6 Start of a very simplistic unit test suite. Initially handling just printf()
Matti Hamalainen <ccr@tnsp.org>
parents:
diff changeset
14 AR ?= ar
3d1e2af4e4e6 Start of a very simplistic unit test suite. Initially handling just printf()
Matti Hamalainen <ccr@tnsp.org>
parents:
diff changeset
15 RANLIB ?= ranlib
3d1e2af4e4e6 Start of a very simplistic unit test suite. Initially handling just printf()
Matti Hamalainen <ccr@tnsp.org>
parents:
diff changeset
16 INSTALL ?= install
3d1e2af4e4e6 Start of a very simplistic unit test suite. Initially handling just printf()
Matti Hamalainen <ccr@tnsp.org>
parents:
diff changeset
17
399
edb6b42c5e8a Build system cleanup.
Matti Hamalainen <ccr@tnsp.org>
parents: 391
diff changeset
18 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
19 LDFLAGS +=
3d1e2af4e4e6 Start of a very simplistic unit test suite. Initially handling just printf()
Matti Hamalainen <ccr@tnsp.org>
parents:
diff changeset
20
399
edb6b42c5e8a Build system cleanup.
Matti Hamalainen <ccr@tnsp.org>
parents: 391
diff changeset
21 CFLAGS += -DHAVE_STRING_H
391
6e6c8c4fc210 Buildsystem improvements.
Matti Hamalainen <ccr@tnsp.org>
parents: 382
diff changeset
22 CFLAGS += -DHAVE_STDINT_H
254
3d1e2af4e4e6 Start of a very simplistic unit test suite. Initially handling just printf()
Matti Hamalainen <ccr@tnsp.org>
parents:
diff changeset
23 #CFLAGS += -DHAVE_SYS_TYPES_H
391
6e6c8c4fc210 Buildsystem improvements.
Matti Hamalainen <ccr@tnsp.org>
parents: 382
diff changeset
24 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
25
3d1e2af4e4e6 Start of a very simplistic unit test suite. Initially handling just printf()
Matti Hamalainen <ccr@tnsp.org>
parents:
diff changeset
26
3d1e2af4e4e6 Start of a very simplistic unit test suite. Initially handling just printf()
Matti Hamalainen <ccr@tnsp.org>
parents:
diff changeset
27 ###
422
c89f7aa4ced8 Cleanup Makefile.
Matti Hamalainen <ccr@tnsp.org>
parents: 421
diff changeset
28 ### Unix targets
254
3d1e2af4e4e6 Start of a very simplistic unit test suite. Initially handling just printf()
Matti Hamalainen <ccr@tnsp.org>
parents:
diff changeset
29 ###
302
3f05f6fb5dfd Fix build.
Matti Hamalainen <ccr@tnsp.org>
parents: 254
diff changeset
30 ENDIANCHK_BIN = $(BINPATH)endianchk$(EXEEXT)
254
3d1e2af4e4e6 Start of a very simplistic unit test suite. Initially handling just printf()
Matti Hamalainen <ccr@tnsp.org>
parents:
diff changeset
31 NOINST_TARGETS += $(ENDIANCHK_BIN) config.h
302
3f05f6fb5dfd Fix build.
Matti Hamalainen <ccr@tnsp.org>
parents: 254
diff changeset
32 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
33
3d1e2af4e4e6 Start of a very simplistic unit test suite. Initially handling just printf()
Matti Hamalainen <ccr@tnsp.org>
parents:
diff changeset
34 include Makefile.gen