blob: 241f2f75574b93876cc2afc2434cf940ab0c1e38 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
|
diff --git a/Makefile b/Makefile
index f2aec72..790f2c8 100644
--- a/Makefile
+++ b/Makefile
@@ -34,7 +34,7 @@ endif
.FORCE:
buildFFVSHIP: src/FFVship.cpp .FORCE
- clang++ src/FFVship.cpp -g -std=c++17 -Wall -O3 $(ffvshipincludeheader) -L ./ $(ffvshiplibheader) -o FFVship$(exeend)
+ clang++ src/FFVship.cpp -g -std=c++17 -Wall $(CXXFLAGS) $(LDFLAGS) $(ffvshipincludeheader) -L ./ $(ffvshiplibheader) -o FFVship$(exeend)
build: src/VshipLib.cpp .FORCE
hipcc src/VshipLib.cpp -g -std=c++17 -Wall -Wno-ignored-attributes -I "$(current_dir)include" --offload-arch=native -shared $(fpicamd) -o "$(current_dir)libvship$(dllend)"
@@ -46,7 +46,7 @@ buildcudaall: src/VshipLib.cpp .FORCE
nvcc -x cu src/VshipLib.cpp -g -std=c++17 -I "$(current_dir)include" $(fatbincompresscuda) -arch=all -shared $(fpiccuda) -o "$(current_dir)libvship$(dllend)"
buildall: src/VshipLib.cpp .FORCE
- hipcc src/VshipLib.cpp -g -std=c++17 -Wall -Wno-ignored-attributes -I "$(current_dir)include" $(fatbincompressamd) --offload-arch=$(HIPARCH) -shared $(fpicamd) -o "$(current_dir)libvship$(dllend)"
+ hipcc src/VshipLib.cpp -g -std=c++17 -Wall -Wno-ignored-attributes $(LDFLAGS) -I "$(current_dir)include" $(fatbincompressamd) --offload-arch=$(HIPARCH) -shared $(fpicamd) -o "$(current_dir)libvship$(dllend)"
ifeq ($(OS),Windows_NT)
install:
|