c00f515bd115f4034b20bbc0f8ad4e33b825d141
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
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 $(STRIP
) --strip-debug
$<
120 -nostartfiles
-nostdlib
-e _DriverEntry@
8 \
123 -Wl
,--defsym
,_end
=end \
124 -Wl
,--defsym
,_edata
=__data_end__ \
125 -Wl
,--defsym
,_etext
=etext \
126 -Wl
,--base-file
,base.tmp
$^
130 --base-file base.tmp \
131 --output-exp temp.exp \
136 -Wl
,--subsystem
,native \
137 -Wl
,--image-base
,0x10000 \
138 -Wl
,-e
,_DriverEntry@
8 \
140 -nostartfiles
-nostdlib
-e _DriverEntry@
8 \
146 RULES_MAK_INCLUDED
= 1