annotate vidix/dhahelperwin/Makefile @ 25055:960dfb5c68fe

mention the new build system
author nicodvb
date Sat, 17 Nov 2007 21:34:00 +0000
parents 56fa787726b2
children a5dd78186fdc
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
24548
13911e955fce Simplify commands with automatic variables.
diego
parents: 24541
diff changeset
6 $(CC) -o $@ $<
24541
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
24548
13911e955fce Simplify commands with automatic variables.
diego
parents: 24541
diff changeset
9 $(CC) -Wall -Os -c $< -o $@
24541
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
24548
13911e955fce Simplify commands with automatic variables.
diego
parents: 24541
diff changeset
12 windres -I. $< $@
24541
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
24548
13911e955fce Simplify commands with automatic variables.
diego
parents: 24541
diff changeset
15 $(CC) -Wl,--base-file,$@ \
24541
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 \
24548
13911e955fce Simplify commands with automatic variables.
diego
parents: 24541
diff changeset
18 -o junk.tmp $^ -lntoskrnl
24541
173d35b7aca3 - make dhahelperwin compile with mingw
faust3
parents:
diff changeset
19 -rm -f junk.tmp
173d35b7aca3 - make dhahelperwin compile with mingw
faust3
parents:
diff changeset
20
173d35b7aca3 - make dhahelperwin compile with mingw
faust3
parents:
diff changeset
21 temp.exp: base.tmp
24548
13911e955fce Simplify commands with automatic variables.
diego
parents: 24541
diff changeset
22 dlltool --dllname dhahelper.sys --base-file $< --output-exp $@
24541
173d35b7aca3 - make dhahelperwin compile with mingw
faust3
parents:
diff changeset
23
24548
13911e955fce Simplify commands with automatic variables.
diego
parents: 24541
diff changeset
24 dhahelper.sys: temp.exp dhahelper.o dhahelper-rc.o
24541
173d35b7aca3 - make dhahelperwin compile with mingw
faust3
parents:
diff changeset
25 $(CC) -Wl,--subsystem,native \
173d35b7aca3 - make dhahelperwin compile with mingw
faust3
parents:
diff changeset
26 -Wl,--image-base,0x10000 \
173d35b7aca3 - make dhahelperwin compile with mingw
faust3
parents:
diff changeset
27 -Wl,--file-alignment,0x1000 \
173d35b7aca3 - make dhahelperwin compile with mingw
faust3
parents:
diff changeset
28 -Wl,--section-alignment,0x1000 \
173d35b7aca3 - make dhahelperwin compile with mingw
faust3
parents:
diff changeset
29 -Wl,--entry,_DriverEntry@8 \
24548
13911e955fce Simplify commands with automatic variables.
diego
parents: 24541
diff changeset
30 -Wl,$< \
24541
173d35b7aca3 - make dhahelperwin compile with mingw
faust3
parents:
diff changeset
31 -mdll -nostartfiles -nostdlib \
24548
13911e955fce Simplify commands with automatic variables.
diego
parents: 24541
diff changeset
32 -o $@ dhahelper.o dhahelper-rc.o \
24541
173d35b7aca3 - make dhahelperwin compile with mingw
faust3
parents:
diff changeset
33 -lntoskrnl
24548
13911e955fce Simplify commands with automatic variables.
diego
parents: 24541
diff changeset
34 strip $@
24541
173d35b7aca3 - make dhahelperwin compile with mingw
faust3
parents:
diff changeset
35
173d35b7aca3 - make dhahelperwin compile with mingw
faust3
parents:
diff changeset
36 clean:
173d35b7aca3 - make dhahelperwin compile with mingw
faust3
parents:
diff changeset
37 rm -f *.o *~ dhahelper.sys dhasetup.exe base.tmp temp.exp
173d35b7aca3 - make dhahelperwin compile with mingw
faust3
parents:
diff changeset
38
173d35b7aca3 - make dhahelperwin compile with mingw
faust3
parents:
diff changeset
39 distclean: clean
24549
56fa787726b2 Mark phony targets as such.
diego
parents: 24548
diff changeset
40
56fa787726b2 Mark phony targets as such.
diego
parents: 24548
diff changeset
41 .PHONY: all clean distclean