aboutsummaryrefslogtreecommitdiffstats
path: root/tools/tests/x86_emulator/blowfish.mk
blob: 85da259a5c45d1ed19e956232a6ebe3bc92e4683 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
XEN_ROOT = ../../..
CFLAGS =
include $(XEN_ROOT)/tools/Rules.mk

$(call cc-options-add,CFLAGS,CC,$(EMBEDDED_EXTRA_CFLAGS))

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