[svn] / branches / dev-api-4 / xvidcore / vfw / bin / Makefile.cygwin Repository:
ViewVC logotype

Annotation of /branches/dev-api-4/xvidcore/vfw/bin/Makefile.cygwin

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1171 - (view) (download)

1 : edgomez 1170 ##############################################################################
2 :     #
3 :     # Makefile for XviD VFW driver
4 :     #
5 :     # Author : ??? <cutka at szm.sk>
6 :     # Modified by : Edouard Gomez <ed.gomez at free.fr>
7 :     # Peter Ross <pross@xvid.org>
8 :     #
9 : edgomez 1171 # $Id: Makefile.cygwin,v 1.1.2.2 2003-10-04 00:38:49 edgomez Exp $
10 : edgomez 1170 ##############################################################################
11 :    
12 :     include Makefile.inc
13 :    
14 : edgomez 1171 LOCAL_XVID_SRCTREE=../../src
15 :     LOCAL_XVID_BUILDTREE=../../build/generic/=build
16 : edgomez 1170
17 :     RM = rm -rf
18 :    
19 :     # CC = gcc-2
20 :     # CC = gcc-3.1
21 :    
22 :     # Constants which should not be modified
23 :     # The `mingw-runtime` package is required when building with -mno-cygwin
24 : edgomez 1171 CFLAGS += -I$(SRCDIR)/w32api -I$(LOCAL_XVID_SRCTREE)
25 : edgomez 1170 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 :    
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 : edgomez 1171 -o $@ $^ $(LOCAL_XVID_BUILDTREE)/libxvidcore.a $(SRCDIR)/driverproc.def \
62 :     -lgdi32 -lwinmm -lcomdlg32 -lcomctl32
63 : edgomez 1170
64 :     clean:
65 :     $(RM) $(SRC:.c=.o) $(SRC_RES:.rc=.res.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

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