source: trunk/packages/xen-3.1/xen-3.1/tools/tests/blowfish.mk @ 34

Last change on this file since 34 was 34, checked in by hartmans, 18 years ago

Add xen and xen-common

File size: 642 bytes
Line 
1
2override XEN_TARGET_ARCH = x86_32
3XEN_ROOT = ../..
4CFLAGS :=
5include $(XEN_ROOT)/tools/Rules.mk
6
7# Disable PIE/SSP if GCC supports them. They can break us.
8CFLAGS  += $(call cc-option,$(CC),-nopie,)
9CFLAGS  += $(call cc-option,$(CC),-fno-stack-protector,)
10CFLAGS  += $(call cc-option,$(CC),-fno-stack-protector-all,)
11
12OBJCOPY  = objcopy
13CFLAGS  += -fno-builtin -O2 -msoft-float
14LDFLAGS  = -nostdlib -Wl,-N -Wl,-Ttext -Wl,0x100000
15
16.PHONY: all
17all: blowfish.bin
18
19blowfish.bin: blowfish.c
20        $(CC) $(CFLAGS) -c blowfish.c
21        $(CC) $(CFLAGS) $(LDFLAGS) -o blowfish.tmp blowfish.o
22        $(OBJCOPY) -O binary blowfish.tmp blowfish.bin
23        rm -f blowfish.tmp
Note: See TracBrowser for help on using the repository browser.