Skip to content

Commit

Permalink
Merge pull request #57 from camillescott/master
Browse files Browse the repository at this point in the history
Remove std namespace pollution
  • Loading branch information
edawson authored Jan 22, 2020
2 parents 64e8a54 + 593940d commit c5c006f
Show file tree
Hide file tree
Showing 3 changed files with 84 additions and 77 deletions.
9 changes: 8 additions & 1 deletion Makefile
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
CXX?=g++
CXXFLAGS+=-O3 -pipe -fPIC -march=native -mtune=native -std=c++11 -g -ggdb
CXXFLAGS+=-O3 -pipe -fPIC -march=native -mtune=native -std=c++11

PREFIX=/usr/local

# We want to pass -Wa,-q to GCC use the Clang assembler, but Apple Clang can't take that
Expand All @@ -20,6 +21,12 @@ BUILD_DIR:=build
LD_LIB_FLAGS=-L./src/ -L./
LD_INC_FLAGS=-I./src/ -I./ -I./src/tinyFA -I./src/tinyFA/pliib -I./$(BUILD_DIR)

ifneq ($(CONDA_PREFIX),)
LD_LIB_FLAGS += -L$(CONDA_PREFIX)/lib/
LD_INC_FLAGS += -I$(CONDA_PREFIX)/include
PREFIX = $(CONDA_PREFIX)
endif

gfak: $(BUILD_DIR)/main.o src/gfakluge.hpp src/tinyFA/pliib/pliib.hpp src/tinyFA/tinyFA.hpp | $(BUILD_DIR) $(BIN_DIR)
+$(CXX) $(LDFLAGS) $(CPPFLAGS) $(CXXFLAGS) -o $@ $< $(LD_LIB_FLAGS) $(LD_INC_FLAGS)

Expand Down
Loading

0 comments on commit c5c006f

Please sign in to comment.