Add Makefile-s in kernels and oclconv folders, not committed earlier due to gitignore
authorDjordje Senicic <d-senicic1@ti.com>
Sat, 27 Feb 2016 01:37:55 +0000 (20:37 -0500)
committerDjordje Senicic <d-senicic1@ti.com>
Sat, 27 Feb 2016 01:37:55 +0000 (20:37 -0500)
src/kernels/Makefile [new file with mode: 0644]
src/kernels/oclconv/Makefile [new file with mode: 0644]

diff --git a/src/kernels/Makefile b/src/kernels/Makefile
new file mode 100644 (file)
index 0000000..28a49e2
--- /dev/null
@@ -0,0 +1,33 @@
+.SILENT:
+
+MFS  = $(wildcard */Makefile)
+DIRS = $(patsubst %/Makefile,%,$(MFS))
+
+all:
+       for dir in $(DIRS); do \
+         echo "=============== " $$dir " =================" ; \
+         $(MAKE) -C $$dir; \
+       done
+
+test:
+       for dir in $(DIRS); do \
+         echo "=============== " $$dir " =================" ; \
+          $(MAKE) -C $$dir test; \
+        done
+
+cross:
+       for dir in $(DIRS); do \
+         echo "=============== " $$dir " =================" ; \
+          $(MAKE) -C $$dir cross; \
+        done
+
+clean:
+       for dir in $(DIRS); do \
+         $(MAKE) -C $$dir clean; \
+       done
+
+install:
+       for dir in $(DIRS); do \
+         $(MAKE) -C $$dir install; \
+       done
+
diff --git a/src/kernels/oclconv/Makefile b/src/kernels/oclconv/Makefile
new file mode 100644 (file)
index 0000000..e271670
--- /dev/null
@@ -0,0 +1,19 @@
+EXE         = liboclconv.so
+CPP_FLAGS   = -O3 -shared -fPIC -L.
+CLOCL_FLAGS = 
+include ../make.inc
+
+all: ${EXE}
+
+$(EXE): oclconv.o 
+       @$(CPP) $(CPP_FLAGS) oclconv.o $(LD_FLAGS) $(LIBS) -o $@
+
+oclconv.o: conv.dsp_h
+
+
+conv.dsp_h: conv.cl ${TI_IMGLIB_DIR}/lib/imglib.ae66 ${TI_VLIB_DIR}/packages/ti/vlib/lib/vlib.ae66
+       $(CLOCL) --txt $^
+
+install:
+         mkdir -p  ${DESTDIR}/usr/lib && install -m 755 ${EXE} ${DESTDIR}/usr/lib/.
+