2 |
# |
# |
3 |
# Makefile for XviD VFW driver |
# Makefile for XviD VFW driver |
4 |
# |
# |
5 |
# Author : ??? <cutka at szm.sk> |
# Author : Milan Cutka <cutka at szm.sk> |
6 |
# Modified by : Edouard Gomez <ed.gomez at free.fr> |
# Modified by : Edouard Gomez <ed.gomez at free.fr> |
7 |
# Peter Ross <pross@xvid.org> |
# Peter Ross <pross@xvid.org> |
8 |
# |
# |
24 |
# Constants which should not be modified |
# Constants which should not be modified |
25 |
# The `mingw-runtime` package is required when building with -mno-cygwin |
# The `mingw-runtime` package is required when building with -mno-cygwin |
26 |
CFLAGS += -I$(SRC_DIR)/w32api -I$(LOCAL_XVID_SRCTREE) |
CFLAGS += -I$(SRC_DIR)/w32api -I$(LOCAL_XVID_SRCTREE) |
|
CFLAGS += -D_WIN32_IE=0x0500 |
|
27 |
CFLAGS += -mno-cygwin |
CFLAGS += -mno-cygwin |
28 |
|
CFLAGS += -D_WIN32_IE=0x0501 |
29 |
|
|
30 |
############################################################################## |
############################################################################## |
31 |
# Optional Compiler options |
# Optional Compiler options |
36 |
CFLAGS += -fstrength-reduce |
CFLAGS += -fstrength-reduce |
37 |
CFLAGS += -finline-functions |
CFLAGS += -finline-functions |
38 |
CFLAGS += -fgcse |
CFLAGS += -fgcse |
|
CFLAGS += -freduce-all-givs |
|
39 |
CFLAGS += -ffast-math |
CFLAGS += -ffast-math |
40 |
|
|
41 |
############################################################################## |
############################################################################## |
42 |
# Compiler flags for linking stage |
# Compiler flags for linking stage |
43 |
############################################################################## |
############################################################################## |
44 |
|
|
45 |
LDFLAGS += -L$(LOCAL_XVID_BUILDTREE) |
# LDFLAGS += |
46 |
|
|
47 |
############################################################################## |
############################################################################## |
48 |
# Rules |
# Rules |
84 |
-mno-cygwin -shared -Wl,-dll,--out-implib,$@.a,--enable-stdcall-fixup \ |
-mno-cygwin -shared -Wl,-dll,--out-implib,$@.a,--enable-stdcall-fixup \ |
85 |
-o $@ \ |
-o $@ \ |
86 |
$(OBJECTS) driverproc.def \ |
$(OBJECTS) driverproc.def \ |
87 |
-lxvidcore -lgdi32 -lwinmm -lcomdlg32 -lcomctl32 |
-lgdi32 -lwinmm -lcomdlg32 -lcomctl32 |
88 |
|
|
89 |
clean: |
clean: |
90 |
@echo " Cl: Object files and target lib" |
@echo " Cl: Object files and target lib" |