From fe57afe19523126062a6809376888c3092221975 Mon Sep 17 00:00:00 2001 From: Haavard Rue Date: Thu, 26 Sep 2024 00:14:49 +0300 Subject: [PATCH] Update compile for external fbesag --- external-packages/fbesag/build/Makefile | 6 +++--- external-packages/fbesag/build/Makefile.linux | 6 +++--- external-packages/fbesag/build/Makefile.mac-arm64 | 6 +++--- external-packages/fbesag/build/Makefile.mac-intel | 6 +++--- external-packages/fbesag/build/Makefile.win | 6 +++--- external-packages/fbesag/build/{fbesag.cpp => fbesag.c} | 0 6 files changed, 15 insertions(+), 15 deletions(-) rename external-packages/fbesag/build/{fbesag.cpp => fbesag.c} (100%) diff --git a/external-packages/fbesag/build/Makefile b/external-packages/fbesag/build/Makefile index 5948865ec..0562d800f 100644 --- a/external-packages/fbesag/build/Makefile +++ b/external-packages/fbesag/build/Makefile @@ -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) diff --git a/external-packages/fbesag/build/Makefile.linux b/external-packages/fbesag/build/Makefile.linux index 5948865ec..3f31de176 100644 --- a/external-packages/fbesag/build/Makefile.linux +++ b/external-packages/fbesag/build/Makefile.linux @@ -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) diff --git a/external-packages/fbesag/build/Makefile.mac-arm64 b/external-packages/fbesag/build/Makefile.mac-arm64 index 8c4f897b4..f58722c1c 100644 --- a/external-packages/fbesag/build/Makefile.mac-arm64 +++ b/external-packages/fbesag/build/Makefile.mac-arm64 @@ -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) diff --git a/external-packages/fbesag/build/Makefile.mac-intel b/external-packages/fbesag/build/Makefile.mac-intel index 0c072d356..06222c75b 100644 --- a/external-packages/fbesag/build/Makefile.mac-intel +++ b/external-packages/fbesag/build/Makefile.mac-intel @@ -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) diff --git a/external-packages/fbesag/build/Makefile.win b/external-packages/fbesag/build/Makefile.win index f57dc4373..cee018695 100644 --- a/external-packages/fbesag/build/Makefile.win +++ b/external-packages/fbesag/build/Makefile.win @@ -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) diff --git a/external-packages/fbesag/build/fbesag.cpp b/external-packages/fbesag/build/fbesag.c similarity index 100% rename from external-packages/fbesag/build/fbesag.cpp rename to external-packages/fbesag/build/fbesag.c