move work on clean rule
[reactos.git] / reactos / drivers / dd / test / makefile
1 #
2 #
3 #
4 PATH_TO_TOP = ../../..
5
6 OBJECTS= test.o ../../../ntoskrnl/ntoskrnl.a
7
8 all: test.sys
9
10 .phony: all
11
12 clean:
13 - $(RM) test.o test.a junk.tmp base.tmp temp.exp test.sys
14
15 .phony: clean
16
17 test.sys: test.o
18 $(DLLTOOL) --dllname test.sys --output-lib test.a
19 $(CC) -specs=$(KM_SPECS) -mdll -o junk.tmp -Wl,--defsym,_end=end \
20 -Wl,--defsym,_edata=__data_end__ -Wl,--defsym,_etext=etext \
21 -Wl,--base-file,base.tmp $(OBJECTS)
22 - $(RM) junk.tmp
23 $(DLLTOOL) --dllname test.sys --base-file base.tmp \
24 --output-exp temp.exp
25 - $(RM) base.tmp
26 $(CC) --verbose -Wl,--image-base,0x10000 -Wl,-e,_DriverEntry -specs=$(KM_SPECS) \
27 -mdll -o test.sys $(OBJECTS) -Wl,temp.exp
28 - $(RM) temp.exp
29