LinuxQuestions.org
Latest LQ Deal: Linux Power User Bundle
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 11-23-2006, 07:22 AM   #1
totaljj
LQ Newbie
 
Registered: Nov 2006
Posts: 6

Rep: Reputation: 0
no rule to make target using aimk


when I do
aimk
I get below.
making in LINUX/ for LINUX
make: *** No rule to make target `$@.o', needed by `master'. Stop.


Below is
Makefile.aimk



# makefile for compiling the PVM example for GAlib
# Copyright (c) 1995-1996 Massachusetts Institute of Technology
# mbwall 5dec95
#
# This makefile is designed to be used with aimk (that comes with pvm3). You
# should set the PVM_ROOT and PVM_ARCH environment variables as described in
# the PVM documentation. For our configuration, I have set them like this:
#
# setenv PVM_ROOT= /usr/local/pvm3
# setenv PVM_ARCH= `$PVM_ROOT/lib/pvmgetarch`
#
# (I do this in my .cshrc file) Your mileage may vary. You can 'hardcode'
# the directories here in the makefile if you like, but then you won't be able
# to compile on different architectures without changing this file. XDIR is
# the location of your PVM binaries. Do a simple 'aimk' first, then, if
# everything went OK, do 'aimk install' and that will move the binaries to your
# PVM executables directory. When you use aimk it will create a subdirectory
# in the current directory for each architecture on which you try to compile.

SDIR= ..
BDIR= $(HOME)/pvm3/bin
XDIR= $(BDIR)/$(PVM_ARCH)
VPATH= $(SDIR)

CC_INC_DIR=/usr/include/CC
INC_DIRS= -I$(SDIR)/. -I$(SDIR)/../.. -I${PVM_ROOT}/include
LIB_DIRS= -L$(SDIR)/. -L$(SDIR)/../../ga -L${PVM_ROOT}/lib/${PVM_ARCH}
LIBS= -lpvm3 -lga -lm

CCFLAGS= +w +pp -O -g $(INC_DIRS)
C++C= DCC

SRCS= master.C slave.C genome.C

all: master slave

master.o: $(SDIR)/master.C
$(C++C) $(CCFLAGS) -c $(SDIR)/master.C
slave.o: $(SDIR)/slave.C
$(C++C) $(CCFLAGS) -c $(SDIR)/slave.C
genome.o: $(SDIR)/genome.C
$(C++C) $(CCFLAGS) -c $(SDIR)/genome.C
PVMDemeGA.o: $(SDIR)/PVMDemeGA.C
$(C++C) $(CCFLAGS) -c $(SDIR)/PVMDemeGA.C

master: $$@.o genome.o PVMDemeGA.o
$(C++C) $@.o genome.o PVMDemeGA.o -o $@ $(LIB_DIRS) $(LIBS)

slave: $$@.o genome.o
$(C++C) $@.o genome.o -o $@ $(LIB_DIRS) $(LIBS)

install: master slave $(XDIR)
mv master slave $(XDIR)

$(XDIR):
- mkdir $(BDIR) $(XDIR)

clean:
rm -rf *~ *.bak *.out *.o core master slave ii_files

Last edited by totaljj; 11-23-2006 at 07:24 AM.
 
Old 11-23-2006, 10:40 AM   #2
rednuht
Member
 
Registered: Aug 2005
Posts: 239
Blog Entries: 1

Rep: Reputation: 31
what did you set
# setenv PVM_ROOT= /usr/local/pvm3
# setenv PVM_ARCH= `$PVM_ROOT/lib/pvmgetarch`
to ?
what distro are you using ?
sometimes setenv is export
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
NFS doesn't work work well with mounted NTFS volumes? StevenO Linux - Networking 6 02-13-2006 10:54 AM
Does the mounting of a *BSD partition on linux work work well when rw ? kloss *BSD 3 10-08-2005 02:21 PM
Will Ubuntu Work work With my Wireless Card? PulsarSL Ubuntu 3 10-07-2005 10:33 PM
got ALSA to work in root, need help getting it to work in my user profile ic3 Slackware 2 11-28-2003 10:32 PM
FALCONS EYE (nethack) FAILS ON STARTUP, use to work, wont work even after reinstall roorings Linux - Software 0 10-08-2003 10:39 PM


All times are GMT -5. The time now is 12:39 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration