Parent Directory | Revision Log
* VFW building depends on GNU make. * Long option names used for windres as they've been the same since binutils 2.12 (short option names being changed recently, this was causing problems)
############################################################################## # # Makefile for XviD VFW driver # # Author : ??? <cutka at szm.sk> # Modified by : Edouard Gomez <ed.gomez at free.fr> # Peter Ross <pross@xvid.org> # # Requires GNU Make because of shell expansion performed at a bad time with # other make programs (even using := variable assignments) # # $Id: Makefile,v 1.1.2.2 2003-11-02 19:56:42 edgomez Exp $ ############################################################################## include sources.inc MAKEFILE_PWD:=$(shell pwd) LOCAL_XVID_SRCTREE:=$(MAKEFILE_PWD)/../../src LOCAL_XVID_BUILDTREE:=$(MAKEFILE_PWD)/../../build/generic/=build RM = rm -rf WINDRES=windres # Constants which should not be modified # The `mingw-runtime` package is required when building with -mno-cygwin CFLAGS += -I$(SRC_DIR)/w32api -I$(LOCAL_XVID_SRCTREE) CFLAGS += -D_WIN32_IE=0x0500 CFLAGS += -mno-cygwin ############################################################################## # Optional Compiler options ############################################################################## CFLAGS += -Wall CFLAGS += -O1 CFLAGS += -fstrength-reduce CFLAGS += -finline-functions CFLAGS += -fgcse CFLAGS += -freduce-all-givs CFLAGS += -ffast-math ############################################################################## # Rules ############################################################################## OBJECTS = $(SRC_C:.c=.obj) OBJECTS+= $(SRC_RES:.rc=.obj) .SUFFIXES: .obj .rc .c BUILD_DIR = =build VPATH = $(SRC_DIR):$(BUILD_DIR) all: $(LIBSO) $(BUILD_DIR): @echo " D: $(BUILD_DIR)" @mkdir -p $(BUILD_DIR) .rc.obj: @echo " W: $(@D)/$(<F)" @mkdir -p $(BUILD_DIR)/$(@D) @$(WINDRES) \ --include-dir=$(SRC_DIR) \ --input-format=rc \ --output-format=coff \ -o $(BUILD_DIR)/$@ $< .c.obj: @echo " C: $(@D)/$(<F)" @mkdir -p $(BUILD_DIR)/$(@D) @$(CC) $(CFLAGS) -c -o $(BUILD_DIR)/$@ $< $(LIBSO): $(BUILD_DIR) $(OBJECTS) @echo " L: $(@F)" @cp $(SRC_DIR)/driverproc.def $(BUILD_DIR)/driverproc.def @cd $(BUILD_DIR) && \ $(CC) -mno-cygwin -shared -Wl,-dll,--out-implib,$@.a,--enable-stdcall-fixup \ -o $@ \ $(OBJECTS) driverproc.def $(LOCAL_XVID_BUILDTREE)/libxvidcore.a \ -lgdi32 -lwinmm -lcomdlg32 -lcomctl32 clean: @echo " Cl: Object files and target lib" @$(RM) $(BUILD_DIR) install: @echo " I: xvid.dll" @cp $(BUILD_DIR)/$(LIBSO) $(LIBSO) @rundll32.exe setupapi,InstallHinfSection DefaultInstall 132 ./xvid.inf @rm $(LIBSO) uninstall: @rundll32.exe setupapi,InstallHinfSection Remove_XviD 132 ./xvid.inf
No admin address has been configured | ViewVC Help |
Powered by ViewVC 1.0.4 |