07b9ab8e1700841744be79a1c963f6ef9e6691a5
[reactos.git] / reactos / drivers / fs / minix / makefile_rex
1 BASE_CFLAGS = -I../../../include
2
3 all: minixfs.sys
4
5 OBJECTS = block.o rw.o inode.o dir.o mount.o blockdev.o cache.o \
6 ../../../ntoskrnl/ntoskrnl.a
7
8 .phony: all
9
10 clean:
11 - $(RM) minix.o
12 - $(RM) rw.o
13 - $(RM) inode.o
14 - $(RM) dir.o
15 - $(RM) mount.o
16 - $(RM) block.o
17 - $(RM) blockdev.o
18 - $(RM) junk.tmp
19 - $(RM) base.tmp
20 - $(RM) temp.exp
21 - $(RM) minixfs.sys
22
23 .phony: clean
24
25 minix.o: $(OBJECTS)
26 $(LD) -r $(OBJECTS) -o minix.o
27
28 minixfs.sys: $(OBJECTS)
29 $(CC) -specs=../../svc_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 minixfs.sys --base-file base.tmp \
34 --output-exp temp.exp
35 - $(RM) base.tmp
36 $(CC) --verbose -Wl,--image-base,0x10000 -Wl,-e,_DriverEntry@8 \
37 -specs=../../svc_specs -mdll -o minixfs.sys $(OBJECTS) -Wl,temp.exp
38 - $(RM) temp.exp
39
40 WIN32_LEAN_AND_MEAN = yes
41 WARNINGS_ARE_ERRORS = yes
42 include ../../../rules.mak