-
Notifications
You must be signed in to change notification settings - Fork 2
/
CONFIGVARS
88 lines (70 loc) · 1.18 KB
/
CONFIGVARS
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
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
#
# cross compiling
#
ifeq (,$(M68K_ATARI_MINT_CROSS))
EVAL_CROSS := case `uname -s` in *MiNT*) echo no;; *) echo yes; esac
M68K_ATARI_MINT_CROSS := $(shell $(EVAL_CROSS))
endif
ifneq (yes,$(M68K_ATARI_MINT_CROSS))
CROSS = no
#CROSS = yes
else
CROSS = yes
endif
#
# target and host compiler
#
ifeq ($(CROSS),yes)
CROSSPREFIX=m68k-atari-mint-
NATIVECC = gcc
NATIVECFLAGS = -O -Wall
CRLF = echo crlf -s
# I don't have the mintlib/gemlib/cflib in the /usr/m68k-atari/mint
GENERAL = $(M68K_ATARI_MINT_CFLAGS) $(M68K_ATARI_MINT_LDFLAGS)
else
CROSSPREFIX=
NATIVECC = gcc
NATIVECFLAGS = -O -Wall
CRLF = crlf -s
endif
CC = $(CROSSPREFIX)gcc
AS = $(CC)
AR = $(CROSSPREFIX)ar
RANLIB = $(CROSSPREFIX)ranlib
STRIP = $(CROSSPREFIX)strip
FLAGS = $(CROSSPREFIX)flags
STACK = $(CROSSPREFIX)stack
#
# some tools
#
YACC = bison -dk
LEX = flex
MV = mv
CP = cp
RM = rm -f
TOUCH = touch
MKDIR = mkdir
SED = sed
#
# optimizations
#
OPTS = -O2 -finline-functions -fomit-frame-pointer
#
# warning options
#
WARN = \
-Wall \
-Wmissing-prototypes \
-Wpointer-arith \
-Wshadow \
-Wcast-qual \
-Waggregate-return
# -Winline \
#
# default definitions
#
DEFINITIONS =
#
# model type
#
MODEL =