Skip to content

Commit 39a68cc

Browse files
JeroenMulkersgodsic
authored andcommitted
Ship LICENSE
+ small corrections to Makefile
1 parent 0550a63 commit 39a68cc

File tree

3 files changed

+7
-4
lines changed

3 files changed

+7
-4
lines changed

Makefile

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,6 @@ CGO_CFLAGS_ALLOW='(-fno-schedule-insns|-malign-double|-ffast-math)'
1313

1414
all: cudakernels hooks
1515
go install -v $(GO_BUILDFLAGS) github.com/mumax/3/...
16-
cd test && mumax3 -vet *.mx3
1716

1817
cudakernels:
1918
cd cuda && $(MAKE)
@@ -40,4 +39,4 @@ clean:
4039
cd cuda && $(MAKE) clean
4140

4241
realclean: clean
43-
cd cuda && make realclean
42+
cd cuda && ${MAKE} realclean

deploy/deploy_linux.bash

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -39,13 +39,16 @@ for CUDAVERSION in 7.0 7.5 8.0 9.0 9.1 9.2 10.0 10.1 10.2; do
3939
# We overwrite the CGO Flags to make sure that it is compiled against $CUDAVERSION
4040
export LD_LIBRARY_PATH=$CUDA_HOME/lib64:$LD_LIBRARY_PATH
4141
export CGO_LDFLAGS="-lcufft -lcurand -lcuda -L${CUDA_HOME}/lib64 -Wl,-rpath -Wl,\$ORIGIN/$RPATH"
42-
export CGO_CFLAGS="-I${CUDA_HOME}/include -Wl,-rpath -Wl,\$ORIGIN/$RPATH"
42+
export CGO_CFLAGS="-I${CUDA_HOME}/include"
4343

4444
# (Re)build everything
4545
(cd .. && make realclean && make -j 4 || exit 1)
4646

4747
# Copy the executable and the cuda libraries to the output directory
48-
cp $GOPATH/bin/mumax3* $BUILDDIR
48+
cp $GOPATH/bin/mumax3 $BUILDDIR
49+
cp $GOPATH/bin/mumax3-convert $BUILDDIR
50+
cp $GOPATH/bin/mumax3-server $BUILDDIR
51+
cp ../LICENSE $BUILDDIR
4952
cp $( ldd ${BUILDDIR}/mumax3 | grep libcufft | awk '{print $3}' ) ${BUILDDIR}/${RPATH}
5053
cp $( ldd ${BUILDDIR}/mumax3 | grep libcurand | awk '{print $3}' ) ${BUILDDIR}/${RPATH}
5154

deploy/deploy_windows.ps1

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -73,5 +73,6 @@ New-Item -ItemType "directory" $builddir
7373
Copy-Item ${env:GOPATH}/bin/mumax3.exe -Destination ${builddir}
7474
Copy-Item ${env:GOPATH}/bin/mumax3-convert.exe -Destination ${builddir}
7575
Copy-Item ${env:GOPATH}/bin/mumax3-server.exe -Destination ${builddir}
76+
Copy-Item ../LICENSE -Destination ${builddir}
7677
Copy-Item ${CUDA_HOME}/bin/cufft64*.dll -Destination ${builddir}
7778
Copy-Item ${CUDA_HOME}/bin/curand64*.dll -Destination ${builddir}

0 commit comments

Comments
 (0)