forked from fybmain/ONScripter-Jh
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathMakefile.RG351V
102 lines (75 loc) · 2.6 KB
/
Makefile.RG351V
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
100
101
102
# -*- Makefile -*-
#
# Makefile.Linux - Makefile rules for linux
#
EXESUFFIX =
OBJSUFFIX = .o
SYSROOT_PREFIX = /opt/myprojects/EmuELEC/build.EmuELEC-OdroidGoAdvance.arm-3.8/toolchain/armv8a-libreelec-linux-gnueabi/sysroot/
SYSBIN_PATH = /usr/bin/
.SUFFIXES:
.SUFFIXES: $(OBJSUFFIX) .cpp .h
TARGET = vendor/lua/liblua.a \
onscripter$(EXESUFFIX) \
sardec$(EXESUFFIX) \
nsadec$(EXESUFFIX) \
sarconv$(EXESUFFIX) \
nsaconv$(EXESUFFIX)
EXT_OBJS =
# mandatory: SDL, SDL_ttf, SDL_image, SDL_mixer, bzip2
DEFS = -DLINUX -DRG351V -DUSE_SDL_RENDERER -DNDEBUG
INCS = `$(SYSROOT_PREFIX)$(SYSBIN_PATH)sdl2-config --cflags`
LIBS = `$(SYSROOT_PREFIX)$(SYSBIN_PATH)sdl2-config --libs` -L./vendor/lua/ -lSDL2_ttf -lSDL2_image -lSDL2_mixer -ljpeg -lbz2 -lm -llua -ldl
EXT_FLAGS =
# recommended: smpeg
#DEFS += -DUSE_SMPEG
#INCS += `smpeg-config --cflags`
#LIBS += `smpeg-config --libs`
# recommended: fontconfig (to get default font)
DEFS += -DUSE_FONTCONFIG
LIBS += -lfontconfig
# recommended: OggVorbis
DEFS += -DUSE_OGG_VORBIS
LIBS += -logg -lvorbis -lvorbisfile
# optional: Integer OggVorbis
#DEFS += -DUSE_OGG_VORBIS -DINTEGER_OGG_VORBIS
#LIBS += -lvorbisidec
# optional: support CD audio
#DEFS += -DUSE_CDROM
# optional: avifile
#DEFS += -DUSE_AVIFILE
#INCS += `avifile-config --cflags`
#LIBS += `avifile-config --libs`
#TARGET += simple_aviplay$(EXESUFFIX)
#EXT_OBJS += AVIWrapper$(OBJSUFFIX)
# optional: lua
DEFS += -DUSE_LUA
INCS += -I./ -I./vendor/lua/ -I
LIBS += -llua -L./vendor/lua/
EXT_OBJS += LUAHandler$(OBJSUFFIX)
# optional: SIMD optimizing
# optional: multicore rendering
DEFS += -DUSE_OMP_PARALLEL
EXT_FLAGS += -fopenmp
# optional: enable builtin effects
DEFS += -DUSE_BUILTIN_EFFECTS -DUSE_BUILTIN_LAYER_EFFECTS
# optional: enable English mode
#DEFS += -DENABLE_1BYTE_CHAR -DFORCE_1BYTE_CHAR
# for GNU g++
#CC = g++
CC =/opt/myprojects/EmuELEC/build.EmuELEC-OdroidGoAdvance.arm-3.8/toolchain/bin/armv8a-libreelec-linux-gnueabi-gcc
CXX=/opt/myprojects/EmuELEC/build.EmuELEC-OdroidGoAdvance.arm-3.8/toolchain/bin/armv8a-libreelec-linux-gnueabi-g++
#LD = g++ -o
#CFLAGS = -g -Wall -pipe -c $(INCS) $(DEFS)
CFLAGS = -std=c++11 -O3 -Wall -fomit-frame-pointer -pipe -c $(INCS) $(DEFS) $(EXT_FLAGS)
# for GCC on PowerPC specfied
#CC = powerpc-unknown-linux-gnu-g++
#LD = powerpc-unknown-linux-gnu-g++ -o
#CFLAGS = -O3 -mtune=G4 -maltivec -mabi=altivec -mpowerpc-gfxopt -mmultiple -mstring -Wall -fomit-frame-pointer -pipe -c $(INCS) $(DEFS)
# for Intel compiler
#CC = icc
#LD = icc -o
#CFLAGS = -O3 -tpp6 -xK -c $(INCS) $(DEFS)
RM = rm -f
include Makefile.onscripter
vendor/lua/liblua.a:
$(MAKE) -C vendor/lua -f makefile.RG351V