Parent Directory | Revision Log
Revision 553 - (view) (download)
1 : | suxen_drol | 553 | ############################################################################## |
2 : | # | ||
3 : | # Makefile for XviD VFW driver | ||
4 : | # | ||
5 : | # Author : ??? <cutka at szm.sk> | ||
6 : | # Modified by : Edouard Gomez <ed.gomez at wanadoo.fr> | ||
7 : | # Peter Ross <suxen_drol@hotmail.com> | ||
8 : | # | ||
9 : | # $Id: Makefile.cygwin,v 1.1 2002-09-28 02:34:47 suxen_drol Exp $ | ||
10 : | ############################################################################## | ||
11 : | |||
12 : | include Makefile.inc | ||
13 : | |||
14 : | XVIDCORELIB=/usr/local/lib | ||
15 : | |||
16 : | RM = rm -rf | ||
17 : | |||
18 : | # CC = gcc-2 | ||
19 : | # CC = gcc-3.1 | ||
20 : | |||
21 : | CFLAGS += -I$(SRCDIR)/w32api | ||
22 : | CFLAGS += -D_WIN32_IE=0x0500 | ||
23 : | CFLAGS += -mno-cygwin | ||
24 : | |||
25 : | ############################################################################## | ||
26 : | # Optional Compiler options | ||
27 : | ############################################################################## | ||
28 : | |||
29 : | # Warning level options | ||
30 : | # Shows all warnings | ||
31 : | CFLAGS += -Wall | ||
32 : | # To detect non ANSI C code (xvid is not ANSI C (yet?)) | ||
33 : | # CFLAGS += -pedantic | ||
34 : | |||
35 : | |||
36 : | # General Optimization options | ||
37 : | # Optimize code for size (implies -O2) | ||
38 : | CFLAGS += -Os | ||
39 : | # Unroll loops code, this might speed up loops | ||
40 : | CFLAGS += -funroll-loops | ||
41 : | # Generates FPU math code | ||
42 : | CFLAGS += -ffast-math | ||
43 : | # ??? (man gcc) | ||
44 : | CFLAGS += -fstrict-aliasing | ||
45 : | # Omit the x86 push ebp; mov ebp, esp function | ||
46 : | # header and its corresponding function tailer | ||
47 : | CFLAGS += -fomit-frame-pointer | ||
48 : | |||
49 : | |||
50 : | ############################################################################## | ||
51 : | # Rules | ||
52 : | ############################################################################## | ||
53 : | |||
54 : | all: $(LIBSO) | ||
55 : | |||
56 : | %.res.o: %.rc | ||
57 : | windres --include-dir=$(SRCDIR) -o $@ $< | ||
58 : | |||
59 : | $(LIBSO): $(SRC:.c=.o) $(SRC_RES:.rc=.res.o) | ||
60 : | $(CC) $(CFLAGS) -shared -Wl,-dll,--out-implib,$@.a,--enable-stdcall-fixup \ | ||
61 : | -o $@ $^ xvid.def -L$(XVIDCORELIB) \ | ||
62 : | -lxvidcore -lgdi32 -lwinmm -lcomdlg32 -lcomctl32 | ||
63 : | |||
64 : | clean: | ||
65 : | $(RM) `find $(SRCDIR) -name "*.o"` | ||
66 : | $(RM) $(LIBSO) | ||
67 : | |||
68 : | install: | ||
69 : | rundll32.exe setupapi,InstallHinfSection DefaultInstall 132 ./xvid.inf | ||
70 : | |||
71 : | remove: | ||
72 : | rundll32.exe setupapi,InstallHinfSection Remove_XviD 132 ./xvid.inf | ||
73 : |
No admin address has been configured | ViewVC Help |
Powered by ViewVC 1.0.4 |