annotate Makefile @ 6:be3ccb7ca790

Improve build.
author Matti Hamalainen <ccr@tnsp.org>
date Thu, 25 Sep 2014 01:58:48 +0300
parents ea774012d049
children c4b4acee5efa
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
8e7e08bf7b9e Initial import.
Matti Hamalainen <ccr@tnsp.org>
parents:
diff changeset
6 # C-compiler, flags and linker flags
8e7e08bf7b9e Initial import.
Matti Hamalainen <ccr@tnsp.org>
parents:
diff changeset
7 CC=gcc
8e7e08bf7b9e Initial import.
Matti Hamalainen <ccr@tnsp.org>
parents:
diff changeset
8 AR=ar
8e7e08bf7b9e Initial import.
Matti Hamalainen <ccr@tnsp.org>
parents:
diff changeset
9 RANLIB=ranlib
8e7e08bf7b9e Initial import.
Matti Hamalainen <ccr@tnsp.org>
parents:
diff changeset
10
4
ea774012d049 Fix build system.
Matti Hamalainen <ccr@tnsp.org>
parents: 0
diff changeset
11 CFLAGS=-DHAVE_STRING_H -DHAVE_STDINT_H -DHAVE_CONFIG_H=1 -I.
ea774012d049 Fix build system.
Matti Hamalainen <ccr@tnsp.org>
parents: 0
diff changeset
12
0
8e7e08bf7b9e Initial import.
Matti Hamalainen <ccr@tnsp.org>
parents:
diff changeset
13 LDFLAGS=
8e7e08bf7b9e Initial import.
Matti Hamalainen <ccr@tnsp.org>
parents:
diff changeset
14
8e7e08bf7b9e Initial import.
Matti Hamalainen <ccr@tnsp.org>
parents:
diff changeset
15 #CFLAGS += -DHAVE_STDINT_H
8e7e08bf7b9e Initial import.
Matti Hamalainen <ccr@tnsp.org>
parents:
diff changeset
16 #CFLAGS += -DHAVE_SYS_TYPES_H
8e7e08bf7b9e Initial import.
Matti Hamalainen <ccr@tnsp.org>
parents:
diff changeset
17
8e7e08bf7b9e Initial import.
Matti Hamalainen <ccr@tnsp.org>
parents:
diff changeset
18 # Miscellaneous
8e7e08bf7b9e Initial import.
Matti Hamalainen <ccr@tnsp.org>
parents:
diff changeset
19 BINPATH=./
8e7e08bf7b9e Initial import.
Matti Hamalainen <ccr@tnsp.org>
parents:
diff changeset
20 OBJPATH=obj/unix/
8e7e08bf7b9e Initial import.
Matti Hamalainen <ccr@tnsp.org>
parents:
diff changeset
21 EXEEXT=
8e7e08bf7b9e Initial import.
Matti Hamalainen <ccr@tnsp.org>
parents:
diff changeset
22
8e7e08bf7b9e Initial import.
Matti Hamalainen <ccr@tnsp.org>
parents:
diff changeset
23
4
ea774012d049 Fix build system.
Matti Hamalainen <ccr@tnsp.org>
parents: 0
diff changeset
24 ###
ea774012d049 Fix build system.
Matti Hamalainen <ccr@tnsp.org>
parents: 0
diff changeset
25 ### Stuff
ea774012d049 Fix build system.
Matti Hamalainen <ccr@tnsp.org>
parents: 0
diff changeset
26 ###
ea774012d049 Fix build system.
Matti Hamalainen <ccr@tnsp.org>
parents: 0
diff changeset
27 ENDIANCHK_BIN=$(BINPATH)endianchk$(EXEEXT)
ea774012d049 Fix build system.
Matti Hamalainen <ccr@tnsp.org>
parents: 0
diff changeset
28 TARGETS += $(ENDIANCHK_BIN)
ea774012d049 Fix build system.
Matti Hamalainen <ccr@tnsp.org>
parents: 0
diff changeset
29
0
8e7e08bf7b9e Initial import.
Matti Hamalainen <ccr@tnsp.org>
parents:
diff changeset
30 include Makefile.gen
4
ea774012d049 Fix build system.
Matti Hamalainen <ccr@tnsp.org>
parents: 0
diff changeset
31
ea774012d049 Fix build system.
Matti Hamalainen <ccr@tnsp.org>
parents: 0
diff changeset
32
6
be3ccb7ca790 Improve build.
Matti Hamalainen <ccr@tnsp.org>
parents: 4
diff changeset
33 $(ENDIANCHK_BIN): endianchk.c
be3ccb7ca790 Improve build.
Matti Hamalainen <ccr@tnsp.org>
parents: 4
diff changeset
34 $(CC) $(CFLAGS) -o $@ $+
4
ea774012d049 Fix build system.
Matti Hamalainen <ccr@tnsp.org>
parents: 0
diff changeset
35
ea774012d049 Fix build system.
Matti Hamalainen <ccr@tnsp.org>
parents: 0
diff changeset
36 config.h: $(ENDIANCHK_BIN)
ea774012d049 Fix build system.
Matti Hamalainen <ccr@tnsp.org>
parents: 0
diff changeset
37 $(ENDIANCHK_BIN) > $@