Revision d1955d864f53ecb2b95a802c4b9cceeeccae7b71 authored by Steven G. Johnson on 31 May 2023, 14:27:06 UTC, committed by Steven G. Johnson on 31 May 2023, 14:27:06 UTC
1 parent 6bda3b2
Makefile
FILES = README.md COPYING.md pcubature.c hcubature.c cubature.h clencurt.h vwrapper.h converged.h test.c clencurt_gen.c NEWS.md
# CFLAGS = -pg -O3 -fno-inline-small-functions -Wall -ansi -pedantic
# CFLAGS = -g -Wall -ansi -pedantic
CFLAGS = -O3 -Wall -ansi -pedantic
all: htest ptest
htest: test.c hcubature.c cubature.h converged.h vwrapper.h
cc $(CFLAGS) -o $@ test.c hcubature.c -lm
ptest: test.c pcubature.c cubature.h clencurt.h converged.h vwrapper.h
cc $(CFLAGS) -DPCUBATURE -o $@ test.c pcubature.c -lm
clencurt.h: clencurt_gen.c # only depend on .c file so end-users don't re-gen
make clencurt_gen
./clencurt_gen 19 > $@
clencurt_gen: clencurt_gen.c
cc $(CFLAGS) -o $@ clencurt_gen.c -lfftw3l -lm
clean:
rm -f htest ptest clencurt_gen *.o
dll32:
make clean
i586-mingw32msvc-gcc -c -O3 hcubature.c
i586-mingw32msvc-gcc -c -O3 pcubature.c
i586-mingw32msvc-gcc -shared -o libcubature32-`grep '##' NEWS.md |head -n 1 |cut -d' ' -f3`.dll hcubature.o pcubature.o
make clean
dll64:
make clean
x86_64-w64-mingw32-gcc -c -O3 hcubature.c
x86_64-w64-mingw32-gcc -c -O3 pcubature.c
x86_64-w64-mingw32-gcc -shared -o libcubature64-`grep '##' NEWS.md |head -n 1 |cut -d' ' -f3`.dll hcubature.o pcubature.o
make clean
dylib64:
make clean
gcc -fPIC -c -O3 hcubature.c
gcc -fPIC -c -O3 pcubature.c
gcc -dynamiclib hcubature.o pcubature.o -o libcubature64-`grep '##' NEWS.md |head -n 1 |cut -d' ' -f3`.dylib
make clean
dylib32:
make clean
gcc -m32 -fPIC -c -O3 hcubature.c
gcc -m32 -fPIC -c -O3 pcubature.c
gcc -m32 -dynamiclib hcubature.o pcubature.o -o libcubature32-`grep '##' NEWS.md |head -n 1 |cut -d' ' -f3`.dylib
make clean
maintainer-clean:
make clean
rm -f clencurt.h
Computing file changes ...