6abc1c209a659dd97441b59fb7d4632cf536a0de
[reactos.git] / reactos / drivers / storage / class2 / makefile
1 # $Id: makefile,v 1.1 2001/07/23 06:12:07 ekohl Exp $
2 #
3 #
4 PATH_TO_TOP = ../../..
5
6 TARGET=class2
7
8 OBJECTS = $(TARGET).o $(TARGET).coff
9
10 LIBS = $(PATH_TO_TOP)/ntoskrnl/ntoskrnl.a
11
12 CFLAGS = -D__NTDRIVER__ -I$(PATH_TO_TOP)/include
13
14 all: $(TARGET).sys $(TARGET).sys.unstripped $(TARGET).a
15
16 .phony: all
17
18 clean:
19 - $(RM) *.o $(TARGET).a $(TARGET).coff junk.tmp base.tmp temp.exp $(TARGET).sys $(TARGET).sys.unstripped
20
21 .phony: clean
22
23 install: $(FLOPPY_DIR)/drivers/$(TARGET).sys
24
25 $(FLOPPY_DIR)/drivers/$(TARGET).sys: $(TARGET).sys
26 $(CP) $(TARGET).sys $(FLOPPY_DIR)/drivers/$(TARGET).sys
27
28
29 dist: $(PATH_TO_TOP)/$(DIST_DIR)/drivers/$(TARGET).sys
30
31 $(PATH_TO_TOP)/$(DIST_DIR)/drivers/$(TARGET).sys: $(TARGET).sys
32 $(CP) $(TARGET).sys $(PATH_TO_TOP)/$(DIST_DIR)/drivers/$(TARGET).sys
33
34
35 $(TARGET).sys $(TARGET).sys.unstripped: $(OBJECTS) $(LIBS)
36
37 $(TARGET).a: $(TARGET).def
38 $(DLLTOOL) \
39 --dllname $(TARGET).sys \
40 --def $(TARGET).def \
41 --kill-at \
42 --output-lib $(TARGET).a
43
44
45 WARNINGS_ARE_ERRORS = yes
46 include $(PATH_TO_TOP)/rules.mak