Blame view

test/Makefile 817 Bytes
09c2d08c   Hu Chunming   arm交付版
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
  XX = g++
  
  
  SRC_ROOT = /home/cmhu/vpt_ascend/test
  
  TARGET= /home/cmhu/vpt_ascend/bin/test
  
  DEFS = -DENABLE_DVPP_INTERFACE
  
  include_dir=-I/usr/local/Ascend/ascend-toolkit/latest/runtime/include \
  
  lib_dir=-L/usr/local/Ascend/ascend-toolkit/latest/acllib/lib64 \
  		-L/usr/local/Ascend/ascend-toolkit/latest/runtime/lib64 \
  		
  lib=-lacl_dvpp -lascendcl -lacl_dvpp_mpi
  LIBS= 
  CXXFLAGS= -g -O0 -fPIC $(include_dir) $(lib_dir) $(lib) $(LIBS) $(DEFS) -lpthread -lrt -lz -fexceptions -std=c++11 -fvisibility=hidden -Wall -Wno-deprecated -Wdeprecated-declarations -Wl,-Bsymbolic -ldl
  
  
  
  SRCS:=$(wildcard $(SRC_ROOT)/*.cpp) \
  
  OBJS = $(patsubst %.cpp, %.o, $(notdir $(SRCS)))
  
  
  $(TARGET):$(OBJS)
  	rm -f $(TARGET)
  	$(XX) -o $@ $^ $(CXXFLAGS)
  	rm -f *.o
  
  %.o:$(SRC_ROOT)/%.cpp
  	$(XX) $(CXXFLAGS) -c $<
  
  clean:
  	rm -f *.o $(TARGET)