Skip to content

Commit

Permalink
Update compile for external fbesag
Browse files Browse the repository at this point in the history
  • Loading branch information
hrue committed Sep 25, 2024
1 parent 34ab82f commit fe57afe
Show file tree
Hide file tree
Showing 6 changed files with 15 additions and 15 deletions.
6 changes: 3 additions & 3 deletions external-packages/fbesag/build/Makefile
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
CXXFLAGS = $(FLAGS) -O3 -mtune=generic -fopenmp -fpic -I.
CFLAGS = $(FLAGS) -O3 -mtune=generic -fopenmp -fpic -I.
LDFLAGS =
TARGET = libfbesag.so
OBJ = $(patsubst %.cpp,%.o,$(wildcard *.cpp))
OBJ = $(patsubst %.c,%.o,$(wildcard *.c))

$(TARGET) : $(OBJ)
$(CXX) $(LDFLAGS) -o $@ -shared $^ $(LIBBLAS) -lgfortran -lgomp -lm
$(CC) $(LDFLAGS) -o $@ -shared $^ $(LIBBLAS) -lgfortran -lgomp -lm

clean :; rm -f $(TARGET) $(OBJ)
6 changes: 3 additions & 3 deletions external-packages/fbesag/build/Makefile.linux
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
CXXFLAGS = $(FLAGS) -O3 -mtune=generic -fopenmp -fpic -I.
CFLAGS = $(FLAGS) -O3 -mtune=generic -fopenmp -fpic -I.
LDFLAGS =
TARGET = libfbesag.so
OBJ = $(patsubst %.cpp,%.o,$(wildcard *.cpp))
OBJ = $(patsubst %.c,%.o,$(wildcard *.c))

$(TARGET) : $(OBJ)
$(CXX) $(LDFLAGS) -o $@ -shared $^ $(LIBBLAS) -lgfortran -lgomp -lm
$(CC) $(LDFLAGS) -o $@ -shared $^ $(LIBBLAS) -lgfortran -lgomp -lm

clean :; rm -f $(TARGET) $(OBJ)
6 changes: 3 additions & 3 deletions external-packages/fbesag/build/Makefile.mac-arm64
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
CXXFLAGS = -framework Accelerate $(FLAGS) -O3 -mtune=native -fopenmp -fpic -I.
CFLAGS = -framework Accelerate $(FLAGS) -O3 -mtune=native -fopenmp -fpic -I.
LDFLAGS = -framework Accelerate
TARGET = libfbesag.so
OBJ = $(patsubst %.cpp,%.o,$(wildcard *.cpp))
OBJ = $(patsubst %.c,%.o,$(wildcard *.c))

$(TARGET) : $(OBJ)
$(CXX) $(LDFLAGS) -o $@ -dynamiclib $^ -lgfortran -lgomp -lm
$(CC) $(LDFLAGS) -o $@ -dynamiclib $^ -lgfortran -lgomp -lm

clean :; rm -f $(TARGET) $(OBJ)

6 changes: 3 additions & 3 deletions external-packages/fbesag/build/Makefile.mac-intel
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
CXXFLAGS = -framework Accelerate $(FLAGS) -O3 -mtune=generic -fopenmp -fpic -I.
CFLAGS = -framework Accelerate $(FLAGS) -O3 -mtune=generic -fopenmp -fpic -I.
LDFLAGS = -framework Accelerate
TARGET = libfbesag.so
OBJ = $(patsubst %.cpp,%.o,$(wildcard *.cpp))
OBJ = $(patsubst %.c,%.o,$(wildcard *.c))

$(TARGET) : $(OBJ)
$(CXX) $(LDFLAGS) -o $@ -dynamiclib $^ $(LIBBLAS) -lgfortran -lgomp -lm
$(CC) $(LDFLAGS) -o $@ -dynamiclib $^ $(LIBBLAS) -lgfortran -lgomp -lm

clean :; rm -f $(TARGET) $(OBJ)

6 changes: 3 additions & 3 deletions external-packages/fbesag/build/Makefile.win
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
CXXFLAGS = $(FLAGS) -O2 -mtune=generic -fopenmp -fpic -I.
CFLAGS = $(FLAGS) -O2 -mtune=generic -fopenmp -fpic -I.
LDFLAGS =
TARGET = libfbesag.so
OBJ = $(patsubst %.cpp,%.o,$(wildcard *.cpp))
OBJ = $(patsubst %.c,%.o,$(wildcard *.c))

$(TARGET) : $(OBJ)
$(CXX) $(LDFLAGS) -o $@ -shared $^ $(LIBBLAS) -lgfortran -lgomp -lm
$(CC) $(LDFLAGS) -o $@ -shared $^ $(LIBBLAS) -lgfortran -lgomp -lm

clean :; rm -f $(TARGET) $(OBJ)
File renamed without changes.

0 comments on commit fe57afe

Please sign in to comment.