simplified fma Makefile

This commit is contained in:
David Harris 2022-02-26 19:55:42 +00:00
parent 1852eccaab
commit 8a55935456

View File

@ -1,10 +1,10 @@
TARGET ?= fma
# for some reason, softfloat.a needs to be symlinked to the local directory. -L isn't working
$(TARGET): $(TARGET).c Makefile
gcc -c -I../../../addins/SoftFloat-3e/source/include -O2 -o $(TARGET).o $(TARGET).c
gcc -L../../../addins/SoftFloat-3e/build/Linux-x86_64-GCC \
-o $(TARGET) $(TARGET).o softfloat.a \
gcc -O2 -o $(TARGET) $(TARGET).c softfloat.a \
-I../../../addins/SoftFloat-3e/source/include \
-L../../../addins/SoftFloat-3e/build/Linux-x86_64-GCC
clean:
rm $(TARGET).o
rm $(TARGET)