*** empty log message ***
[reactos.git] / reactos / drivers / fs / ext2 / makefile
1 #
2 #
3 #
4
5 BASE_CFLAGS = -I../../../include
6
7 OBJECTS = super.o blockdev.o inode.o file.o dir.o rw.o quota.o security.o \
8 attr.o ../../../ntoskrnl/ntoskrnl.a
9
10 all: ext2fs.sys
11
12 .phony: all
13
14 clean:
15 - $(RM) super.o
16 - $(RM) blockdev.o
17 - $(RM) inode.o
18 - $(RM) file.o
19 - $(RM) dir.o
20 - $(RM) rw.o
21 - $(RM) junk.tmp
22 - $(RM) base.tmp
23 - $(RM) temp.exp
24 - $(RM) ext2fs.sys
25
26 .phony: clean
27
28 ext2fs.sys: $(OBJECTS)
29 $(CC) -specs=$(KM_SPECS) -mdll -o junk.tmp -Wl,--defsym,_end=end \
30 -Wl,--defsym,_edata=__data_end__ -Wl,--defsym,_etext=etext \
31 -Wl,--base-file,base.tmp $(OBJECTS)
32 $(RM) junk.tmp
33 $(DLLTOOL) --dllname ext2fs.sys --base-file base.tmp \
34 --output-exp temp.exp
35 $(RM) base.tmp
36 $(CC) --verbose -Wl,--image-base,0x10000 -Wl,-e,_DriverEntry \
37 -specs=$(KM_SPECS) -mdll -o ext2fs.sys $(OBJECTS) -Wl,temp.exp
38 $(RM) temp.exp
39
40 include ../../../rules.mak