annotate Makefile.unix @ 695:f1df1cf69a38

Rename EXEEXT to BINEXT in the build system, as per changes in th-libs build system.
author Matti Hamalainen <ccr@tnsp.org>
date Mon, 06 Jan 2020 12:40:57 +0200
parents cfbc5ddf74e5
children
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
665
23d16d9cdf96 Work on the build system, split generic UNIX things into Makefile.unix
Matti Hamalainen <ccr@tnsp.org>
parents:
diff changeset
1 ##
23d16d9cdf96 Work on the build system, split generic UNIX things into Makefile.unix
Matti Hamalainen <ccr@tnsp.org>
parents:
diff changeset
2 ## Common UNIX style Makefile stuff
23d16d9cdf96 Work on the build system, split generic UNIX things into Makefile.unix
Matti Hamalainen <ccr@tnsp.org>
parents:
diff changeset
3 ##
23d16d9cdf96 Work on the build system, split generic UNIX things into Makefile.unix
Matti Hamalainen <ccr@tnsp.org>
parents:
diff changeset
4 PREFIX ?= /usr/local
23d16d9cdf96 Work on the build system, split generic UNIX things into Makefile.unix
Matti Hamalainen <ccr@tnsp.org>
parents:
diff changeset
5 DOC ?= README
23d16d9cdf96 Work on the build system, split generic UNIX things into Makefile.unix
Matti Hamalainen <ccr@tnsp.org>
parents:
diff changeset
6
23d16d9cdf96 Work on the build system, split generic UNIX things into Makefile.unix
Matti Hamalainen <ccr@tnsp.org>
parents:
diff changeset
7 CFLAGS += -DHAVE_CONFIG_H
23d16d9cdf96 Work on the build system, split generic UNIX things into Makefile.unix
Matti Hamalainen <ccr@tnsp.org>
parents:
diff changeset
8
23d16d9cdf96 Work on the build system, split generic UNIX things into Makefile.unix
Matti Hamalainen <ccr@tnsp.org>
parents:
diff changeset
9
23d16d9cdf96 Work on the build system, split generic UNIX things into Makefile.unix
Matti Hamalainen <ccr@tnsp.org>
parents:
diff changeset
10 ##
23d16d9cdf96 Work on the build system, split generic UNIX things into Makefile.unix
Matti Hamalainen <ccr@tnsp.org>
parents:
diff changeset
11 ## Miscellaneous
23d16d9cdf96 Work on the build system, split generic UNIX things into Makefile.unix
Matti Hamalainen <ccr@tnsp.org>
parents:
diff changeset
12 ##
23d16d9cdf96 Work on the build system, split generic UNIX things into Makefile.unix
Matti Hamalainen <ccr@tnsp.org>
parents:
diff changeset
13 BINPATH ?= ./
23d16d9cdf96 Work on the build system, split generic UNIX things into Makefile.unix
Matti Hamalainen <ccr@tnsp.org>
parents:
diff changeset
14 OBJPATH ?= obj/unix/
695
f1df1cf69a38 Rename EXEEXT to BINEXT in the build system, as per changes in th-libs build system.
Matti Hamalainen <ccr@tnsp.org>
parents: 676
diff changeset
15 BINEXT ?=
665
23d16d9cdf96 Work on the build system, split generic UNIX things into Makefile.unix
Matti Hamalainen <ccr@tnsp.org>
parents:
diff changeset
16
695
f1df1cf69a38 Rename EXEEXT to BINEXT in the build system, as per changes in th-libs build system.
Matti Hamalainen <ccr@tnsp.org>
parents: 676
diff changeset
17 ENDIANCHK_BIN = $(BINPATH)endianchk$(BINEXT)
665
23d16d9cdf96 Work on the build system, split generic UNIX things into Makefile.unix
Matti Hamalainen <ccr@tnsp.org>
parents:
diff changeset
18 NOINST_TARGETS += $(ENDIANCHK_BIN) config.h
671
dd3083a3383d Use the makefile.inc helper from th-libs for generic targets.
Matti Hamalainen <ccr@tnsp.org>
parents: 665
diff changeset
19 THLIBS_DEP = config.h
665
23d16d9cdf96 Work on the build system, split generic UNIX things into Makefile.unix
Matti Hamalainen <ccr@tnsp.org>
parents:
diff changeset
20
23d16d9cdf96 Work on the build system, split generic UNIX things into Makefile.unix
Matti Hamalainen <ccr@tnsp.org>
parents:
diff changeset
21 include Makefile.gen
23d16d9cdf96 Work on the build system, split generic UNIX things into Makefile.unix
Matti Hamalainen <ccr@tnsp.org>
parents:
diff changeset
22
23d16d9cdf96 Work on the build system, split generic UNIX things into Makefile.unix
Matti Hamalainen <ccr@tnsp.org>
parents:
diff changeset
23
23d16d9cdf96 Work on the build system, split generic UNIX things into Makefile.unix
Matti Hamalainen <ccr@tnsp.org>
parents:
diff changeset
24 ##
23d16d9cdf96 Work on the build system, split generic UNIX things into Makefile.unix
Matti Hamalainen <ccr@tnsp.org>
parents:
diff changeset
25 ## Install targets
23d16d9cdf96 Work on the build system, split generic UNIX things into Makefile.unix
Matti Hamalainen <ccr@tnsp.org>
parents:
diff changeset
26 ##
23d16d9cdf96 Work on the build system, split generic UNIX things into Makefile.unix
Matti Hamalainen <ccr@tnsp.org>
parents:
diff changeset
27 install: all
23d16d9cdf96 Work on the build system, split generic UNIX things into Makefile.unix
Matti Hamalainen <ccr@tnsp.org>
parents:
diff changeset
28 @for fn in $(TARGETS); do echo " INSTALL $$fn $(PREFIX)/bin/"; $(INSTALL) -m 755 "$$fn" $(PREFIX)/bin/; done