mirror of
https://github.com/xen-project/xen.git
synced 2026-10-28 18:21:39 +01:00
Also avoid overriding global optimisation default (-O1, -O2, etc.) Signed-off-by: Keir Fraser <keir.fraser@citrix.com>
22 lines
579 B
Makefile
22 lines
579 B
Makefile
|
|
override XEN_TARGET_ARCH = x86_32
|
|
XEN_ROOT = ../..
|
|
CFLAGS :=
|
|
include $(XEN_ROOT)/tools/Rules.mk
|
|
|
|
# Disable PIE/SSP if GCC supports them. They can break us.
|
|
CFLAGS += $(call cc-option,$(CC),-nopie,)
|
|
CFLAGS += $(call cc-option,$(CC),-fno-stack-protector,)
|
|
CFLAGS += $(call cc-option,$(CC),-fno-stack-protector-all,)
|
|
|
|
CFLAGS += -fno-builtin -msoft-float
|
|
|
|
.PHONY: all
|
|
all: blowfish.bin
|
|
|
|
blowfish.bin: blowfish.c
|
|
$(CC) $(CFLAGS) -c blowfish.c
|
|
$(LD) $(LDFLAGS_DIRECT) -N -Ttext 0x100000 -o blowfish.tmp blowfish.o
|
|
$(OBJCOPY) -O binary blowfish.tmp blowfish.bin
|
|
rm -f blowfish.tmp
|