forked from Github_Repos/cvw
Update Makefile for SoftFloat-3e
This commit is contained in:
parent
e295785b45
commit
85b5d92f3f
19
tests/fp/sample/Makefile
Normal file
19
tests/fp/sample/Makefile
Normal file
@ -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)
|
@ -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
|
BIN
tests/fp/sample/div
Executable file
BIN
tests/fp/sample/div
Executable file
Binary file not shown.
BIN
tests/fp/sample/fma
Executable file
BIN
tests/fp/sample/fma
Executable file
Binary file not shown.
Loading…
Reference in New Issue
Block a user