Versio info actually linked in *.sys modules
[reactos.git] / reactos / drivers / fs / vfat / makefile
1 # $Id: makefile,v 1.13 1999/12/18 10:17:42 ea Exp $
2 #
3 #
4 TARGET=vfatfs
5
6 OBJECTS = blockdev.o dir.o dirwr.o iface.o string.o fat.o rw.o finfo.o \
7 volume.o create.o $(TARGET).coff
8 LIBS = ../../../ntoskrnl/ntoskrnl.a
9
10 BASE_CFLAGS = -I../../../include
11
12 all: $(TARGET).sys
13
14 .phony: all
15
16 clean:
17 ifeq ($(DOSCLI),yes)
18 - $(RM) blockdev.o
19 - $(RM) dir.o
20 - $(RM) dirwr.o
21 - $(RM) iface.o
22 - $(RM) $(TARGET).coff
23 - $(RM) junk.tmp
24 - $(RM) base.tmp
25 - $(RM) temp.exp
26 - $(RM) $(TARGET).sys
27 else
28 - $(RM) $(OBJECTS) $(TARGET).coff junk.tmp base.tmp temp.exp $(TARGET).sys
29 endif
30
31 .phony: clean
32
33 floppy: $(FLOPPY_DIR)/drivers/$(TARGET).sys
34
35 $(FLOPPY_DIR)/drivers/$(TARGET).sys: $(TARGET).sys
36 ifeq ($(DOSCLI),yes)
37 $(CP) $(TARGET).sys $(FLOPPY_DIR)\drivers\$(TARGET).sys
38 else
39 $(CP) $(TARGET).sys $(FLOPPY_DIR)/drivers/$(TARGET).sys
40 endif
41
42 dist: ../../../$(DIST_DIR)/drivers/$(TARGET).sys
43
44 ../../../$(DIST_DIR)/drivers/$(TARGET).sys: $(TARGET).sys
45 ifeq ($(DOSCLI),yes)
46 $(CP) $(TARGET).sys ..\..\..\$(DIST_DIR)\drivers\$(TARGET).sys
47 else
48 $(CP) $(TARGET).sys ../../../$(DIST_DIR)/drivers/$(TARGET).sys
49 endif
50
51 $(TARGET).sys: $(OBJECTS) $(LIBS)
52 $(CC) \
53 -specs=../../svc_specs \
54 -mdll \
55 -o junk.tmp \
56 -Wl,--defsym,_end=end \
57 -Wl,--defsym,_edata=__data_end__ \
58 -Wl,--defsym,_etext=etext \
59 -Wl,--base-file,base.tmp \
60 -Wl,"-h vfatfs.sys" \
61 $(OBJECTS) $(LIBS)
62 - $(RM) junk.tmp
63 $(DLLTOOL) \
64 --dllname $(TARGET).sys \
65 --base-file base.tmp \
66 --output-exp temp.exp \
67 --def vfatfs.def
68 - $(RM) base.tmp
69 $(CC) \
70 --verbose \
71 -Wl,--image-base,0x10000 \
72 -Wl,-e,_DriverEntry@8 \
73 -Wl,temp.exp \
74 -Wl,"-h vfatfs.sys" \
75 -specs=../../svc_specs \
76 -mdll \
77 -o $(TARGET).sys \
78 $(OBJECTS) $(LIBS)
79 - $(RM) temp.exp
80
81
82 WARNINGS_ARE_ERRORS = yes
83 include ../../../rules.mak