forked from mirror/daphne-emu
-
Notifications
You must be signed in to change notification settings - Fork 7
/
Copy pathMakefile.vars.linux_x86
31 lines (23 loc) · 1015 Bytes
/
Makefile.vars.linux_x86
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
# This file contains linux-specific environment variables
# It is included by Makefile if a symlink is created to point to it
export CXX=g++
export CC=gcc
# debugging version
#DFLAGS = -pg
#DFLAGS = -ggdb -DCPU_DEBUG -DDEBUG -O0
# 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=i686 -fomit-frame-pointer \
-fexpensive-optimizations -funroll-loops
# this is to be exported for MMX assembly optimization
export USE_MMX = 1
# uncomment these to link VLDP statically instead of dynamically
#export STATIC_VLDP = 1
#export STATIC_SINGE = 1
# platform-specific compile flags
# Add -DBUILD_SINGE to enable SINGE
PFLAGS = ${DFLAGS} `sdl-config --cflags` -DUNIX -DLINUX -DNATIVE_CPU_X86 \
-DUSE_MMX -D_LARGEFILE_SOURCE -D_LARGEFILE64_SOURCE -DUSE_OPENGL -DBUILD_SINGE
# platform-specific lib flags
LIBS = `sdl-config --libs` -ldl -lz -logg -lvorbis -lvorbisfile -lGLEW