-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
38 lines (28 loc) · 926 Bytes
/
Makefile
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
36
37
38
include Makefile.inc
OBJ=clUtil.o clUtilKernel.o clUtilInit.o clUtilDevice.o
OBJ+=clUtilPlatform.o clUtilUtility.o clUtilDeviceHelpers.o clUtilMemory.o
OBJ+=clUtilParallelFor.o clUtilDeviceGroup.o
OBJ+=Scheduler/StaticScheduler.o Scheduler/EGSScheduler.o
#OBJ+=Scheduler/PINAScheduler.o
EXAMPLES=$(wildcard examples/*) #Every subdir in examples
#Directory containing OpenCL header files
LIB=
CPPFLAGS=-std=c++0x -I$(OpenCLInclude) $(USERFLAGS) -IInclude
libclUtil.a: $(OBJ)
$(AR) rcs libclUtil.a $(OBJ) $(LIB)
all: libclUtil.a
make examples
examples: libclUtil.a
for dir in $(EXAMPLES); do make -C $$dir; done
.cc.o:
$(CXX) -c $(CPPFLAGS) -o $@ $<
install: libclUtil.a
mkdir -p /usr/include/clutil
cp -Rf Include/* /usr/include/clutil
cp -f libclUtil.a /usr/lib
uninstall:
rm -Rf /usr/include/clutil
rm /usr/lib/libclUtil.a
clean:
-rm *.o libclUtil.a
for dir in $(EXAMPLES); do make -C $$dir clean; done