[svn] / branches / dev-api-3 / vfw / bin / Makefile.mingw Repository:
ViewVC logotype

View of /branches/dev-api-3/vfw/bin/Makefile.mingw

Parent Directory Parent Directory | Revision Log Revision Log


Revision 683 - (download) (annotate)
Wed Nov 27 21:08:35 2002 UTC (21 years, 4 months ago)
File size: 2001 byte(s)
This commit was manufactured by cvs2svn to create branch 'dev-api-3'.
##############################################################################
#
# Makefile for XviD VFW driver
#
# Author : ??? <cutka at szm.sk>
# Modified by : Edouard Gomez <ed.gomez at wanadoo.fr>
#		Peter Ross <pross@xvid.org>
#
# $Id: Makefile.mingw,v 1.1 2002-09-28 02:34:47 suxen_drol Exp $
##############################################################################

include Makefile.inc

XVIDCOREINC=../../xvidcore/src
XVIDCORELIB=../../xvidcore/build/generic

RM = deltree /y

CC = gcc

CFLAGS += -I$(SRCDIR)/w32api -I$(XVIDCOREINC)
CFLAGS += -D_WIN32_IE=0x0500

##############################################################################
# Optional Compiler options
##############################################################################

  # Warning level options
      # Shows all warnings
  CFLAGS += -Wall
      # To detect non ANSI C code (xvid is not ANSI C (yet?))
  # CFLAGS += -pedantic


  # General Optimization options
      # Optimize code for size (implies -O2)
  CFLAGS += -Os
      # Unroll loops code, this might speed up loops
  CFLAGS += -funroll-loops
      # Generates FPU math code
  CFLAGS += -ffast-math
      # ??? (man gcc)
  CFLAGS += -fstrict-aliasing
      # Omit the x86 push ebp; mov ebp, esp function
      # header and its corresponding function tailer
  CFLAGS += -fomit-frame-pointer


##############################################################################
# Rules
##############################################################################

all: $(LIBSO)

%.res.o: %.rc 
	windres --include-dir=$(SRCDIR) -o $@ $<

$(LIBSO): $(SRC:.c=.o) $(SRC_RES:.rc=.res.o)
	$(CC) $(CFLAGS) -shared -Wl,-dll,--out-implib,$@.a,--enable-stdcall-fixup \
		 -o $@ $^ xvid.def -L$(XVIDCORELIB) \
		 -lxvidcore -lgdi32 -lwinmm -lcomdlg32 -lcomctl32

clean:	
	$(RM) $(DIRS)
	$(RM) $(LIBSO)

install:
	rundll32.exe setupapi,InstallHinfSection DefaultInstall 132 ./xvid.inf

remove:
	rundll32.exe setupapi,InstallHinfSection Remove_XviD 132 ./xvid.inf

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