-
Notifications
You must be signed in to change notification settings - Fork 0
/
config.mk.tmpl
49 lines (36 loc) · 1.69 KB
/
config.mk.tmpl
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
#
# copy/rename this to config.mk, customize to match your local setup
#
SELF_DIR := $(dir $(lastword $(MAKEFILE_LIST)))
#
# Amiga OS toolchain related config
#
OBJDIR_AMIGAOS = $(SELF_DIR)/target/m68k-amigaos/obj
BINDIR_AMIGAOS = $(SELF_DIR)/target/m68k-amigaos/bin
DEPDIR_AMIGAOS = $(SELF_DIR)/target/m68k-amigaos/.deps
TOOLCHAIN_AMIGAOS_PREFIX = /opt/amiga
# CFLAGS_AMIGAOS = -O3 -Wall -Werror -march=68000 -mcpu=68000 -mcrt=nix13 -I$(SELF_DIR)/src/include
CFLAGS_AMIGAOS = -O3 -Wall -Werror -fno-builtin -march=68000 -mcpu=68000 -mcrt=nix20 -I$(SELF_DIR)/src/include
DEPFLAGS_AMIGAOS = -MT $@ -MMD -MP -MF $(DEPDIR_AMIGAOS)/$*.d
ASFLAGS_AMIGAOS = -march=68000 -mcpu=68000
# LDFLAGS_AMIGAOS = -lm $(TOOLCHAIN_AMIGAOS_PREFIX)/m68k-amigaos/libnix/lib/detach.o
LDFLAGS_AMIGAOS = -lm
CC_AMIGAOS = $(TOOLCHAIN_AMIGAOS_PREFIX)/bin/m68k-amigaos-gcc
AS_AMIGAOS = $(TOOLCHAIN_AMIGAOS_PREFIX)/bin/m68k-amigaos-as
LD_AMIGAOS = $(TOOLCHAIN_AMIGAOS_PREFIX)/bin/m68k-amigaos-ld
AR_AMIGAOS = $(TOOLCHAIN_AMIGAOS_PREFIX)/bin/m68k-amigaos-ar
STRIP_AMIGAOS = $(TOOLCHAIN_AMIGAOS_PREFIX)/bin/m68k-amigaos-strip
OBJDUMP_AMIGAOS = $(TOOLCHAIN_AMIGAOS_PREFIX)/bin/m68k-amigaos-objdump
OBJCOPY_AMIGAOS = $(TOOLCHAIN_AMIGAOS_PREFIX)/bin/m68k-amigaos-objcopy
ROMTOOL = /home/guenter/projects/amiga/amitools/bin/romtool
#
# GNU/Linux toolchain related config
#
OBJDIR_LINUX = $(SELF_DIR)/target/x86_64-linux/obj
BINDIR_LINUX = $(SELF_DIR)/target/x86_64-linux/bin
DEPDIR_LINUX = $(SELF_DIR)/target/x86_64-linux/.deps
CFLAGS_LINUX = -Wall -Werror -g -I$(SELF_DIR)/src/include
# CFLAGS_LINUX = -Wall -Werror -g -pg
DEPFLAGS_LINUX = -MT $@ -MMD -MP -MF $(DEPDIR_LINUX)/$*.d
LDFLAGS_LINUX = -lm
CC_LINUX = gcc