1 |
#/************************************************************************** |
#/************************************************************************** |
2 |
# * |
# * |
3 |
# * djgpp makefile |
# * DJGPP/MinGW makefile |
4 |
# * |
# * |
5 |
# * treat "deltree /y" with care |
# * treat "deltree /y" with care |
6 |
# * |
# * |
7 |
|
# * |
8 |
|
# * $Id: Makefile.dj,v 1.2.2.2 2002-12-14 08:14:37 suxen_drol Exp $ |
9 |
|
# * |
10 |
# *************************************************************************/ |
# *************************************************************************/ |
11 |
|
|
12 |
|
|
15 |
|
|
16 |
CC = gcc |
CC = gcc |
17 |
CFLAGS = -Wall -DARCH_X86 |
CFLAGS = -Wall -DARCH_X86 |
18 |
|
|
19 |
# CFLAGS += -funroll-loops -ffast-math -fstrict-aliasing -fomit-frame-pointer |
# CFLAGS += -funroll-loops -ffast-math -fstrict-aliasing -fomit-frame-pointer |
20 |
# CFLAGS += -fPIC |
# CFLAGS += -fPIC |
21 |
# CFLAGS += -m486 |
|
22 |
|
# Architecture options : Valid for every gcc version |
23 |
|
# Uncomment the one which you want to compile for |
24 |
|
|
25 |
|
# CFLAGS += -march=i386 -mcpu=i386 |
26 |
|
# CFLAGS += -march=i486 -mcpu=i486 |
27 |
|
# CFLAGS += -march=i586 -mcpu=i586 |
28 |
|
# CFLAGS += -march=i686 -mcpu=i686 |
29 |
# CFLAGS += -march=pentium -mcpu=pentium |
# CFLAGS += -march=pentium -mcpu=pentium |
30 |
# CFLAGS += -march=pentiumpro -mcpu=pentiumpro |
# CFLAGS += -march=pentiumpro -mcpu=pentiumpro |
31 |
|
|
32 |
|
# Architecture options : Valid for every gcc >= 3.1 |
33 |
|
# Uncomment the one which you want to compile for |
34 |
|
|
35 |
|
# CFLAGS += -march=pentium-mmx -mcpu=pentium-mmx |
36 |
|
# CFLAGS += -march=pentium3 -mcpu=pentium3 |
37 |
|
# CFLAGS += -march=pentium4 -mcpu=pentium4 |
38 |
|
# CFLAGS += -march=athlon -mcpu=athlon |
39 |
|
# CFLAGS += -march=k6 -mcpu=k6 |
40 |
|
# CFLAGS += -march=k6-2 -mcpu=k6-2 |
41 |
|
# CFLAGS += -march=k6-3 -mcpu=k6-3 |
42 |
|
# CFLAGS += -march=athlon-tbird -mcpu=athlon-tbird |
43 |
|
# CFLAGS += -march=athlon-xp -mcpu=athlon-xp |
44 |
|
# CFLAGS += -march=athlon-mp -mcpu=athlon-mp |
45 |
|
|
46 |
|
|
47 |
AS = nasm |
AS = nasm |
48 |
AFLAGS = -f coff -DPREFIX |
AFLAGS = -f coff -DPREFIX -DFORMAT_COFF |
49 |
%.o: %.asm |
%.o: %.asm |
50 |
$(AS) $(AFLAGS) $< -o $@ |
$(AS) $(AFLAGS) -I$(<D) $< -o $@ |
51 |
|
|
52 |
|
|
53 |
RM = deltree /y |
RM = deltree /y |
62 |
|
|
63 |
clean: |
clean: |
64 |
$(RM) $(SRCDIR)/*.o |
$(RM) $(SRCDIR)/*.o |
65 |
$(RM) $(SRCDIR)/common/*.o |
$(RM) $(SRCDIR)/bitstream/*.o |
66 |
$(RM) $(SRCDIR)/decoder/*.o |
$(RM) $(SRCDIR)/dct/*.o |
|
$(RM) $(SRCDIR)/encoder/*.o |
|
67 |
$(RM) $(SRCDIR)/image/*.o |
$(RM) $(SRCDIR)/image/*.o |
68 |
$(RM) $(SRCDIR)/common/intel_mmx/*.o |
$(RM) $(SRCDIR)/motion/*.o |
69 |
$(RM) $(SRCDIR)/decoder/intel_mmx/*.o |
$(RM) $(SRCDIR)/prediction/*.o |
70 |
$(RM) $(SRCDIR)/encoder/intel_mmx/*.o |
$(RM) $(SRCDIR)/quant/*.o |
71 |
$(RM) $(SRCDIR)/image/intel_mmx/*.o |
$(RM) $(SRCDIR)/utils/*.o |
72 |
|
$(RM) $(SRCDIR)/bitstream/x86_asm/*.o |
73 |
|
$(RM) $(SRCDIR)/dct/x86_asm/*.o |
74 |
|
$(RM) $(SRCDIR)/image/x86_asm/*.o |
75 |
|
$(RM) $(SRCDIR)/motion/x86_asm/*.o |
76 |
|
$(RM) $(SRCDIR)/quant/x86_asm/*.o |
77 |
|
$(RM) $(SRCDIR)/utils/x86_asm/*.o |
78 |
$(RM) $(LIB) |
$(RM) $(LIB) |
79 |
|
|
80 |
|
|