9 |
# Requires GNU Make because of shell expansion performed at a bad time with |
# Requires GNU Make because of shell expansion performed at a bad time with |
10 |
# other make programs (even using := variable assignments) |
# other make programs (even using := variable assignments) |
11 |
# |
# |
12 |
# $Id: Makefile,v 1.1.2.2 2003-11-02 19:56:42 edgomez Exp $ |
# $Id: Makefile,v 1.1.2.4 2004-03-31 19:10:24 edgomez Exp $ |
13 |
############################################################################## |
############################################################################## |
14 |
|
|
15 |
include sources.inc |
include sources.inc |
32 |
############################################################################## |
############################################################################## |
33 |
|
|
34 |
CFLAGS += -Wall |
CFLAGS += -Wall |
35 |
CFLAGS += -O1 |
CFLAGS += -O2 |
36 |
CFLAGS += -fstrength-reduce |
CFLAGS += -fstrength-reduce |
37 |
CFLAGS += -finline-functions |
CFLAGS += -finline-functions |
38 |
CFLAGS += -fgcse |
CFLAGS += -fgcse |
40 |
CFLAGS += -ffast-math |
CFLAGS += -ffast-math |
41 |
|
|
42 |
############################################################################## |
############################################################################## |
43 |
|
# Compiler flags for linking stage |
44 |
|
############################################################################## |
45 |
|
|
46 |
|
# LDFLAGS += |
47 |
|
|
48 |
|
############################################################################## |
49 |
# Rules |
# Rules |
50 |
############################################################################## |
############################################################################## |
51 |
|
|
81 |
@echo " L: $(@F)" |
@echo " L: $(@F)" |
82 |
@cp $(SRC_DIR)/driverproc.def $(BUILD_DIR)/driverproc.def |
@cp $(SRC_DIR)/driverproc.def $(BUILD_DIR)/driverproc.def |
83 |
@cd $(BUILD_DIR) && \ |
@cd $(BUILD_DIR) && \ |
84 |
$(CC) -mno-cygwin -shared -Wl,-dll,--out-implib,$@.a,--enable-stdcall-fixup \ |
$(CC) $(LDFLAGS) \ |
85 |
|
-mno-cygwin -shared -Wl,-dll,--out-implib,$@.a,--enable-stdcall-fixup \ |
86 |
-o $@ \ |
-o $@ \ |
87 |
$(OBJECTS) driverproc.def $(LOCAL_XVID_BUILDTREE)/libxvidcore.a \ |
$(OBJECTS) driverproc.def \ |
88 |
-lgdi32 -lwinmm -lcomdlg32 -lcomctl32 |
-lgdi32 -lwinmm -lcomdlg32 -lcomctl32 |
89 |
|
|
90 |
clean: |
clean: |