comparison vidix/dhahelperwin/Makefile @ 24541:173d35b7aca3

- make dhahelperwin compile with mingw - add dhahelper.rc based on code by Kevin Kofler and Romain Li¸«±vin <roms at lievin.net> from the tilp project http://svn.tilp.info/cgi-bin/viewcvs.cgi/libticables/trunk/src/win32/dha/
author faust3
date Mon, 17 Sep 2007 21:12:29 +0000
parents
children 13911e955fce
comparison
equal deleted inserted replaced
24540:40a61e5ef8ca 24541:173d35b7aca3
1 include ../../config.mak
2
3 all: dhasetup.exe dhahelper.sys
4
5 dhasetup.exe: dhasetup.c
6 $(CC) -o dhasetup.exe dhasetup.c
7
8 dhahelper.o: dhahelper.c dhahelper.h
9 $(CC) -Wall -Os -c dhahelper.c -o dhahelper.o
10
11 dhahelper-rc.o: dhahelper.rc common.ver ntverp.h
12 windres -I. dhahelper.rc $@
13
14 base.tmp: dhahelper.o dhahelper-rc.o
15 $(CC) -Wl,--base-file,base.tmp \
16 -Wl,--entry,_DriverEntry@8 \
17 -nostartfiles -nostdlib \
18 -o junk.tmp \
19 dhahelper.o dhahelper-rc.o \
20 -lntoskrnl
21 -rm -f junk.tmp
22
23 temp.exp: base.tmp
24 dlltool --dllname dhahelper.sys --base-file base.tmp --output-exp temp.exp
25
26 dhahelper.sys: dhahelper.o dhahelper-rc.o temp.exp
27 $(CC) -Wl,--subsystem,native \
28 -Wl,--image-base,0x10000 \
29 -Wl,--file-alignment,0x1000 \
30 -Wl,--section-alignment,0x1000 \
31 -Wl,--entry,_DriverEntry@8 \
32 -Wl,temp.exp \
33 -mdll -nostartfiles -nostdlib \
34 -o dhahelper.sys \
35 dhahelper.o dhahelper-rc.o \
36 -lntoskrnl
37 strip dhahelper.sys
38
39 clean:
40 rm -f *.o *~ dhahelper.sys dhasetup.exe base.tmp temp.exp
41
42 distclean: clean