02-07-2014
Your makefile has the rule tsimplex_main.o : $(MAINDIR)/tsimplex_main.cpp but tsimplex_main.cpp is either missing or not where the makefile expected it to be. make's usual reaction when it can't find a file is to try and create it, but it has no rule to make a .cpp file from scratch, so it quits.
10 More Discussions You Might Find Interesting
1. UNIX for Dummies Questions & Answers
Hi,
This stems from the following thread https://www.unix.com/showthread.php?t=18299
I have a makefile which makes either executables or a shared library.
i.e. make -f unix.mak will create the executables and
make -f unix.mak libolsv will create the shared library.
Since these have to be... (4 Replies)
Discussion started by: vino
4 Replies
2. Solaris
Hi,
I am getting the following error while building on Solaris 64 , while I am trying to build.
Error Snippet :-
----------------------
Makefile:57: *** multiple target patterns. Stop.
make: Leaving directory `/work1/patch/vds6053sun64o/vobs/jvi'
make: *** Error 2
make: Leaving directory... (0 Replies)
Discussion started by: nileshborate
0 Replies
3. Shell Programming and Scripting
Hello,
I'm having a problem with a makefile script i'm trying to write.
I want to compile a C++ program in two possible ways: "make"
(default target, main) and "make debug". When i supply the debug
target, exactly the same as main should be built, but then with the
DEBUG flag (-g -D... (2 Replies)
Discussion started by: StevenR
2 Replies
4. Programming
Greetings!
Basically, I would like to properly handle this with gnu make:
alltools: my_tool mysecond_tool mythird_tool etc_tool
%_tool: dir1/%_tool.vf dir2/%_tool/subdir2/%_tool.ver
<tab>@echo done
%.vf:
<tab>RUN_VF $*
%.ver:
<tab>RUN_VER $*
So, if I were to do something like:... (0 Replies)
Discussion started by: Harlinator
0 Replies
5. Shell Programming and Scripting
I can't seem to get a rule in my Makefile to ever run... even if I change the rule to force make to re-enter the rule, or if I change the dependent files the rule depends on. Any ideas why the second rule is being ignored here?
#MAKEFILES = $(DIRS:%=$(ROOT)/%/Makefile)
#$(MAKEFILES):... (0 Replies)
Discussion started by: foureightyeast
0 Replies
6. Programming
hello all,
attached you can find a tool (written in C) that i really need to make it compile under linux
i am able to compile and run it successfully in mac os x, but in linux the compilation fails
the only thing that i did so far is to change the following
#include <sys/malloc.h> to... (13 Replies)
Discussion started by: OneDreamCloser
13 Replies
7. Programming
I have been trying to split up my src directory to clear out files that are not re-compiled very often. Now I have the following setup in my trunk,
trunk/bld
trunk/src/
trunk/src/src_server
trunk/makefile.linux
In the make file, I have compile rules
SOURCELOC = src
# compile src c++... (4 Replies)
Discussion started by: LMHmedchem
4 Replies
8. Shell Programming and Scripting
Goal: I'm trying to create a PHONY target inside my Makefile so that when I run the command "make backup",
It will move all the files that end in "~" into the specified backup folder.
Here is my code currently, and I'll explain the problem after:
.PHONY: backup
backup:
@mkdir -p... (2 Replies)
Discussion started by: Xploit
2 Replies
9. UNIX for Dummies Questions & Answers
Hi everybody,
I have a Makefile where a single suffix rule is defined:
.SUFFIXES: .cpp
.cpp.o:
${CXX} ${CXXFLAGS} -c -o $@ $<
And I'd like to create another where an additional flag is added to compile in SMP. Right now, I have to do it like this:
interface-smp.o:... (2 Replies)
Discussion started by: Zel2008
2 Replies
10. Shell Programming and Scripting
Hi all,
I want to know the entry point (default rule to be executed) in a makefile once all defined variables are evaluated. I do not have all: in my makefile and I give
"make" without any parameter in command line.
thanks........ (3 Replies)
Discussion started by: useless79
3 Replies
LEARN ABOUT DEBIAN
wml::mod::makemaker
wml::mod::MakeMaker(3) EN Tools wml::mod::MakeMaker(3)
NAME
wml::mod::MakeMaker - A Makefile generator
SYNOPSIS
#!wml -o Makefile
#use wml::mod::MakeMaker
<write-makefile [attributes]>
DESCRIPTION
This include file provides an easy way to write a Makefile to distribute your own WML modules. It is inspired by the "ExtUtils::MakeMaker"
Perl module.
Default targets
make all
This is the default target. It will build all include files and their documentation.
make install
Install include files and documentation in the locations given by ``wml -V2''.
make clean
Remove files generated by make.
make distclean
Like make clean, plus remove the Makefile too.
make dist
Build a distribution. Should only be used by the module maintainer. If there is a MANIFEST file, then the list of files to include is
taken from this file. Otherwise the tarball contains all source files, plus MakeMaker.wml, Makefile.wml, shtool and README if these
files exist.
Overriding default targets
To build the Makefile, all targets are put in separate buffers during pass 3, and those buffers are diverted by pass 5. You can override
this defaukt target by redefining buffer contents. Buffer names are explicit:
MK_ALL MK_INSTALL MK_CLEAN MK_DISTCLEAN MK_CONFIG MK_RELEASE
Defining new targets
The MK_USER is empty and devoted to this task.
ATTRIBUTES
The first three attributes are mandatory.
package
The name of the package
version
Its version number
modules
List of modules to build and install. This is a space separated list of filenames. Modules should reside in a sub-directory to be
compliant with actual file hierarchy. For instance, the declaration
modules="math/log.tmpl math/exp.tmpl"
tells that after compilation, there are two modules which are "math/log.tmpl" and "math/exp.tmpl". This modules will be installed to
"LibDir/include/math/log.tmpl" and "LibDir/include/math/exp.tmpl".
These modules will then be called in a WML file by
#use tmpl::math::log
#use tmpl::math::exp
Source files for these modules are obtained by replacing the suffix by .src.
src-ext
Defines an alternate suffix for the source files.
man-ext
Section number of the manual in which man files are put. Default is 3.
extradistfiles
Space separated list of files to include in a distribution. By default, all source files plus MakeMaker.wml, Makefile.wml, README and
shtool are included in a distribution.
EXAMPLE
<write-makefile
package="log"
version="3.14"
modules="math/log.tmpl"
source-ext="exp"
>
This will build the tmpl::math::log include module from the math/log.exp source file. This source file will also produce the
tmpl::math::log(3) manpage.
NOTES
Please do _not_ use a ".wml" suffix for your modules, they should be reserved for official WML modules shipped with WML. You may instead
put your initials or anything else.
AUTHOR
Denis Barbier
barbier@engelschall.com
REQUIRES
Internal: P1, P2, P3, P5
External: --
EN Tools 2014-04-16 wml::mod::MakeMaker(3)