-
Notifications
You must be signed in to change notification settings - Fork 7
/
config.mk.tmpl
60 lines (43 loc) · 1.78 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
48
49
50
51
52
53
54
55
56
57
58
59
#
# copy/rename this to config.mk, customize to match your local setup
#
SHELL := /bin/bash
SELF_DIR := $(dir $(lastword $(MAKEFILE_LIST)))
export AQB = $(SELF_DIR)
EMUHDD = /home/guenter/media/emu/amiga/FS-UAE/hdd/system
WORKDIR = x
EMUDIR = $(EMUHDD)/$(WORKDIR)
DISTDIR = $(EMUHDD)/Apps/aqb
AQB = $(SELF_DIR)/target/x86_64-linux/bin/aqb
LXA_HOME = /home/guenter/projects/amiga/lxa
#
# 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
# CFLAGS_AMIGAOS = -O3 -Wall -Werror -march=68000 -mcpu=68000 -mcrt=nix20
CFLAGS_AMIGAOS = -O3 -Wall -Werror -march=68000 -mcpu=68000 -mcrt=nix20 -I$(SELF_DIR)/src/amigasupport
DEPFLAGS_AMIGAOS = -MT $@ -MMD -MP -MF $(DEPDIR_AMIGAOS)/$*.d
ASFLAGS_AMIGAOS = -march=68000 -mcpu=68000
LDFLAGS_AMIGAOS = -lm
TOOLCHAIN_AMIGAOS_PREFIX = /opt/amiga
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
LXA = $(LXA_HOME)/target/x86_64-linux/bin/lxa
LXA_ROM = $(LXA_HOME)/src/rom/lxa.rom
#
# 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
DEPFLAGS_LINUX = -MT $@ -MMD -MP -MF $(DEPDIR_LINUX)/$*.d
# CFLAGS_LINUX = -Wall -Werror -g -pg
LDFLAGS_LINUX = -lm
CC_LINUX = gcc