]> git.proxmox.com Git - ceph.git/blob - ceph/src/boost/libs/fiber/examples/hip/Makefile
update sources to v12.2.3
[ceph.git] / ceph / src / boost / libs / fiber / examples / hip / Makefile
1 HIP_PATH := /opt/rocm/hip
2
3 HIPCC := $(HIP_PATH)/bin/hipcc
4
5 CPPFLAGS := -O2 -std=c++11
6 LDFLAGS := -L/usr/local/lib
7 INCLUDES := -I/usr/local/include -I$(HIP_PATH)/include
8 LIBRARIES := -lboost_fiber -lboost_context -lboost_system -lboost_filesystem
9
10 all: build
11
12 build: single_stream multiple_streams
13
14 single_stream.o:single_stream.cpp
15 $(HIPCC) $(INCLUDES) $(CPPFLAGS) -o $@ -c $<
16
17 single_stream: single_stream.o
18 $(HIPCC) $(LDFLAGS) -o $@ $+ $(LIBRARIES)
19
20 multiple_streams.o:multiple_streams.cpp
21 $(HIPCC) $(INCLUDES) $(CPPFLAGS) -o $@ -c $<
22
23 multiple_streams: multiple_streams.o
24 $(HIPCC) $(LDFLAGS) -o $@ $+ $(LIBRARIES)
25
26 clean:
27 rm -f single_stream single_stream.o multiple_streams multiple_streams.o
28
29 clobber: clean