move work on clean rule
[reactos.git] / reactos / drivers / fs / ext2 / makefile
1 # $Id: makefile,v 1.12 2001/07/15 21:18:59 rex Exp $
2 #
3 # Linux Ext2 IFS Driver
4 #
5 PATH_TO_TOP = ../../..
6
7 TARGETNAME=ext2fs
8
9 OBJECTS = super.o blockdev.o inode.o file.o dir.o rw.o quota.o security.o \
10 attr.o ext2.coff
11
12 LIBS = ../../../ntoskrnl/ntoskrnl.a
13
14 CFLAGS = -D__NTDRIVER__ -g -Wall
15
16 all: $(TARGETNAME).sys
17
18 .phony: all
19
20 clean:
21 - $(RM) *.o ext2.coff junk.tmp base.tmp temp.exp $(TARGETNAME).sys
22
23 .phony: clean
24
25 ext2fs.sys: $(OBJECTS) $(LIBS)
26 $(CC) \
27 -specs=../../svc_specs \
28 -mdll \
29 -o junk.tmp \
30 -Wl,--defsym,_end=end \
31 -Wl,--defsym,_edata=__data_end__ \
32 -Wl,--defsym,_etext=etext \
33 -Wl,--base-file,base.tmp \
34 $(OBJECTS) $(LIBS)
35 $(RM) junk.tmp
36 $(DLLTOOL) \
37 --dllname $(TARGETNAME).sys \
38 --base-file base.tmp \
39 --output-exp temp.exp
40 $(RM) base.tmp
41 $(CC) \
42 --verbose \
43 -Wl,--image-base,0x10000 \
44 -Wl,-e,_DriverEntry \
45 -specs=../../svc_specs \
46 -mdll \
47 -o $(TARGETNAME).sys \
48 $(OBJECTS) $(LIBS) \
49 -Wl,temp.exp
50 $(RM) temp.exp
51
52 ext2.coff: ../../../include/reactos/buildno.h ext2.rc
53
54 include ../../../rules.mak
55
56 # EOF