Version info for Minix driver.
[reactos.git] / reactos / drivers / fs / minix / makefile_rex
1 # $Id: makefile_rex,v 1.8 2000/04/01 14:19:48 ea Exp $
2 #
3 # Minix IFS Driver makefile
4 #
5 BASE_CFLAGS = -I../../../include
6
7 TARGETNAME=minixfs
8
9 all: $(TARGETNAME).sys
10
11 OBJECTS = block.o rw.o inode.o dir.o mount.o blockdev.o cache.o \
12 minix.coff ../../../ntoskrnl/ntoskrnl.a
13
14 .phony: all
15
16 clean:
17 - $(RM) minix.o
18 - $(RM) rw.o
19 - $(RM) inode.o
20 - $(RM) dir.o
21 - $(RM) mount.o
22 - $(RM) block.o
23 - $(RM) blockdev.o
24 - $(RM) junk.tmp
25 - $(RM) base.tmp
26 - $(RM) temp.exp
27 - $(RM) $(TARGETNAME).sys
28
29 .phony: clean
30
31 minix.o: $(OBJECTS)
32 $(LD) -r $(OBJECTS) -o minix.o
33
34 minixfs.sys: $(OBJECTS)
35 $(CC) \
36 -specs=../../svc_specs \
37 -mdll \
38 -o junk.tmp \
39 -Wl,--defsym,_end=end \
40 -Wl,--defsym,_edata=__data_end__ \
41 -Wl,--defsym,_etext=etext \
42 -Wl,--base-file,base.tmp \
43 $(OBJECTS)
44 - $(RM) junk.tmp
45 $(DLLTOOL) \
46 --dllname $(TARGETNAME).sys \
47 --base-file base.tmp \
48 --output-exp temp.exp
49 - $(RM) base.tmp
50 $(CC) \
51 --verbose \
52 -Wl,--image-base,0x10000 \
53 -Wl,-e,_DriverEntry@8 \
54 -specs=../../svc_specs \
55 -mdll \
56 -o $(TARGETNAME).sys \
57 $(OBJECTS) \
58 -Wl,temp.exp
59 - $(RM) temp.exp
60
61 minix.coff: ../../../include/reactos/buildno.h minix.rc
62
63 WIN32_LEAN_AND_MEAN = yes
64 WARNINGS_ARE_ERRORS = yes
65 include ../../../rules.mak
66 # EOF