Skip to content

Commit

Permalink
fixed cross-compile targets
Browse files Browse the repository at this point in the history
  • Loading branch information
stevengj committed Jul 20, 2017
1 parent 164188e commit a61dd32
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -26,28 +26,28 @@ dll32:
make clean
i586-mingw32msvc-gcc -c -O3 hcubature.c
i586-mingw32msvc-gcc -c -O3 pcubature.c
i586-mingw32msvc-gcc -shared -o libcubature32-`head -n 1 NEWS | cut -d' ' -f2`.dll hcubature.o pcubature.o
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-`head -n 1 NEWS | cut -d' ' -f2`.dll hcubature.o pcubature.o
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-`head -n 1 NEWS | cut -d' ' -f2`.dylib
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-`head -n 1 NEWS | cut -d' ' -f2-`.dylib
gcc -m32 -dynamiclib hcubature.o pcubature.o -o libcubature32-`grep '##' NEWS.md |head -n 1 |cut -d' ' -f3`.dylib
make clean

maintainer-clean:
Expand Down

0 comments on commit a61dd32

Please sign in to comment.