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