8 # uncomment if you use bochs and it displays only 30 rows
11 ifeq ($(HOST
),mingw32-linux
)
12 TOPDIR
:= $(shell if
[ "$$PWD" != "" ]; then echo
$$PWD; else pwd
; fi
)
16 # Choose various options
18 ifeq ($(HOST
),mingw32-linux
)
20 PREFIX
= /usr
/mingw32-cvs-000216
/bin
/mingw32-pc-
21 #PREFIX = i586-mingw32-
22 #PREFIX = /usr/mingw32-cvs-000207/bin/mingw32-cvs-000207-
26 CP
= $(PATH_TO_TOP
)/rcopy
27 DLLTOOL
= $(PREFIX
)dlltool
--as=$(PREFIX
)as
29 #KM_SPECS = $(TOPDIR)/specs
31 # DIST_DIR should be relative from the top of the tree
35 #ENABLE_DEPENDENCY_TRACKING := 1
38 ifeq ($(HOST
),mingw32-windows
)
44 CP
= $(PATH_TO_TOP
)/rcopy
45 DLLTOOL
= $(PREFIX
)dlltool
--as=$(PREFIX
)as
47 RM
= $(PATH_TO_TOP
)/rdel
52 # DIST_DIR should be relative from the top of the tree
56 #ENABLE_DEPENDENCY_TRACKING := 1
63 CFLAGS
:= $(CFLAGS
) -I
$(PATH_TO_TOP
)/include -pipe
-m386
65 NFLAGS
= -i
$(PATH_TO_TOP
)/include/ -f
$(NASM_FORMAT
) -d
$(NASM_FORMAT
)
68 OBJCOPY
= $(PREFIX
)objcopy
69 STRIP
= $(PREFIX
)strip
70 ASFLAGS
:= $(ASFLAGS
) -I
$(PATH_TO_TOP
)/include -D__ASM__
71 AS
= $(PREFIX
)gcc
-c
-x assembler-with-cpp
75 RCINC
= --include-dir
$(PATH_TO_TOP
)/include
76 OBJCOPY
= $(PREFIX
)objcopy
79 $(CC
) $(CFLAGS
) -c
$< -o
$@
81 $(CC
) $(CFLAGS
) -c
$< -o
$@
83 $(AS
) $(ASFLAGS
) -c
$< -o
$@
85 $(AS
) $(ASFLAGS
) -c
$< -o
$@
87 $(NASM_CMD
) $(NFLAGS
) $< -o
$@
93 -nostartfiles
-nostdlib
-e _DriverEntry@
8\
96 -Wl
,--defsym
,_end
=end \
97 -Wl
,--defsym
,_edata
=__data_end__ \
98 -Wl
,--defsym
,_etext
=etext \
99 -Wl
,--base-file
,base.tmp
$^
103 --base-file base.tmp \
104 --output-exp temp.exp \
109 -Wl
,--subsystem
,native \
110 -Wl
,--image-base
,0x10000 \
111 -Wl
,-e
,_DriverEntry@
8 \
113 -nostartfiles
-nostdlib
-e _DriverEntry@
8 \
118 - $(NM
) --numeric-sort
$@.unstripped
> $@.sym
119 $(STRIP
) --strip-debug
$<
121 -nostartfiles
-nostdlib
-e _DriverEntry@
8 \
124 -Wl
,--defsym
,_end
=end \
125 -Wl
,--defsym
,_edata
=__data_end__ \
126 -Wl
,--defsym
,_etext
=etext \
127 -Wl
,--base-file
,base.tmp
$^
131 --base-file base.tmp \
132 --output-exp temp.exp \
137 -Wl
,--subsystem
,native \
138 -Wl
,--image-base
,0x10000 \
139 -Wl
,-e
,_DriverEntry@
8 \
141 -nostartfiles
-nostdlib
-e _DriverEntry@
8 \
147 RULES_MAK_INCLUDED
= 1