Made header file usage more consistent
[reactos.git] / reactos / drivers / fs / vfat / makefile
1 # $Id: makefile,v 1.16 2000/06/29 23:35:51 dwelch 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 volume.o create.o $(TARGET).coff
7 LIBS = ../../../ntoskrnl/ntoskrnl.a
8
9 BASE_CFLAGS = -I. -I../../../include
10
11 all: $(TARGET).sys
12
13 .phony: all
14
15 clean:
16 ifeq ($(DOSCLI),yes)
17 - $(RM) *.o
18 - $(RM) $(TARGET).coff
19 - $(RM) junk.tmp
20 - $(RM) base.tmp
21 - $(RM) temp.exp
22 - $(RM) $(TARGET).sys
23 else
24 - $(RM) $(OBJECTS) $(TARGET).coff junk.tmp base.tmp temp.exp $(TARGET).sys
25 endif
26
27 .phony: clean
28
29 floppy: $(FLOPPY_DIR)/drivers/$(TARGET).sys
30
31 $(FLOPPY_DIR)/drivers/$(TARGET).sys: $(TARGET).sys
32 ifeq ($(DOSCLI),yes)
33 $(CP) $(TARGET).sys $(FLOPPY_DIR)\drivers\$(TARGET).sys
34 else
35 $(CP) $(TARGET).sys $(FLOPPY_DIR)/drivers/$(TARGET).sys
36 endif
37
38 dist: ../../../$(DIST_DIR)/drivers/$(TARGET).sys
39
40 ../../../$(DIST_DIR)/drivers/$(TARGET).sys: $(TARGET).sys
41 ifeq ($(DOSCLI),yes)
42 $(CP) $(TARGET).sys ..\..\..\$(DIST_DIR)\drivers\$(TARGET).sys
43 else
44 $(CP) $(TARGET).sys ../../../$(DIST_DIR)/drivers/$(TARGET).sys
45 endif
46
47 $(TARGET).sys: $(OBJECTS) $(LIBS)
48 $(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)
49 - $(RM) junk.tmp
50 $(DLLTOOL) \
51 --dllname $(TARGET).sys \
52 --base-file base.tmp \
53 --output-exp temp.exp \
54 --def vfatfs.def
55 - $(RM) base.tmp
56 $(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)
57 - $(RM) temp.exp
58
59
60 WARNINGS_ARE_ERRORS = yes
61 include ../../../rules.mak