Subversion Repositories HelenOS

Rev

Rev 3803 | Rev 4417 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 3803 Rev 3883
Line 25... Line 25...
25
# (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
25
# (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
26
# THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
26
# THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
27
#
27
#
28
 
28
 
29
include ../../../../version
29
include ../../../../version
30
include ../../../../Makefile.config
30
-include ../../../../Makefile.config
31
 
31
 
32
## Toolchain configuration
32
## Toolchain configuration
33
#
33
#
34
 
34
 
35
ifndef CROSS_PREFIX
35
ifndef CROSS_PREFIX
Line 45... Line 45...
45
	CC = gcc
45
	CC = gcc
46
	AS = as
46
	AS = as
47
	LD = ld
47
	LD = ld
48
	OBJCOPY = objcopy
48
	OBJCOPY = objcopy
49
	OBJDUMP = objdump
49
	OBJDUMP = objdump
50
	GEFI_PREXIX = 
50
	GEFI_PREFIX =
51
endif
51
endif
52
 
52
 
53
ifeq ($(COMPILER),icc_native)
53
ifeq ($(COMPILER),icc_native)
54
	CC = icc
54
	CC = icc
55
	AS = as
55
	AS = as
Line 66... Line 66...
66
	OBJDUMP = $(TOOLCHAIN_DIR)/$(TARGET)-objdump
66
	OBJDUMP = $(TOOLCHAIN_DIR)/$(TARGET)-objdump
67
	GEFI_PREFIX = $(TOOLCHAIN_DIR)/$(TARGET)-
67
	GEFI_PREFIX = $(TOOLCHAIN_DIR)/$(TARGET)-
68
endif
68
endif
69
 
69
 
70
#-mno-pic means do not use gp + imm22 to address data
70
#-mno-pic means do not use gp + imm22 to address data
71
CFLAGS = -DRELEASE=\"$(RELEASE)\" -I. -I../../../generic -I../../../genarch -I../../../../kernel/generic/include -nostdinc -nostdlib -fno-builtin -Werror-implicit-function-declaration -Wmissing-prototypes -Werror -O3 -fno-unwind-tables -mfixed-range=f32-f127 -mno-pic -pipe
71
CFLAGS = -DRELEASE=$(RELEASE) -I. -I../../../generic -I../../../genarch -I../../../../kernel/generic/include -imacros ../../../../config.h -nostdinc -nostdlib -fno-builtin -Werror-implicit-function-declaration -Wmissing-prototypes -Werror -O3 -fno-unwind-tables -mfixed-range=f32-f127 -mno-pic -pipe
72
 
-
 
73
ifdef REVISION
-
 
74
	CFLAGS += "-DREVISION=\"$(REVISION)\""
-
 
75
endif
-
 
76
 
-
 
77
ifdef TIMESTAMP
-
 
78
	CFLAGS += "-DTIMESTAMP=\"$(TIMESTAMP)\""
-
 
79
endif
-
 
80
 
72
 
81
SOURCES = \
73
SOURCES = \
82
	main.c \
74
	main.c \
83
	../../../generic/printf.c \
75
	../../../generic/printf.c \
84
	../../../generic/string.c \
76
	../../../generic/string.c \
Line 128... Line 120...
128
-include Makefile.depend
120
-include Makefile.depend
129
 
121
 
130
hello.efi: image.boot
122
hello.efi: image.boot
131
	make -C gefi/HelenOS PREFIX=$(GEFI_PREFIX)
123
	make -C gefi/HelenOS PREFIX=$(GEFI_PREFIX)
132
	cp gefi/HelenOS/hello.efi ../../../../
124
	cp gefi/HelenOS/hello.efi ../../../../
133
#	cp gefi/HelenOS/hello.efi /boot/efi/
-
 
134
	cp gefi/HelenOS/image.bin ../../../../
125
	cp gefi/HelenOS/image.bin ../../../../
135
 
126
 
136
image.boot: depend _components.h _link.ld $(COMPONENT_OBJECTS) initrd.o $(OBJECTS)
127
image.boot: depend _components.h _link.ld $(COMPONENT_OBJECTS) initrd.o $(OBJECTS)
137
	$(LD) -Map image.map -no-check-sections -N -T _link.ld $(COMPONENT_OBJECTS) initrd.o $(OBJECTS) -o $@
128
	$(LD) -Map image.map -no-check-sections -N -T _link.ld $(COMPONENT_OBJECTS) initrd.o $(OBJECTS) -o $@
138
 
129