I have the following makefile
PDP1 Makefile
FILE_EXT =
EXEC = …/xpdp1_Serial_semXG
CC = nvcc
CFLAGS= -O2 -DPDP1PATH="$(HOME)/versoes/
xpdp1_Serial_semXG/src"
LIBS = -L/usr/local/lib
PDP1OBJ= fft.o field.o move.o gather.o pdp1.o start.o load.o prest.o \
padjus.o initwin.o maxwellv.o xgreadrit.o xsect.o \
argonmcc.o heliummcc.o neonmcc.o oxygenmcc.o mcc.o
all: $(PDP1OBJ) $(EXEC)
.c.o: pdp1.h xsect.h xgscalar.h xgrafix.h
$(CC) -c $(CFLAGS) $*.c
$(EXEC): $(PDP1OBJ)
$(CC) -o $(EXEC) $(PDP1OBJ)
$(CC) -o $(EXEC) $(PDP1OBJ) $(LIBS)
clean:
@rm *.o
[b]
It is used to compile the following files:
[/b]
cotrim@optimus:~/versoes/
xpdp1_Serial_semXG1/src$ ls
argonmcc.c fft.o field.o heliummcc.c initwin.c load.c makefile~ makefile.linux mcc.c move.cu neon.tbl oxygenmcc.c pdp11.c pdp1.h prest.c start.c xgrafixint.h xgscalar.h xsect.h
fft.c field.c gather.c initwin11.c load(1).c makefile makefile11 maxwellv.c mccdiaginit.c neonmcc.c outtemp.dmp padjus.c pdp1.c piiia.inp start11.c xgrafix.h xgreadrit.c xsect.c
[b]
I have to use the language CUDA to parallelize one of them is that if move.cu and change this file for this extension. Cu the case the following error:[/b]
cotrim@optimus:~/versoes/xpdp1_Serial_semXG1/src$ make
nvcc -c -O2 -DPDP1PATH="/home/cotrim/versoes/xpdp1_Serial_semXG/src" fft.c
nvcc -c -O2 -DPDP1PATH="/home/cotrim/versoes/xpdp1_Serial_semXG/src" field.c
make: *** No rule to make target move.o ', needed by
all’. Stop it.
someone might have a solution?