Lines 1-21
Link Here
|
1 |
# -march=i686 speeds this up quite a bit on my machine (even more so |
1 |
# -march=i686 speeds this up quite a bit on my machine (even more so |
2 |
# than -march=athlon-xp) so if this looks like a recent x86 machine, |
2 |
# than -march=athlon-xp) so if this looks like a recent x86 machine, |
3 |
# stick that in CFLAGS |
3 |
# stick that in CFLAGS |
4 |
CFLAGS += $(shell if grep mmx /proc/cpuinfo > /dev/null; then echo -march=i686; fi) |
4 |
#CFLAGS += $(shell if grep mmx /proc/cpuinfo > /dev/null; then echo -march=i686; fi) |
5 |
|
5 |
|
6 |
# -O3 and -ffast-math should make it go much faster on any system |
6 |
# -O3 and -ffast-math should make it go much faster on any system |
7 |
ifeq ($(CC),icc) |
7 |
#ifeq ($(CC),icc) |
8 |
CFLAGS += -O3 |
8 |
# CFLAGS += -O3 |
9 |
else |
9 |
#else |
10 |
CFLAGS += -O3 -ffast-math |
10 |
# CFLAGS += -O3 -ffast-math |
11 |
endif |
11 |
#endif |
12 |
|
12 |
|
13 |
# Disable glibc versions of functions that have faster versions |
13 |
# Disable glibc versions of functions that have faster versions |
14 |
# as gcc inlines. This should speed up trig on some systems. |
14 |
# as gcc inlines. This should speed up trig on some systems. |
15 |
CFLAGS += -D__NO_INLINE__ |
15 |
#CFLAGS += -D__NO_INLINE__ |
16 |
|
16 |
|
17 |
PKGS += libglade-2.0 gtk+-2.0 |
17 |
PKGS += libglade-2.0 gtk+-2.0 |
18 |
CFLAGS += '-DGLADEDIR="data"' |
18 |
CFLAGS += '-DGLADEDIR="/usr/share/fyre"' |
19 |
CFLAGS += $(shell pkg-config --cflags $(PKGS)) |
19 |
CFLAGS += $(shell pkg-config --cflags $(PKGS)) |
20 |
LIBS += $(shell pkg-config --libs $(PKGS)) |
20 |
LIBS += $(shell pkg-config --libs $(PKGS)) |
21 |
|
21 |
|