aboutsummaryrefslogtreecommitdiff
path: root/build/Linux-386-SSE2-GCC/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'build/Linux-386-SSE2-GCC/Makefile')
-rw-r--r--build/Linux-386-SSE2-GCC/Makefile13
1 files changed, 7 insertions, 6 deletions
diff --git a/build/Linux-386-SSE2-GCC/Makefile b/build/Linux-386-SSE2-GCC/Makefile
index b3af6dc..7987dff 100644
--- a/build/Linux-386-SSE2-GCC/Makefile
+++ b/build/Linux-386-SSE2-GCC/Makefile
@@ -55,7 +55,8 @@ COMPILE_SLOWFLOAT_C = \
gcc -c -Werror-implicit-function-declaration $(TESTFLOAT_OPTS) \
$(C_INCLUDES) -O3 -o $@
MAKELIB = ar crs $@
-LINK = gcc -lm -o $@
+LINK = gcc -o $@
+LIBS = -lm
OBJ = .o
LIB = .a
@@ -241,7 +242,7 @@ testsoftfloat$(OBJ): \
$(COMPILE_C) $(SOURCE_DIR)/testsoftfloat.c
testsoftfloat$(EXE): $(OBJS_TESTSOFTFLOAT) testfloat$(LIB) $(SOFTFLOAT_LIB)
- $(LINK) $^
+ $(LINK) $^ $(LIBS)
OBJS_TIMESOFTFLOAT = timesoftfloat$(OBJ)
@@ -251,7 +252,7 @@ timesoftfloat$(OBJ): \
$(COMPILE_C) $(SOURCE_DIR)/timesoftfloat.c
timesoftfloat$(EXE): $(OBJS_TIMESOFTFLOAT) testfloat$(LIB) $(SOFTFLOAT_LIB)
- $(LINK) $^
+ $(LINK) $^ $(LIBS)
OBJS_TESTFLOAT_GEN = genLoops$(OBJ) testfloat_gen$(OBJ)
@@ -267,7 +268,7 @@ testfloat_gen$(OBJ): \
$(COMPILE_C) $(SOURCE_DIR)/testfloat_gen.c
testfloat_gen$(EXE): $(OBJS_TESTFLOAT_GEN) testfloat$(LIB) $(SOFTFLOAT_LIB)
- $(LINK) $^
+ $(LINK) $^ $(LIBS)
OBJS_TESTFLOAT_VER = verLoops$(OBJ) testfloat_ver$(OBJ)
@@ -284,7 +285,7 @@ testfloat_ver$(OBJ): \
$(COMPILE_C) $(SOURCE_DIR)/testfloat_ver.c
testfloat_ver$(EXE): $(OBJS_TESTFLOAT_VER) testfloat$(LIB) $(SOFTFLOAT_LIB)
- $(LINK) $^
+ $(LINK) $^ $(LIBS)
OBJS_TESTFLOAT = subjfloat$(OBJ) subjfloat_functions$(OBJ) testfloat$(OBJ)
@@ -304,7 +305,7 @@ testfloat$(OBJ): \
$(COMPILE_C) $(SOURCE_DIR)/testfloat.c
testfloat$(EXE): $(OBJS_TESTFLOAT) testfloat$(LIB) $(SOFTFLOAT_LIB)
- $(LINK) $^
+ $(LINK) $^ $(LIBS)
.PHONY: clean
clean: