view vidix/dhahelperwin/Makefile @ 25317:7f3cb5408f28

Fixed VIDIX color bug that was introduced when Radeon VIDIX driver was synchronized with vidix.sf.net. The red color was saturating. Corrected value fixes the issue and restore the color to the level it used to have before synchronization. Meaning of the value remains unknow but was retrieved from register's value of a Radeon 9000 card, so it may need further testing. Patch by Guillaume Lecerf (foxcore at gmail dot com)
author ben
date Mon, 10 Dec 2007 19:27:46 +0000
parents 56fa787726b2
children a5dd78186fdc
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:
	rm -f *.o *~ dhahelper.sys dhasetup.exe base.tmp temp.exp

distclean: clean

.PHONY: all clean distclean