[svn] / trunk / vfw / bin / Makefile.mingw Repository:
ViewVC logotype

Annotation of /trunk/vfw/bin/Makefile.mingw

Parent Directory Parent Directory | Revision Log 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 <pross@xvid.org>
8 :     #
9 :     # $Id: Makefile.mingw,v 1.1 2002-09-28 02:34:47 suxen_drol Exp $
10 :     ##############################################################################
11 :    
12 :     include Makefile.inc
13 :    
14 :     XVIDCOREINC=../../xvidcore/src
15 :     XVIDCORELIB=../../xvidcore/build/generic
16 :    
17 :     RM = deltree /y
18 :    
19 :     CC = gcc
20 :    
21 :     CFLAGS += -I$(SRCDIR)/w32api -I$(XVIDCOREINC)
22 :     CFLAGS += -D_WIN32_IE=0x0500
23 :    
24 :     ##############################################################################
25 :     # Optional Compiler options
26 :     ##############################################################################
27 :    
28 :     # Warning level options
29 :     # Shows all warnings
30 :     CFLAGS += -Wall
31 :     # To detect non ANSI C code (xvid is not ANSI C (yet?))
32 :     # CFLAGS += -pedantic
33 :    
34 :    
35 :     # General Optimization options
36 :     # Optimize code for size (implies -O2)
37 :     CFLAGS += -Os
38 :     # Unroll loops code, this might speed up loops
39 :     CFLAGS += -funroll-loops
40 :     # Generates FPU math code
41 :     CFLAGS += -ffast-math
42 :     # ??? (man gcc)
43 :     CFLAGS += -fstrict-aliasing
44 :     # Omit the x86 push ebp; mov ebp, esp function
45 :     # header and its corresponding function tailer
46 :     CFLAGS += -fomit-frame-pointer
47 :    
48 :    
49 :     ##############################################################################
50 :     # Rules
51 :     ##############################################################################
52 :    
53 :     all: $(LIBSO)
54 :    
55 :     %.res.o: %.rc
56 :     windres --include-dir=$(SRCDIR) -o $@ $<
57 :    
58 :     $(LIBSO): $(SRC:.c=.o) $(SRC_RES:.rc=.res.o)
59 :     $(CC) $(CFLAGS) -shared -Wl,-dll,--out-implib,$@.a,--enable-stdcall-fixup \
60 :     -o $@ $^ xvid.def -L$(XVIDCORELIB) \
61 :     -lxvidcore -lgdi32 -lwinmm -lcomdlg32 -lcomctl32
62 :    
63 :     clean:
64 :     $(RM) $(DIRS)
65 :     $(RM) $(LIBSO)
66 :    
67 :     install:
68 :     rundll32.exe setupapi,InstallHinfSection DefaultInstall 132 ./xvid.inf
69 :    
70 :     remove:
71 :     rundll32.exe setupapi,InstallHinfSection Remove_XviD 132 ./xvid.inf

No admin address has been configured
ViewVC Help
Powered by ViewVC 1.0.4