forked from phoenix-rtos/phoenix-rtos-build
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile.ia32
37 lines (27 loc) · 783 Bytes
/
Makefile.ia32
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
#
# Makefile for libphoenix
#
# IA32 options
#
# Copyright 2018 Phoenix Systems
#
CROSS ?= i386-pc-phoenix-
MKDEP = $(CROSS)gcc -MM
MKDEPFLAGS = $(CFLAGS)
CC = $(CROSS)gcc
CFLAGS += -O2 -g -Wall -Wstrict-prototypes -nostartfiles -nostdlib\
-m32 -march=i586 -mtune=generic -mno-mmx -mno-sse -fno-pic -fno-pie\
-fomit-frame-pointer -fno-strength-reduce -fno-builtin-malloc\
-fdata-sections -ffunction-sections
AR = $(CROSS)ar
ARFLAGS = -r
LD = $(CROSS)ld
LDFLAGS = -m elf_i386
GCCLIB := $(shell $(CC) $(CFLAGS) -print-libgcc-file-name)
PHOENIXLIB := $(shell $(CC) $(CFLAGS) -print-file-name=libphoenix.a)
LDLIBS := $(PHOENIXLIB) $(GCCLIB)
OBJCOPY = $(CROSS)objcopy
OBJDUMP = $(CROSS)objdump
STRIP = $(CROSS)strip
ARCHMAKE = arch/ia32/Makefile
VADDR_KERNEL_INIT=0xc0110000