forked from phoenix-rtos/phoenix-rtos-filesystems
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile.ia32
35 lines (26 loc) · 774 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
#
# Makefile for Phoenix-RTOS 3 filesystems
#
# IA32 options
#
# Copyright 2018 Phoenix Systems
#
CROSS ?= i386-pc-phoenix-
SUBDIRS = dummyfs ext2
MKDEP = $(CROSS)gcc -MM
MKDEPFLAGS = $(CFLAGS)
CC = $(CROSS)gcc
CFLAGS += -O2 -g -Wall -Wstrict-prototypes -I$(SRCDIR) -nostartfiles -nostdlib\
-m32 -mtune=generic -mno-mmx -mno-sse -fno-pic -fno-pie\
-fomit-frame-pointer -fno-strength-reduce -ffreestanding\
-DVERSION=\"$(VERSION)\" -DARCH=\"arch/ia32/arch.h\"
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