annotate Makefile.djgpp @ 339:923e63b9653b

Cleanup.
author Matti Hamalainen <ccr@tnsp.org>
date Mon, 13 Jan 2020 15:14:16 +0200
parents 0d0ccaa46985
children 9bf282a79ac4
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
305
0d0ccaa46985 Add Makefile for cross-compilation to DOS/DJGPP on a *NIX host.
Matti Hamalainen <ccr@tnsp.org>
parents:
diff changeset
1 #
0d0ccaa46985 Add Makefile for cross-compilation to DOS/DJGPP on a *NIX host.
Matti Hamalainen <ccr@tnsp.org>
parents:
diff changeset
2 # For cross-compilation of DJGPP/DOS version under Linux
0d0ccaa46985 Add Makefile for cross-compilation to DOS/DJGPP on a *NIX host.
Matti Hamalainen <ccr@tnsp.org>
parents:
diff changeset
3 #
0d0ccaa46985 Add Makefile for cross-compilation to DOS/DJGPP on a *NIX host.
Matti Hamalainen <ccr@tnsp.org>
parents:
diff changeset
4
0d0ccaa46985 Add Makefile for cross-compilation to DOS/DJGPP on a *NIX host.
Matti Hamalainen <ccr@tnsp.org>
parents:
diff changeset
5 # Compiler, flags and linker flags
0d0ccaa46985 Add Makefile for cross-compilation to DOS/DJGPP on a *NIX host.
Matti Hamalainen <ccr@tnsp.org>
parents:
diff changeset
6 export PATH := /opt/bin:$(PATH)
0d0ccaa46985 Add Makefile for cross-compilation to DOS/DJGPP on a *NIX host.
Matti Hamalainen <ccr@tnsp.org>
parents:
diff changeset
7
0d0ccaa46985 Add Makefile for cross-compilation to DOS/DJGPP on a *NIX host.
Matti Hamalainen <ccr@tnsp.org>
parents:
diff changeset
8 BINTOOL_PREFIX=i586-pc-msdosdjgpp-
0d0ccaa46985 Add Makefile for cross-compilation to DOS/DJGPP on a *NIX host.
Matti Hamalainen <ccr@tnsp.org>
parents:
diff changeset
9
0d0ccaa46985 Add Makefile for cross-compilation to DOS/DJGPP on a *NIX host.
Matti Hamalainen <ccr@tnsp.org>
parents:
diff changeset
10 CFLAGS += -DTH_BYTEORDER=TH_LITTLE_ENDIAN
0d0ccaa46985 Add Makefile for cross-compilation to DOS/DJGPP on a *NIX host.
Matti Hamalainen <ccr@tnsp.org>
parents:
diff changeset
11 LDFLAGS += -s
0d0ccaa46985 Add Makefile for cross-compilation to DOS/DJGPP on a *NIX host.
Matti Hamalainen <ccr@tnsp.org>
parents:
diff changeset
12
0d0ccaa46985 Add Makefile for cross-compilation to DOS/DJGPP on a *NIX host.
Matti Hamalainen <ccr@tnsp.org>
parents:
diff changeset
13 CFLAGS += -DHAVE_STRING_H
0d0ccaa46985 Add Makefile for cross-compilation to DOS/DJGPP on a *NIX host.
Matti Hamalainen <ccr@tnsp.org>
parents:
diff changeset
14 CFLAGS += -DHAVE_INTTYPES_H
0d0ccaa46985 Add Makefile for cross-compilation to DOS/DJGPP on a *NIX host.
Matti Hamalainen <ccr@tnsp.org>
parents:
diff changeset
15
0d0ccaa46985 Add Makefile for cross-compilation to DOS/DJGPP on a *NIX host.
Matti Hamalainen <ccr@tnsp.org>
parents:
diff changeset
16 # Miscellaneous
0d0ccaa46985 Add Makefile for cross-compilation to DOS/DJGPP on a *NIX host.
Matti Hamalainen <ccr@tnsp.org>
parents:
diff changeset
17 BINEXT=.exe
0d0ccaa46985 Add Makefile for cross-compilation to DOS/DJGPP on a *NIX host.
Matti Hamalainen <ccr@tnsp.org>
parents:
diff changeset
18 OBJPATH=obj/dos/
0d0ccaa46985 Add Makefile for cross-compilation to DOS/DJGPP on a *NIX host.
Matti Hamalainen <ccr@tnsp.org>
parents:
diff changeset
19 BINPATH=./
0d0ccaa46985 Add Makefile for cross-compilation to DOS/DJGPP on a *NIX host.
Matti Hamalainen <ccr@tnsp.org>
parents:
diff changeset
20
0d0ccaa46985 Add Makefile for cross-compilation to DOS/DJGPP on a *NIX host.
Matti Hamalainen <ccr@tnsp.org>
parents:
diff changeset
21
0d0ccaa46985 Add Makefile for cross-compilation to DOS/DJGPP on a *NIX host.
Matti Hamalainen <ccr@tnsp.org>
parents:
diff changeset
22 ###
0d0ccaa46985 Add Makefile for cross-compilation to DOS/DJGPP on a *NIX host.
Matti Hamalainen <ccr@tnsp.org>
parents:
diff changeset
23 ### Stuff
0d0ccaa46985 Add Makefile for cross-compilation to DOS/DJGPP on a *NIX host.
Matti Hamalainen <ccr@tnsp.org>
parents:
diff changeset
24 ###
0d0ccaa46985 Add Makefile for cross-compilation to DOS/DJGPP on a *NIX host.
Matti Hamalainen <ccr@tnsp.org>
parents:
diff changeset
25 include Makefile.gen
0d0ccaa46985 Add Makefile for cross-compilation to DOS/DJGPP on a *NIX host.
Matti Hamalainen <ccr@tnsp.org>
parents:
diff changeset
26