Subversion Repositories Kolibri OS

Rev

Rev 1907 | Show entire file | Regard whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 1907 Rev 3960
Line -... Line 1...
-
 
1
LIBRARY = libmpg123
-
 
2
 
1
CC=gcc
3
CC = gcc
2
CPP=gcc -E
4
CFLAGS= -c -O2 -fomit-frame-pointer -funroll-all-loops -finline-functions -ffast-math 
-
 
5
CPPFLAGS =  -DOPT_MULTI -DOPT_GENERIC -DOPT_GENERIC_DITHER -DOPT_I386 -DOPT_I586 -DOPT_I586_DITHER -DOPT_MMX -DOPT_3DNOW -DOPT_3DNOWEXT -DOPT_SSE -DREAL_IS_FLOAT -DNOXFERMEM -DNEWOLD_WRITE_SAMPLE
Line -... Line 6...
-
 
6
 
3
 
7
LD = ld
Line 4... Line 8...
4
CFLAGS= -c -combine -O2 -fomit-frame-pointer -ffast-math -mmmx -finline-functions 
8
LDFLAGS = -shared -s -nostdlib -T ../newlib/dll.lds --entry _DllStartup --image-base=0 --out-implib $(LIBRARY).dll.a
Line 5... Line 9...
5
 
9
 
-
 
10
STRIP = $(PREFIX)strip
Line 6... Line 11...
6
LDIMPORT:= -nostdlib --out-implib libmpg123imp.a --exclude-libs libamz.a
11
 
Line 7... Line 12...
7
 
12
UDEF= -U_Win32 -U_WIN32 -U__MINGW32__ -UWIN32 -U_MSC_VER 
Line 8... Line 13...
8
LDFLAGS:=  -shared -s -T../newlib/dll.lds --image-base 0
13
DEFINES= -DHAVE_CONFIG_H
9
 
-
 
10
INCLUDES= -I../newlib/include
-
 
11
 
-
 
12
LIBPATH:= -L../newlib
-
 
13
 
-
 
Line 14... Line 14...
14
LIBS:=  -lamz -lgcc -lcimp
14
 
15
 
-
 
16
 
15
INCLUDES= -I../newlib/include
17
NAME:=	  libmpg123
16
 
18
 
17
LIBPATH:= -L../newlib
-
 
18
 
19
DEFINES:= -DHAVE_CONFIG_H -DOPT_MMX -DOPT_MULTI -DREAL_IS_FLOAT -DNOXFERMEM
19
LIBS:=  -ldll -lc.dll -lgcc
20
 
20
 
-
 
21
 
-
 
22
SRCS=				  		\
21
 
23
			compat.c		\
-
 
24
			dct64.c			\
22
SRCS=				  		\
25
			dct64_i386.c		\
23
			libmpg123.c		\
26
			dither.c		\
24
			compat.c		\
27
			equalizer.c		\
25
			dct64.c			\
28
			feature.c		\
26
			dct64_i386.c		\
29
			format.c		\
-
 
30
			frame.c			\
-
 
31
			icy.c			\
27
			equalizer.c		\
32
			icy2utf8.c		\
28
			optimize.c		\
33
			id3.c			\
29
			icy.c			\
34
			index.c			\
30
			id3.c			\
35
			layer1.c		\
-
 
36
			layer2.c		\
31
			index.c			\
37
			layer3.c		\
32
			layer1.c		\
38
			lfs_alias.c		\
Line 33... Line 39...
33
			layer2.c		\
39
			libmpg123.c		\
34
			layer3.c		\
40
			ntom.c			\
-
 
41
			optimize.c		\
35
			synth.c			\
42
			parse.c			\
-
 
43
			readers.c		\
36
			tabinit.c		\
44
			stringbuf.c		\
-
 
45
			synth.c			\
-
 
46
			tabinit.c
-
 
47
 
-
 
48
ASM=						\
-
 
49
			dct36_3dnow.S		\
-
 
50
			dct36_3dnowext.S	\
-
 
51
			dct64_3dnow.S		\
-
 
52
			dct64_3dnowext.S	\
37
			parse.c			\
53
			dct64_mmx.S		\
-
 
54
			dct64_sse.S		\
-
 
55
			dct64_sse_float.S	\
-
 
56
			equalizer_3dnow.S	\
-
 
57
			getcpuflags.S		\
-
 
58
			synth_3dnow.S		\
-
 
59
			synth_3dnowext.S	\
Line 38... Line 60...
38
			readers.c		\
60
			synth_i586.S		\
39
			frame.c			\
61
			synth_i586_dither.S	\
Line 40... Line 62...
40
			format.c
62
			synth_mmx.S		\
41
 
-
 
42
ASM=						\
-
 
43
			getcpuflags.S		\
-
 
Line -... Line 63...
-
 
63
			synth_sse.S		\
-
 
64
			synth_sse_float.S	\
-
 
65
			synth_sse_s32.S		\
-
 
66
			synth_stereo_sse_float.S\
-
 
67
			synth_stereo_sse_S32.S	\
Line 44... Line 68...
44
			tabinit_mmx.S		\
68
			tabinit_mmx.S
45
			dct64_mmx.S		\
69
 
Line 46... Line 70...
46
			synth_mmx.S
70
ASM_OBJS =  $(patsubst %.S, %.o, $(ASM))
47
 
71
SRCS_OBJ = $(patsubst %.c, %.o, $(SRCS))
Line 48... Line 72...
48
ASM_OBJS =  $(patsubst %.S, %.o, $(ASM))
72
 
49
SRCS_OBJ = $(patsubst %.c, %.o, $(SRCS))
73
 
Line 50... Line 74...
50
 
74
all: $(LIBRARY).dll