-
Notifications
You must be signed in to change notification settings - Fork 21
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
meson does not work. Switching back to basic makefile.
- Loading branch information
Showing
4 changed files
with
57 additions
and
39 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,40 @@ | ||
SHELL = /bin/sh | ||
|
||
.SUFFIXES: | ||
.SUFFIXES: .cpp .o | ||
|
||
cxxflags += -fPIC | ||
ldflags += -shared | ||
bindir = gatdaem1d | ||
|
||
srcdir = ../src | ||
objdir = ./obj | ||
includes = -I$(srcdir) -I$(FFTW_ROOT)/include -I../submodules/cpp-utils/include | ||
libs = -L$(FFTW_ROOT)/lib -lfftw3 | ||
library = $(bindir)/gatdaem1d.so | ||
|
||
all: compile link | ||
allclean: clean compile link | ||
|
||
objects = \ | ||
$(objdir)/gatdaem1d.o \ | ||
|
||
$(objects): $(objdir)/%.o: $(srcdir)/%.cpp | ||
mkdir -p $(objdir) | ||
@echo ' ' | ||
@echo Compiling $< | ||
$(cxx) -c $(includes) $(cxxflags) $< -o $@ | ||
|
||
compile: $(objects) | ||
|
||
link: $(objects) | ||
mkdir -p $(bindir) | ||
@echo ' ' | ||
@echo Creating library | ||
$(cxx) $(ldflags) $(objects) $(libs) -o $(library) | ||
|
||
clean: | ||
@echo ' ' | ||
@echo Cleaning | ||
rm -f $(objects) | ||
rm -f $(library) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,6 @@ | ||
[build-system] | ||
requires = ["meson-python"] | ||
build-backend = "mesonpy" | ||
requires = ["setuptools", "wheel"] | ||
build-backend = "setuptools.build_meta" | ||
|
||
[project] | ||
name = "gatdaem1d" | ||
|
@@ -10,7 +10,10 @@ readme = { file = "README.md", content-type = "text/markdown" } | |
requires-python = ">=3.10" | ||
authors = [{ name = "Ross C Brodie", email = "[email protected]" }] | ||
keywords = ["electromagnetic", "geophysics"] | ||
dependencies = ["numpy"] | ||
dependencies = [ | ||
"numpy", | ||
"matplotlib" | ||
] | ||
classifiers = [ | ||
'License :: OSI Approved', | ||
'License :: OSI Approved :: GNU General Public License v2 (GPLv2)', | ||
|
@@ -19,8 +22,8 @@ classifiers = [ | |
'Topic :: Electromagnetic :: Airborne :: Forward modelling :: Geophysics' | ||
] | ||
|
||
[tool.spin] | ||
package = 'gatdaem1d' | ||
|
||
[tool.setuptools.packages.find] | ||
gatdaem1d = ["."] | ||
where = ["."] | ||
|
||
[tool.setuptools.package-data] | ||
gatdaem1d = ['gatdaem1d.*'] |