Renamed pseudo target 'floppy' to 'install'
[reactos.git] / reactos / drivers / dd / vidport / makefile
1 # $Id: makefile,v 1.8 2000/08/11 12:44:03 ekohl Exp $
2 #
3 #
4 TARGET=vidport
5 OBJECTS = $(TARGET).o $(TARGET).coff ../../../ntoskrnl/ntoskrnl.a
6
7 BASE_CFLAGS = -I../../../include
8
9 all: $(TARGET).sys vidport.a
10
11 .phony: all
12
13 clean:
14 - $(RM) $(TARGET).o
15 - $(RM) $(TARGET).a
16 - $(RM) $(TARGET).coff
17 - $(RM) junk.tmp
18 - $(RM) base.tmp
19 - $(RM) temp.exp
20 - $(RM) $(TARGET).sys
21
22 .phony: clean
23
24 install: $(FLOPPY_DIR)/drivers/$(TARGET).sys
25
26 $(FLOPPY_DIR)/drivers/$(TARGET).sys: $(TARGET).sys
27 ifeq ($(DOSCLI),yes)
28 $(CP) $(TARGET).sys $(FLOPPY_DIR)\drivers\$(TARGET).sys
29 else
30 $(CP) $(TARGET).sys $(FLOPPY_DIR)/drivers/$(TARGET).sys
31 endif
32
33 dist: ../../../$(DIST_DIR)/drivers/$(TARGET).sys
34
35 ../../../$(DIST_DIR)/drivers/$(TARGET).sys: $(TARGET).sys
36 ifeq ($(DOSCLI),yes)
37 $(CP) $(TARGET).sys ..\..\..\$(DIST_DIR)\drivers\$(TARGET).sys
38 else
39 $(CP) $(TARGET).sys ../../../$(DIST_DIR)/drivers/$(TARGET).sys
40 endif
41
42 $(TARGET).sys: $(OBJECTS)
43 $(DLLTOOL) \
44 --dllname $(TARGET).sys \
45 --def $(TARGET).def \
46 --kill-at \
47 --output-lib $(TARGET).a
48 $(CC) \
49 $(OBJECTS) \
50 -Wl,-d -specs=../../svc_specs \
51 -mdll \
52 -o junk.tmp \
53 -Wl,--image-base,0x10000 \
54 -Wl,--defsym,_end=end \
55 -Wl,--defsym,_edata=__data_end__ \
56 -Wl,--defsym,_etext=etext \
57 -Wl,--base-file,base.tmp
58 - $(RM) junk.tmp
59 $(DLLTOOL) \
60 --dllname $(TARGET).sys \
61 --base-file base.tmp \
62 --output-exp temp.exp \
63 --def $(TARGET).edf
64 - $(RM) base.tmp
65 $(CC) \
66 $(OBJECTS) \
67 -specs=../../svc_specs \
68 -mdll \
69 -o $(TARGET).sys \
70 -Wl,--image-base,0x10000 \
71 -Wl,-e,_DriverEntry@8 \
72 -Wl,--defsym,_end=end \
73 -Wl,--defsym,_edata=__data_end__ \
74 -Wl,--defsym,_etext=etext \
75 -Wl,temp.exp
76 - $(RM) temp.exp
77
78 include ../../../rules.mak