Rev 1905 | Go to most recent revision | Only display areas with differences | Regard whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 1905 | Rev 1907 | ||
---|---|---|---|
1 | CC=gcc |
1 | CC=gcc |
2 | CPP=gcc -E |
2 | CPP=gcc -E |
3 | 3 | ||
4 | CFLAGS= -c -combine -O2 -fomit-frame-pointer -ffast-math -mmmx -finline-functions |
4 | CFLAGS= -c -combine -O2 -fomit-frame-pointer -ffast-math -mmmx -finline-functions |
5 | 5 | ||
6 | LDIMPORT:= -nostdlib --out-implib libmpg123imp.a |
6 | LDIMPORT:= -nostdlib --out-implib libmpg123imp.a --exclude-libs libamz.a |
7 | 7 | ||
8 | LDFLAGS:= -shared -s -T../newlib/dll.lds -Map map --image-base 0 |
8 | LDFLAGS:= -shared -s -T../newlib/dll.lds --image-base 0 |
9 | 9 | ||
10 | INCLUDES= -I../newlib/include |
10 | INCLUDES= -I../newlib/include |
11 | 11 | ||
12 | LIBPATH:= -L../newlib |
12 | LIBPATH:= -L../newlib |
13 | 13 | ||
14 | LIBS:= -lamz -lgcc -lcimp |
14 | LIBS:= -lamz -lgcc -lcimp |
15 | 15 | ||
16 | 16 | ||
17 | NAME:= libmpg123 |
17 | NAME:= libmpg123 |
18 | 18 | ||
19 | DEFINES:= -DHAVE_CONFIG_H -DOPT_MMX -DOPT_MULTI -DREAL_IS_FLOAT -DNOXFERMEM |
19 | DEFINES:= -DHAVE_CONFIG_H -DOPT_MMX -DOPT_MULTI -DREAL_IS_FLOAT -DNOXFERMEM |
20 | 20 | ||
21 | 21 | ||
22 | SRCS= \ |
22 | SRCS= \ |
23 | libmpg123.c \ |
23 | libmpg123.c \ |
24 | compat.c \ |
24 | compat.c \ |
25 | dct64.c \ |
25 | dct64.c \ |
26 | dct64_i386.c \ |
26 | dct64_i386.c \ |
27 | equalizer.c \ |
27 | equalizer.c \ |
28 | optimize.c \ |
28 | optimize.c \ |
29 | icy.c \ |
29 | icy.c \ |
30 | id3.c \ |
30 | id3.c \ |
31 | index.c \ |
31 | index.c \ |
32 | layer1.c \ |
32 | layer1.c \ |
33 | layer2.c \ |
33 | layer2.c \ |
34 | layer3.c \ |
34 | layer3.c \ |
35 | synth.c \ |
35 | synth.c \ |
36 | tabinit.c \ |
36 | tabinit.c \ |
37 | parse.c \ |
37 | parse.c \ |
38 | readers.c \ |
38 | readers.c \ |
39 | frame.c \ |
39 | frame.c \ |
40 | format.c |
40 | format.c |
41 | 41 | ||
42 | ASM= \ |
42 | ASM= \ |
43 | getcpuflags.S \ |
43 | getcpuflags.S \ |
44 | tabinit_mmx.S \ |
44 | tabinit_mmx.S \ |
45 | dct64_mmx.S \ |
45 | dct64_mmx.S \ |
46 | synth_mmx.S |
46 | synth_mmx.S |
47 | 47 | ||
48 | ASM_OBJS = $(patsubst %.S, %.o, $(ASM)) |
48 | ASM_OBJS = $(patsubst %.S, %.o, $(ASM)) |
49 | SRCS_OBJ = $(patsubst %.c, %.o, $(SRCS)) |
49 | SRCS_OBJ = $(patsubst %.c, %.o, $(SRCS)) |
50 | 50 | ||
51 | 51 | ||
52 | all: $(NAME).dll |
52 | all: $(NAME).dll |
53 | 53 | ||
54 | $(NAME).dll: $(SRCS_OBJ) $(ASM_OBJS) Makefile |
54 | $(NAME).dll: $(SRCS_OBJ) $(ASM_OBJS) Makefile |
55 | ld $(LDIMPORT) $(LIBPATH) $(LDFLAGS) -o $@ $(SRCS_OBJ) $(ASM_OBJS) $(LIBS) |
55 | ld $(LDIMPORT) $(LIBPATH) $(LDFLAGS) -o $@ $(SRCS_OBJ) $(ASM_OBJS) $(LIBS) |
56 | 56 | ||
57 | 57 | ||
58 | %.o : %.S $(ASM) Makefile |
58 | %.o : %.S $(ASM) Makefile |
59 | $(CC) $(CFLAGS) $(DEFINES) $(INCLUDES) -o $@ $< |
59 | $(CC) $(CFLAGS) $(DEFINES) $(INCLUDES) -o $@ $< |
60 | 60 | ||
61 | %.o: %.c Makefile |
61 | %.o: %.c Makefile |
62 | $(CC) $(CFLAGS) $(DEFINES) $(INCLUDES) -o $@ $<> |
62 | $(CC) $(CFLAGS) $(DEFINES) $(INCLUDES) -o $@ $< |
63 | 63 | ||
64 | %.o:> |
64 | clean: |
- | 65 | -rm -f *.o |
|
- | 66 | ||
- | 67 | clean:> |
|
- | 68 | ||
65 | 69 | %.o:> |