Mercurial > mplayer.hg
view vidix/dhahelperwin/Makefile @ 26625:5b89b42f6d50
Only compile and use libmpeg2 AltiVec code when AltiVec is available. The
AltiVec code needs -maltivec to compile, but then AltiVec instructions
appear in other places of the code causing MPlayer to sigill.
Somehow upstream libmpeg2 manages not to sigill under what appear to be
the same circumstances. Enlightenment welcome.
author | diego |
---|---|
date | Sat, 03 May 2008 15:23:22 +0000 |
parents | f50aa0c7c335 |
children |
line wrap: on
line source
include ../../config.mak all: dhasetup.exe dhahelper.sys dhasetup.exe: dhasetup.c $(CC) -o $@ $< dhahelper.o: dhahelper.c dhahelper.h $(CC) -Wall -Os -c $< -o $@ dhahelper-rc.o: dhahelper.rc common.ver ntverp.h $(WINDRES) -I. $< $@ base.tmp: dhahelper.o dhahelper-rc.o $(CC) -Wl,--base-file,$@ \ -Wl,--entry,_DriverEntry@8 \ -nostartfiles -nostdlib \ -o junk.tmp $^ -lntoskrnl -rm -f junk.tmp temp.exp: base.tmp dlltool --dllname dhahelper.sys --base-file $< --output-exp $@ dhahelper.sys: temp.exp dhahelper.o dhahelper-rc.o $(CC) -Wl,--subsystem,native \ -Wl,--image-base,0x10000 \ -Wl,--file-alignment,0x1000 \ -Wl,--section-alignment,0x1000 \ -Wl,--entry,_DriverEntry@8 \ -Wl,$< \ -mdll -nostartfiles -nostdlib \ -o $@ dhahelper.o dhahelper-rc.o \ -lntoskrnl strip $@ clean distclean: rm -f *.o *~ dhahelper.sys dhasetup.exe base.tmp temp.exp .PHONY: all clean distclean