Download your favorite Linux distribution at LQ ISO.
Go Back > Forums > Linux Forums > Linux - Newbie
User Name
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!


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

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

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

Below is

# 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

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)

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
$(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)

- mkdir $(BDIR) $(XDIR)

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

Last edited by totaljj; 11-23-2006 at 08:24 AM.
Old 11-23-2006, 11:40 AM   #2
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


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 11:54 AM
Does the mounting of a *BSD partition on linux work work well when rw ? kloss *BSD 3 10-08-2005 03:21 PM
Will Ubuntu Work work With my Wireless Card? PulsarSL Ubuntu 3 10-07-2005 11:33 PM
got ALSA to work in root, need help getting it to work in my user profile ic3 Slackware 2 11-28-2003 11:32 PM
FALCONS EYE (nethack) FAILS ON STARTUP, use to work, wont work even after reinstall roorings Linux - Software 0 10-08-2003 11:39 PM > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 02:53 AM.

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