Skip to content

Commit

Permalink
adjust makefile
Browse files Browse the repository at this point in the history
  • Loading branch information
mreineck committed Sep 24, 2024
1 parent dab8745 commit f6fab70
Showing 1 changed file with 6 additions and 7 deletions.
13 changes: 6 additions & 7 deletions makefile
Original file line number Diff line number Diff line change
Expand Up @@ -135,11 +135,11 @@ ABSDYNLIB = $(FINUFFT)$(DYNLIB)

# spreader is subset of the library with self-contained testing, hence own objs:
# double-prec spreader object files that also need single precision...
SOBJS = src/spreadinterp.o src/utils.o
SOBJS =
# their single-prec versions
SOBJSF = $(SOBJS:%.o=%_32.o)
# precision-dependent spreader object files (compiled & linked only once)...
SOBJS_PI = src/utils_precindep.o
SOBJS_PI = src/utils_precindep.o src/spreadinterp.o
# spreader dual-precision objs
SOBJSD = $(SOBJS) $(SOBJSF) $(SOBJS_PI)

Expand Down Expand Up @@ -209,7 +209,6 @@ HEADERS = $(wildcard include/*.h include/finufft/*.h) $(DUCC_HEADERS)
include/finufft/fft.h: $(DUCC_SETUP)
SHEAD = $(wildcard src/*.h) $(XSIMD_DIR)/include/xsimd/xsimd.hpp
src/spreadinterp.o: $(SHEAD)
src/spreadinterp_32.o: $(SHEAD)


# lib -----------------------------------------------------------------------
Expand Down Expand Up @@ -277,10 +276,10 @@ test/%: test/%.cpp $(DYNLIB)
test/%f: test/%.cpp $(DYNLIB)
$(CXX) $(CXXFLAGS) ${LDFLAGS} -DSINGLE $< $(ABSDYNLIB) $(LIBSFFT) -o $@
# low-level tests that are cleaner if depend on only specific objects...
test/testutils: test/testutils.cpp src/utils.o src/utils_precindep.o
$(CXX) $(CXXFLAGS) ${LDFLAGS} test/testutils.cpp src/utils.o src/utils_precindep.o $(LIBS) -o test/testutils
test/testutilsf: test/testutils.cpp src/utils_32.o src/utils_precindep.o
$(CXX) $(CXXFLAGS) ${LDFLAGS} -DSINGLE test/testutils.cpp src/utils_32.o src/utils_precindep.o $(LIBS) -o test/testutilsf
test/testutils: test/testutils.cpp src/utils_precindep.o
$(CXX) $(CXXFLAGS) ${LDFLAGS} test/testutils.cpp src/utils_precindep.o $(LIBS) -o test/testutils
test/testutilsf: test/testutils.cpp src/utils_precindep.o
$(CXX) $(CXXFLAGS) ${LDFLAGS} -DSINGLE test/testutils.cpp src/utils_precindep.o $(LIBS) -o test/testutilsf

# make sure all double-prec test executables ready for testing
TESTS := $(basename $(wildcard test/*.cpp))
Expand Down

0 comments on commit f6fab70

Please sign in to comment.