Commit 0bd08b33 authored by Florian Wittkamp's avatar Florian Wittkamp
Browse files

Bugfix for GNU Compiler

parent 2ee88d50
......@@ -67,6 +67,7 @@ SOFI_LIB_OBJ := $(SOFI_LIB_SCR:%.cpp=%.o)
$(LIB_TARGET): $(SOFI_LIB_OBJ)
ar rcuvs $@ $^
ranlib $@
#####################
# SOFI main program
......@@ -74,7 +75,7 @@ $(LIB_TARGET): $(SOFI_LIB_OBJ)
SOFI_MAIN_CPP := SOFI.cpp
SOFI_MAIN_OBJ := $(SOFI_MAIN_CPP:%.cpp=%.o)
$(SOFI_TARGET): $(LIB_TARGET) $(SOFI_MAIN_OBJ)
$(SOFI_TARGET): $(SOFI_MAIN_OBJ) $(LIB_TARGET)
$(CC) $(CFLAGS) $^ -o $@ $(IFLAGS) $(LDFLAGS)
######################
......@@ -85,7 +86,7 @@ $(SOFI_UNITTEST_OBJ): CFLAGS+=$(CFLAGSTEST)
$(SOFI_UNITTEST_OBJ): LDFLAGS +=$(LDFLAGSTEST)
$(SOFI_UNITTEST_OBJ): IFLAGS +=$(IFLAGSTEST)
$(SOFI_UNITTEST_TARGET): $(LIB_TARGET) $(SOFI_UNITTEST_OBJ)
$(SOFI_UNITTEST_TARGET): $(SOFI_UNITTEST_OBJ) $(LIB_TARGET)
mkdir -p $(BINDIR)/Tests/
$(CC) $(CFLAGS) $(CFLAGSTEST) $^ -o $@ $(IFLAGS) $(IFLAGSTEST) $(LDFLAGS) $(LDFLAGSTEST)
......@@ -94,7 +95,7 @@ $(SOFI_UNITTEST_TARGET): $(LIB_TARGET) $(SOFI_UNITTEST_OBJ)
######################
SOFI_INTEGRATIONTEST_OBJ := $(SOFI_INTEGRATIONTEST_CPP:%.cpp=%.o)
$(SOFI_INTEGRATIONTEST_TARGET): $(LIB_TARGET) $(SOFI_INTEGRATIONTEST_OBJ)
$(SOFI_INTEGRATIONTEST_TARGET): $(SOFI_INTEGRATIONTEST_OBJ) $(LIB_TARGET)
mkdir -p $(BINDIR)/Tests/
$(CC) $(CFLAGS) $^ -o $@ $(IFLAGS) $(LDFLAGS)
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment