annotate 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
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
24541
173d35b7aca3 - make dhahelperwin compile with mingw
faust3
parents:
diff changeset
1 include ../../config.mak
173d35b7aca3 - make dhahelperwin compile with mingw
faust3
parents:
diff changeset
2
173d35b7aca3 - make dhahelperwin compile with mingw
faust3
parents:
diff changeset
3 all: dhasetup.exe dhahelper.sys
173d35b7aca3 - make dhahelperwin compile with mingw
faust3
parents:
diff changeset
4
173d35b7aca3 - make dhahelperwin compile with mingw
faust3
parents:
diff changeset
5 dhasetup.exe: dhasetup.c
173d35b7aca3 - make dhahelperwin compile with mingw
faust3
parents:
diff changeset
6 $(CC) -o dhasetup.exe dhasetup.c
173d35b7aca3 - make dhahelperwin compile with mingw
faust3
parents:
diff changeset
7
173d35b7aca3 - make dhahelperwin compile with mingw
faust3
parents:
diff changeset
8 dhahelper.o: dhahelper.c dhahelper.h
173d35b7aca3 - make dhahelperwin compile with mingw
faust3
parents:
diff changeset
9 $(CC) -Wall -Os -c dhahelper.c -o dhahelper.o
173d35b7aca3 - make dhahelperwin compile with mingw
faust3
parents:
diff changeset
10
173d35b7aca3 - make dhahelperwin compile with mingw
faust3
parents:
diff changeset
11 dhahelper-rc.o: dhahelper.rc common.ver ntverp.h
173d35b7aca3 - make dhahelperwin compile with mingw
faust3
parents:
diff changeset
12 windres -I. dhahelper.rc $@
173d35b7aca3 - make dhahelperwin compile with mingw
faust3
parents:
diff changeset
13
173d35b7aca3 - make dhahelperwin compile with mingw
faust3
parents:
diff changeset
14 base.tmp: dhahelper.o dhahelper-rc.o
173d35b7aca3 - make dhahelperwin compile with mingw
faust3
parents:
diff changeset
15 $(CC) -Wl,--base-file,base.tmp \
173d35b7aca3 - make dhahelperwin compile with mingw
faust3
parents:
diff changeset
16 -Wl,--entry,_DriverEntry@8 \
173d35b7aca3 - make dhahelperwin compile with mingw
faust3
parents:
diff changeset
17 -nostartfiles -nostdlib \
173d35b7aca3 - make dhahelperwin compile with mingw
faust3
parents:
diff changeset
18 -o junk.tmp \
173d35b7aca3 - make dhahelperwin compile with mingw
faust3
parents:
diff changeset
19 dhahelper.o dhahelper-rc.o \
173d35b7aca3 - make dhahelperwin compile with mingw
faust3
parents:
diff changeset
20 -lntoskrnl
173d35b7aca3 - make dhahelperwin compile with mingw
faust3
parents:
diff changeset
21 -rm -f junk.tmp
173d35b7aca3 - make dhahelperwin compile with mingw
faust3
parents:
diff changeset
22
173d35b7aca3 - make dhahelperwin compile with mingw
faust3
parents:
diff changeset
23 temp.exp: base.tmp
173d35b7aca3 - make dhahelperwin compile with mingw
faust3
parents:
diff changeset
24 dlltool --dllname dhahelper.sys --base-file base.tmp --output-exp temp.exp
173d35b7aca3 - make dhahelperwin compile with mingw
faust3
parents:
diff changeset
25
173d35b7aca3 - make dhahelperwin compile with mingw
faust3
parents:
diff changeset
26 dhahelper.sys: dhahelper.o dhahelper-rc.o temp.exp
173d35b7aca3 - make dhahelperwin compile with mingw
faust3
parents:
diff changeset
27 $(CC) -Wl,--subsystem,native \
173d35b7aca3 - make dhahelperwin compile with mingw
faust3
parents:
diff changeset
28 -Wl,--image-base,0x10000 \
173d35b7aca3 - make dhahelperwin compile with mingw
faust3
parents:
diff changeset
29 -Wl,--file-alignment,0x1000 \
173d35b7aca3 - make dhahelperwin compile with mingw
faust3
parents:
diff changeset
30 -Wl,--section-alignment,0x1000 \
173d35b7aca3 - make dhahelperwin compile with mingw
faust3
parents:
diff changeset
31 -Wl,--entry,_DriverEntry@8 \
173d35b7aca3 - make dhahelperwin compile with mingw
faust3
parents:
diff changeset
32 -Wl,temp.exp \
173d35b7aca3 - make dhahelperwin compile with mingw
faust3
parents:
diff changeset
33 -mdll -nostartfiles -nostdlib \
173d35b7aca3 - make dhahelperwin compile with mingw
faust3
parents:
diff changeset
34 -o dhahelper.sys \
173d35b7aca3 - make dhahelperwin compile with mingw
faust3
parents:
diff changeset
35 dhahelper.o dhahelper-rc.o \
173d35b7aca3 - make dhahelperwin compile with mingw
faust3
parents:
diff changeset
36 -lntoskrnl
173d35b7aca3 - make dhahelperwin compile with mingw
faust3
parents:
diff changeset
37 strip dhahelper.sys
173d35b7aca3 - make dhahelperwin compile with mingw
faust3
parents:
diff changeset
38
173d35b7aca3 - make dhahelperwin compile with mingw
faust3
parents:
diff changeset
39 clean:
173d35b7aca3 - make dhahelperwin compile with mingw
faust3
parents:
diff changeset
40 rm -f *.o *~ dhahelper.sys dhasetup.exe base.tmp temp.exp
173d35b7aca3 - make dhahelperwin compile with mingw
faust3
parents:
diff changeset
41
173d35b7aca3 - make dhahelperwin compile with mingw
faust3
parents:
diff changeset
42 distclean: clean