diff --git a/tests/fp/sample/Makefile b/tests/fp/sample/Makefile new file mode 100644 index 000000000..7ca0b2926 --- /dev/null +++ b/tests/fp/sample/Makefile @@ -0,0 +1,19 @@ +# Makefile + +CC = gcc +CFLAGS = -O3 +LIBS = -lm +LFLAGS = -L. +IFLAGS = -I../../../addins/SoftFloat-3e/source/include/ +LIBS = ../../../addins/SoftFloat-3e/build/Linux-x86_64-GCC/softfloat.a +SRCS = $(wildcard *.c) + +PROGS = $(patsubst %.c,%,$(SRCS)) + +all: $(PROGS) + +%: %.c + $(CC) $(CFLAGS) $(IFLAGS) $(LFLAGS) -o $@ $< $(LIBS) + +clean: + rm -f $(PROGS) diff --git a/tests/fp/sample/compile.sh b/tests/fp/sample/compile.sh deleted file mode 100755 index 24d71efa2..000000000 --- a/tests/fp/sample/compile.sh +++ /dev/null @@ -1,3 +0,0 @@ -#!/bin/sh -gcc -c -I. -I../../source/include -O2 -o $1.o $1.c -gcc -I -I. -I../../source/include -o $1 $1.o softfloat.a diff --git a/tests/fp/sample/div b/tests/fp/sample/div new file mode 100755 index 000000000..f1fefd76b Binary files /dev/null and b/tests/fp/sample/div differ diff --git a/tests/fp/sample/fma b/tests/fp/sample/fma new file mode 100755 index 000000000..810eab11c Binary files /dev/null and b/tests/fp/sample/fma differ