Parent Directory
|
Revision Log
Revision 91 - (view) (download)
1 : | Isibaar | 91 | #/************************************************************************** |
2 : | # * | ||
3 : | # * cygwin makefile (only static library) | ||
4 : | # * | ||
5 : | # * nasm args: | ||
6 : | # * -f fmt elf (linux), coff (djgpp), win32 (cygwin) | ||
7 : | # * -DPREFIX add '_' prefix to symbol names | ||
8 : | # * | ||
9 : | # * | ||
10 : | # *************************************************************************/ | ||
11 : | |||
12 : | |||
13 : | include Makefile.inc | ||
14 : | |||
15 : | CC = gcc | ||
16 : | #CC = /usr/local/gcc-3.0.4/bin/gcc | ||
17 : | |||
18 : | CFLAGS = -DARCH_X86 -DLINUX -UWIN32 | ||
19 : | LIBDIR = /usr/local/lib | ||
20 : | |||
21 : | CFLAGS += -O3 -funroll-loops -ffast-math -fstrict-aliasing -fomit-frame-pointer | ||
22 : | # CFLAGS += -m486 | ||
23 : | # CFLAGS += -march=pentium -mcpu=pentium | ||
24 : | CFLAGS += -march=pentiumpro -mcpu=pentiumpro | ||
25 : | # CFLAGS += -march=athlon -mcpu=athlon | ||
26 : | CFLAGS += -mno-cygwin | ||
27 : | |||
28 : | AS = nasm | ||
29 : | AFLAGS = -f win32 -DPREFIX | ||
30 : | |||
31 : | %.o: %.asm | ||
32 : | $(AS) $(AFLAGS) $< -o $@ | ||
33 : | |||
34 : | RM = rm -rf | ||
35 : | |||
36 : | all: $(LIB) | ||
37 : | |||
38 : | $(LIB): $(SRC:.c=.o) $(SRC_INTEL:.asm=.o) | ||
39 : | ar rcs $@ $^ | ||
40 : | |||
41 : | clean: | ||
42 : | $(RM) `find $(SRCDIR) -name "*.o"` | ||
43 : | |||
44 : | remove-all: | ||
45 : | $(RM) $(DIRS) | ||
46 : | $(RM) $(DIRS_INTEL) | ||
47 : | $(RM) $(LIB) | ||
48 : | |||
49 : | install: $(LIB) | ||
50 : | cp $(LIB) $(LIBDIR)/libxvidcore.a | ||
51 : | |||
52 : | install-test: $(LIB) # if you don't want to overwrite previous compile | ||
53 : | cp $(LIB) $(LIBDIR)/libtestcore.a |
No admin address has been configured | ViewVC Help |
Powered by ViewVC 1.0.4 |