-
Notifications
You must be signed in to change notification settings - Fork 8
/
Makefile.am
27 lines (23 loc) · 1.24 KB
/
Makefile.am
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
AUTOMAKE_OPTIONS = foreign
bin_PROGRAMS = cudaica
SRC=src
INCLUDE=-Iinclude/ -Ilib/include
R250_sources=lib/r250/r250.c lib/r250/randlcg.c
Python_sources=python/Makefile.in python/bindings.c python/setup.py
STATICLIBS=$(R250)
EXTRALIBS=lib/
EXTRA_DIST=cudaica.c $(R250_sources) lib/r250/Makefile COPYING matlab/cudaica.m $(Python_sources)
SRCINCLUDE=include/
noinst_HEADERS = $(SRCINCLUDE)/config.h $(SRCINCLUDE)/whitening.h $(SRCINCLUDE)/device.h $(SRCINCLUDE)/loader.h $(SRCINCLUDE)/centering.h $(SRCINCLUDE)/error.h $(SRCINCLUDE)/common.h $(SRCINCLUDE)/infomax.h $(SRCINCLUDE)/postprocess.h lib/include/r250.h lib/include/randlcg.h $(SRCINCLUDE)/cblas.h $(SRCINCLUDE)/preprocess.h
cudaica_SOURCES = $(SRC)/whitening.cu $(SRC)/device.cu $(SRC)/loader.cu $(SRC)/config.cu $(SRC)/centering.cu $(SRC)/error.cu $(SRC)/common.cu $(SRC)/infomax.cu $(SRC)/postprocess.cu
cudaica_LDADD =
SUFFIXES=.cu
.cu.o:
$(NVCC) $(NVCCFLAGS) $(INCLUDE) -c -o $@ $<
cudaica$(EXEEXT): cudaica.c $(cudaica_OBJECTS) $(STATICLIBS)
$(NVCC) $(NVCCFLAGS) $(INCLUDE) $(LAPACK_LIBS) $(BLAS_LIBS) $(LIBS) $(FLIBS) $(CUDA_LIBS) -o $@ $^
$(R250): $(R250_sources)
cd lib/r250/ && make $(R250_target)
dist-hook:
echo "echo $(shell ./evalrev) " > $(distdir)/evalrev
chmod +x $(distdir)/evalrev