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