File: Makefile

package info (click to toggle)
cminpack 1.3.11-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 3,528 kB
  • sloc: ansic: 11,704; fortran: 5,648; makefile: 429; f90: 354; sh: 10
file content (22 lines) | stat: -rw-r--r-- 489 bytes parent folder | download | duplicates (6)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
CC=nvcc
CFLAGS= --compile  -I..

SOURCES = $(wildcard *.cu)
OBJECTS = $(SOURCES:.cu=.o)

all: libcuminpack.a

libcuminpack.a:  $(OBJECTS)
	@echo " **************************** "
	@echo " making compiling and library for testing "
	@echo " (cuda needs __device__ source code compiled inline with kernel) "
	@echo " **************************** "
	ar r $@ $(OBJECTS); ranlib $@

%.o: %.cu
	@echo " compiling for testing "
	${CC} ${CFLAGS}  -o $@ $<

clean:
	rm -f *.o libcuminpack.a *~ #*#