Lines 25-31
Link Here
|
25 |
#OPTCFLAGS = -march=athlon -O3 -ffast-math -funroll-loops -malign-loops=5 -malign-jumps=5 -malign-functions=5 -mpreferred-stack-boundary=5 -mfancy-math-387 -Wall -Werror #-g |
25 |
#OPTCFLAGS = -march=athlon -O3 -ffast-math -funroll-loops -malign-loops=5 -malign-jumps=5 -malign-functions=5 -mpreferred-stack-boundary=5 -mfancy-math-387 -Wall -Werror #-g |
26 |
# gcc >= 3.1.x |
26 |
# gcc >= 3.1.x |
27 |
# -tbird, -4, -xp, -mp |
27 |
# -tbird, -4, -xp, -mp |
28 |
CFLAGS = -march=pentium2 -mcpu=pentium4 -mmmx |
28 |
#CFLAGS = -march=pentium2 -mcpu=pentium4 -mmmx |
29 |
#CFLAGS = -march=athlon-tbird -mcpu=athlon-xp -m3dnow |
29 |
#CFLAGS = -march=athlon-tbird -mcpu=athlon-xp -m3dnow |
30 |
#CFLAGS = -march=pentium3 -mcpu=pentium3 -msse -mfpmath=sse |
30 |
#CFLAGS = -march=pentium3 -mcpu=pentium3 -msse -mfpmath=sse |
31 |
#CFLAGS = -march=pentium4 -mcpu=pentium4 -msse2 -mfpmath=sse -m128bit-long-double |
31 |
#CFLAGS = -march=pentium4 -mcpu=pentium4 -msse2 -mfpmath=sse -m128bit-long-double |
Lines 35-42
Link Here
|
35 |
#CFLAGS = -march=pentium3 -mtune=pentium3 -msse -mfpmath=sse |
35 |
#CFLAGS = -march=pentium3 -mtune=pentium3 -msse -mfpmath=sse |
36 |
#CFLAGS = -march=pentium4 -mtune=pentium4 -msse2 -mfpmath=sse -m128bit-long-double |
36 |
#CFLAGS = -march=pentium4 -mtune=pentium4 -msse2 -mfpmath=sse -m128bit-long-double |
37 |
#CFLAGS = -march=pentium4 -O2 -mfpmath=387 |
37 |
#CFLAGS = -march=pentium4 -O2 -mfpmath=387 |
38 |
CFLAGS += -O3 -ffast-math -funroll-loops -fprefetch-loop-arrays |
38 |
#CFLAGS += -O3 -ffast-math -funroll-loops -fprefetch-loop-arrays |
39 |
CFLAGS += -Wall -Werror -g |
39 |
#CFLAGS += -Wall -Werror -g |
40 |
#CFLAGS += -ftracer |
40 |
#CFLAGS += -ftracer |
41 |
# gcc >= 4.x |
41 |
# gcc >= 4.x |
42 |
#CFLAGS += -fmodulo-sched |
42 |
#CFLAGS += -fmodulo-sched |
Lines 46-52
Link Here
|
46 |
# |
46 |
# |
47 |
# |
47 |
# |
48 |
# gcc >= 3.1.x |
48 |
# gcc >= 3.1.x |
49 |
OPTCFLAGS = -march=pentium2 -mcpu=pentium4 -mmmx |
49 |
#OPTCFLAGS = -march=pentium2 -mcpu=pentium4 -mmmx |
50 |
#OPTCFLAGS = -march=athlon-tbird -mcpu=athlon-xp -m3dnow |
50 |
#OPTCFLAGS = -march=athlon-tbird -mcpu=athlon-xp -m3dnow |
51 |
#OPTCFLAGS = -march=pentium3 -mcpu=pentium3 -msse |
51 |
#OPTCFLAGS = -march=pentium3 -mcpu=pentium3 -msse |
52 |
#OPTCFLAGS = -march=pentium4 -mcpu=pentium4 -msse2 -m128bit-long-double |
52 |
#OPTCFLAGS = -march=pentium4 -mcpu=pentium4 -msse2 -m128bit-long-double |
Lines 55-66
Link Here
|
55 |
#OPTCFLAGS = -march=athlon-tbird -mtune=athlon-xp -m3dnow |
55 |
#OPTCFLAGS = -march=athlon-tbird -mtune=athlon-xp -m3dnow |
56 |
#OPTCFLAGS = -march=pentium3 -mtune=pentium3 -msse |
56 |
#OPTCFLAGS = -march=pentium3 -mtune=pentium3 -msse |
57 |
#OPTCFLAGS = -march=pentium4 -mtune=pentium4 -msse2 -m128bit-long-double |
57 |
#OPTCFLAGS = -march=pentium4 -mtune=pentium4 -msse2 -m128bit-long-double |
58 |
OPTCFLAGS += -O1 -ffast-math -fprefetch-loop-arrays #-funroll-loops |
58 |
#OPTCFLAGS += -O1 -ffast-math -fprefetch-loop-arrays #-funroll-loops |
59 |
OPTCFLAGS += -Wall -Werror -g |
59 |
#OPTCFLAGS += -Wall -Werror -g |
60 |
#OPTCFLAGS += -ftracer |
60 |
#OPTCFLAGS += -ftracer |
61 |
# |
61 |
# |
62 |
#OPTCFLAGS += -ggdb -pg |
62 |
#OPTCFLAGS += -ggdb -pg |
63 |
CXXFLAGS = $(CFLAGS) |
63 |
#CXXFLAGS = $(CFLAGS) |
64 |
|
64 |
|
65 |
# thread safety |
65 |
# thread safety |
66 |
DEFS = -D_REENTRANT -D_THREAD_SAFE |
66 |
DEFS = -D_REENTRANT -D_THREAD_SAFE |
Lines 75-81
Link Here
|
75 |
# define for Intel Integrated Performance Primitives support |
75 |
# define for Intel Integrated Performance Primitives support |
76 |
#DEFS += -DDSP_IPP |
76 |
#DEFS += -DDSP_IPP |
77 |
|
77 |
|
78 |
INCS = -I. #-I/usr/local/include |
78 |
INCS = -I. -I../Inlines -I/usr/include |
79 |
#INCS += `pkg-config --cflags fftw3f fftw3` |
79 |
#INCS += `pkg-config --cflags fftw3f fftw3` |
80 |
#INCS += -I/opt/intel/ipp/include |
80 |
#INCS += -I/opt/intel/ipp/include |
81 |
|
81 |
|
Lines 143-149
Link Here
|
143 |
$(CXX) $(CXXFLAGS) $(DEFS) $(INCS) -c $< |
143 |
$(CXX) $(CXXFLAGS) $(DEFS) $(INCS) -c $< |
144 |
|
144 |
|
145 |
X86.$(OBJ): X86.$(CSRC) |
145 |
X86.$(OBJ): X86.$(CSRC) |
146 |
$(CC) $(OPTCFLAGS) $(DEFS) $(INCS) -c $< |
146 |
$(CC) $(CFLAGS) $(DEFS) $(INCS) -c $< |
147 |
|
147 |
|
148 |
libdsp.a: $(OBJS) |
148 |
libdsp.a: $(OBJS) |
149 |
ar rc libdsp.a $(OBJS) |
149 |
ar rc libdsp.a $(OBJS) |