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 |
# |
# |
9 |
# $Id: Makefile.cygwin,v 1.1.2.1 2003-10-03 19:59:16 edgomez Exp $ |
# $Id: Makefile.cygwin,v 1.1.2.2 2003-10-04 00:38:49 edgomez Exp $ |
10 |
############################################################################## |
############################################################################## |
11 |
|
|
12 |
include Makefile.inc |
include Makefile.inc |
13 |
|
|
14 |
XVIDCOREINC=/usr/local/include |
LOCAL_XVID_SRCTREE=../../src |
15 |
XVIDCORELIB=/usr/local/lib |
LOCAL_XVID_BUILDTREE=../../build/generic/=build |
16 |
|
|
17 |
RM = rm -rf |
RM = rm -rf |
18 |
|
|
21 |
|
|
22 |
# Constants which should not be modified |
# Constants which should not be modified |
23 |
# The `mingw-runtime` package is required when building with -mno-cygwin |
# The `mingw-runtime` package is required when building with -mno-cygwin |
24 |
CFLAGS += -I$(SRCDIR)/w32api -I$(XVIDCOREINC) |
CFLAGS += -I$(SRCDIR)/w32api -I$(LOCAL_XVID_SRCTREE) |
25 |
CFLAGS += -D_WIN32_IE=0x0500 |
CFLAGS += -D_WIN32_IE=0x0500 |
26 |
CFLAGS += -mno-cygwin |
CFLAGS += -mno-cygwin |
27 |
|
|
32 |
# Warning level options |
# Warning level options |
33 |
# Shows all warnings |
# Shows all warnings |
34 |
CFLAGS += -Wall |
CFLAGS += -Wall |
|
# To detect non ANSI C code (xvid is not ANSI C (yet?)) |
|
|
# CFLAGS += -pedantic |
|
|
|
|
35 |
|
|
36 |
# General Optimization options |
# General Optimization options |
37 |
# Optimize code for size (implies -O2) |
# Optimize code for size (implies -O2) |
58 |
|
|
59 |
$(LIBSO): $(SRC:.c=.o) $(SRC_RES:.rc=.res.o) |
$(LIBSO): $(SRC:.c=.o) $(SRC_RES:.rc=.res.o) |
60 |
$(CC) $(CFLAGS) -shared -Wl,-dll,--out-implib,$@.a,--enable-stdcall-fixup \ |
$(CC) $(CFLAGS) -shared -Wl,-dll,--out-implib,$@.a,--enable-stdcall-fixup \ |
61 |
-o $@ $^ ../src/driverproc.def -L$(XVIDCORELIB) \ |
-o $@ $^ $(LOCAL_XVID_BUILDTREE)/libxvidcore.a $(SRCDIR)/driverproc.def \ |
62 |
-lxvidcore -lgdi32 -lwinmm -lcomdlg32 -lcomctl32 |
-lgdi32 -lwinmm -lcomdlg32 -lcomctl32 |
63 |
|
|
64 |
clean: |
clean: |
65 |
$(RM) $(SRC:.c=.o) $(SRC_RES:.rc=.res.o) |
$(RM) $(SRC:.c=.o) $(SRC_RES:.rc=.res.o) |