This repository has been archived by the owner on Feb 3, 2019. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMakefile-default.cnf
100 lines (77 loc) · 2.91 KB
/
Makefile-default.cnf
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
89
90
91
92
93
94
95
96
97
98
99
# Makefile configuration for Hatari.
#
# Use of '?=' for assignment allows overriding the given value with
# an environment variable, e.g. like this "make CC=my-gcc"
#
# Following variables can be overridden:
# CC, CPPFLAGS, LDFLAGS, HOSTCC, DATADIR, CONFDIR, BINDIR
# Set the C compiler (e.g. gcc)
CC = gcc
OPTFLAGS = -O2
# Architecture specific settings
#
# Omap2/ARMv6:
# OPTFLAGS += -mfpu=vfp -mfloat-abi=softfp -march=armv6 -finline-limit=64
#
# Wii/Gekko:
# OPTFLAGS = -MMD -MP -MF -O3 -mrvl -mcpu=750 -meabi -mhard-float
# CPPFLAGS = -DGEKKO -I$(DEVKITPRO)/libogc/include -I$(DEVKITPRO)/libogc/include/sdl
# LDFLAGS = -L$(DEVKITPRO)/libogc/lib/wii -Wl,-Map,hatari.map
# LIBS = -lz -lfat -lwiiuse -lbte -lasnd -logc -lm
# What warnings to use
WARNFLAGS = -Wmissing-prototypes -Wstrict-prototypes -Wsign-compare \
-Wbad-function-cast -Wcast-qual -Wpointer-arith \
-Wall -Wwrite-strings # -Wshadow -Wcast-align -Werror
# Set flags passed to the compiler (e.g. optimization flags)
CFLAGS := -g $(WARNFLAGS) $(OPTFLAGS)
# Set flags passed to the preprocessor (e.g. -I<include dir>)
CPPFLAGS ?=
# Additional libraries and linker flags:
LIBS = -lz # -lreadline
LDFLAGS ?=
# Ranlib - for generating an index of an archive
RANLIB = ranlib
# The native C compiler.
# This is normaly the same as $(CC) unless you are using a cross compiler.
HOSTCC ?= $(CC)
# Native C compiler flags:
HOSTCFLAGS = -g -O -Wall
# Native linker flags:
HOSTLDFLAGS =
# SDL-Library configuration (compiler flags and linker options) - you normally
# don't have to change this if you have correctly installed the SDL library!
SDL_CFLAGS := $(shell sdl-config --cflags)
SDL_LIBS := $(shell sdl-config --libs)
# libpng configuration (for screenshots)
LIBPNG_LIBS := $(shell pkg-config --libs libpng)
ifneq ($(LIBPNG_LIBS),)
LIBPNG_CFLAGS := $(shell pkg-config --cflags libpng)
CFLAGS += $(LIBPNG_CFLAGS) -DHAVE_LIBPNG=1
LIBS += $(LIBPNG_LIBS)
endif
# X11 configuration (for SDL window embedding)
X11_LIBS := $(shell pkg-config --libs x11)
ifneq ($(X11_LIBS),)
X11_CFLAGS := $(shell pkg-config --cflags x11)
CFLAGS += $(X11_CFLAGS) -DHAVE_X11=1
LIBS += $(X11_LIBS)
endif
# Here you can define the default data directory for Hatari.
# The emulator looks there for the default TOS image etc.
# For example you can use the local directory with "." or if you want
# a system-wide installation, use something like "/usr/share/hatari".
DATADIR ?= .
# In this folder, Hatari searches the global configuration file.
# /etc or /usr/local/etc is a good place for this.
CONFDIR ?= /etc
# The executable will be installed in BINDIR
#BINDIR ?= /usr/local/bin
# The man-page will be install in MANDIR
#MANDIR ?= /usr/local/share/man/man1
# All other documentation will be installed in DOCDIR
#DOCDIR ?= /usr/local/share/doc/hatari
# Program used for "make install"
#INSTALL = install -c
#INSTALL_PROGRAM = $(INSTALL) -s -m 755
#INSTALL_SCRIPT = $(INSTALL) -m 755
#INSTALL_DATA = $(INSTALL) -m 644