Subversion Repositories Kolibri OS

Rev

Rev 1907 | Details | Compare with Previous | Last modification | View Log | RSS feed

Rev Author Line No. Line
1905 serge 1
 
3960 Serge 2
1905 serge 3
 
3960 Serge 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
6
1905 serge 7
 
3960 Serge 8
LDFLAGS = -shared -s -nostdlib -T ../newlib/dll.lds --entry _DllStartup --image-base=0 --out-implib $(LIBRARY).dll.a
9
1905 serge 10
 
3960 Serge 11
1905 serge 12
 
3960 Serge 13
DEFINES= -DHAVE_CONFIG_H
14
15
 
1905 serge 16
17
 
18
19
 
3960 Serge 20
1905 serge 21
 
22
 
23
			compat.c		\
24
			dct64.c			\
25
			dct64_i386.c		\
26
			dither.c		\
3960 Serge 27
			equalizer.c		\
1905 serge 28
			feature.c		\
3960 Serge 29
			format.c		\
30
			frame.c			\
31
			icy.c			\
1905 serge 32
			icy2utf8.c		\
3960 Serge 33
			id3.c			\
1905 serge 34
			index.c			\
35
			layer1.c		\
36
			layer2.c		\
37
			layer3.c		\
38
			lfs_alias.c		\
3960 Serge 39
			libmpg123.c		\
40
			ntom.c			\
41
			optimize.c		\
42
			parse.c			\
1905 serge 43
			readers.c		\
44
			stringbuf.c		\
3960 Serge 45
			synth.c			\
46
			tabinit.c
47
1905 serge 48
 
49
			dct36_3dnow.S		\
3960 Serge 50
			dct36_3dnowext.S	\
51
			dct64_3dnow.S		\
52
			dct64_3dnowext.S	\
53
			dct64_mmx.S		\
54
			dct64_sse.S		\
55
			dct64_sse_float.S	\
56
			equalizer_3dnow.S	\
57
			getcpuflags.S		\
1905 serge 58
			synth_3dnow.S		\
3960 Serge 59
			synth_3dnowext.S	\
60
			synth_i586.S		\
61
			synth_i586_dither.S	\
62
			synth_mmx.S		\
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	\
68
			tabinit_mmx.S
69
1905 serge 70
 
71
SRCS_OBJ = $(patsubst %.c, %.o, $(SRCS))
72
73
 
74
 
3960 Serge 75
1905 serge 76
 
3960 Serge 77
	$(LD) $(LDFLAGS) $(LIBPATH) -o $@ libmpg123.dll.def $(SRCS_OBJ) $(ASM_OBJS) $(LIBS)
78
	$(STRIP) $@
79
	sed -f ../newlib/cmd1.sed libmpg123.dll.def > mem
80
	sed -f ../newlib/cmd2.sed mem >$(LIBRARY).inc
81
1905 serge 82
 
83
	$(CC) $(CFLAGS) $(CPPFLAGS) $(UDEF) $(DEFINES) $(INCLUDES) -o $@ $<
3960 Serge 84
1905 serge 85
 
86
	$(CC) $(CFLAGS) $(CPPFLAGS) $(UDEF) $(DEFINES) $(INCLUDES) -o $@ $<
3960 Serge 87
1907 serge 88
 
89
	-rm -f *.o
90
91
 
1905 serge 92