-
Notifications
You must be signed in to change notification settings - Fork 3
/
Makefile.vars.gcw0
30 lines (22 loc) · 1.04 KB
/
Makefile.vars.gcw0
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
# This file contains linux-specific environment variables
# It is included by Makefile if a symlink is created to point to it
export CXX=mipsel-linux-g++
export CC=mipsel-linux-gcc
SDLPATH =/opt/gcw0-toolchain/usr/mipsel-gcw0-linux-uclibc/sysroot/usr/bin/
# debugging version
#DFLAGS = -g #-DCPU_DEBUG
# optimized version
# NOTE : gcc 3.x has a bug that causes compilation to choke on m80.cpp
# If you want to -DGCC_X86_ASM for extra speed, you have to use g++ 3.0 or earlier
DFLAGS = -O3 -march=mips32r2 -fomit-frame-pointer \
-fexpensive-optimizations -funroll-loops -ffast-math
# this is to be exported for MMX assembly optimization
export USE_MMX = 0
# uncomment this to link VLDP statically instead of dynamically
export STATIC_VLDP = 1
#export STATIC_VLDP_GP2X = 1
# platform-specific compile flags
PFLAGS = ${DFLAGS} `${SDLPATH}sdl-config --cflags` -DUNIX -DLINUX -DGCWZERO -DNATIVE_CPU_MIPS \
-D_LARGEFILE_SOURCE -D_LARGEFILE64_SOURCE
# platform-specific lib flags
LIBS = `${SDLPATH}sdl-config --libs` -ldl -lz -logg -lvorbis -lvorbisfile #-lGLEW