Update makefile_common
@@ -12,7 +12,7 @@ C_OPTIONS+=-DVERSION=\"$(GIT_VERSION)\"
# -pedantic fails on Mac with Boost 1.41 (syntax problems in their headers)
#CC = ${GPP} ${C_PLATFORM} -ansi -pedantic -Wno-long-long ${C_OPTIONS} $(INCFLAGS)
-CC = ${GPP} ${C_PLATFORM} -ansi -Wno-long-long ${C_OPTIONS} $(INCFLAGS)
+VINA_CC = ${GPP} ${C_PLATFORM} -ansi -Wno-long-long ${C_OPTIONS} $(INCFLAGS)
LDFLAGS = -L$(BASE)/lib -L.
@@ -21,7 +21,7 @@ LDFLAGS = -L$(BASE)/lib -L.
# install libboost_thread-mt, but not
# libboost_thread (e.g. macOS)
$(shell echo "int main(){ return 0; }" > linktest.cpp)
-$(shell $(CC) $(LDFLAGS) -l boost_thread-mt${BOOST_LIB_VERSION} linktest.cpp -o linktest >/dev/null 2>&1)
+$(shell $(VINA_CC) $(LDFLAGS) -l boost_thread-mt${BOOST_LIB_VERSION} linktest.cpp -o linktest >/dev/null 2>&1)
threadmt:=$(shell if [ -f ./linktest ]; then echo "-mt"; rm ./linktest; fi;)
$(shell rm ./linktest.cpp)
@@ -31,26 +31,26 @@ LIBS = -l boost_system -l boost_thread${threadmt} -l boost_serialization -l boos
.SUFFIXES: .cpp .o
%.o : ../../../src/lib/%.cpp
- $(CC) $(CFLAGS) -o $@ -c $<
+ $(VINA_CC) $(CFLAGS) -o $@ -c $<
%.o : ../../../src/design/%.cpp
- $(CC) $(CFLAGS) -I ../../../src/lib -o $@ -c $<
+ $(VINA_CC) $(CFLAGS) -I ../../../src/lib -o $@ -c $<
%.o : ../../../src/main/%.cpp
- $(CC) $(CFLAGS) -I ../../../src/lib -o $@ -c $<
+ $(VINA_CC) $(CFLAGS) -I ../../../src/lib -o $@ -c $<
%.o : ../../../src/split/%.cpp
- $(CC) $(CFLAGS) -I ../../../src/lib -o $@ -c $<
+ $(VINA_CC) $(CFLAGS) -I ../../../src/lib -o $@ -c $<
all: vina vina_split
include dependencies
vina: $(MAINOBJ) $(LIBOBJ)
- $(CC) $(LDFLAGS) -o $@ $^ $(LIBS)
+ $(VINA_CC) $(LDFLAGS) -o $@ $^ $(LIBS)
vina_split: $(SPLITOBJ)
- $(CC) $(LDFLAGS) -o $@ $^ $(LIBS)
+ $(VINA_CC) $(LDFLAGS) -o $@ $^ $(LIBS)
clean:
rm -f *.o
