The echo commands are not your problem. There is a huge difference between:
and:
The first says that $(mn)/getvel_main.cpp is a dependency that has to be brought up-to-date before test can be built. The second says that the command $(mn)/getvel_main.cpp must be executed as the first step to create test.
The errors you are seeing are from trying to execute $(mn)/getvel_main.cpp.
These 2 Users Gave Thanks to Don Cragun For This Post:
Hi, i have am make file problem too. It is driving me mad!
My make file is:
Code:
program : main.o a.o b.o
cc -o program main.o a.o b.o
main.o : main.c
cc -c main.c
a.o : a.c
cc -c a.c
b.o : b.c
cc -c b.c
When I run it i just get the following error... (2 Replies)
Hi,
I am trying to make 2 programs using a makefile..
1. gcc aaa.c -o aaa -lrt
2. gcc bbb.c -o bbb -lrt
The makefile for the same has been done as follows....
Show Recent Messages (F3)
CC=gcc
CFLAGS=-g
all: aaa bbb
aaa: aaa.o
$(CC) $(CFLAGS) -o $@ aaa.o (2 Replies)
Hi
When i am compile the makefile i am getting this error.
make: Fatal error in reader: Makefile, line 25: Extra `:', `::', or `:=' on dependency line
Following Content is the makefile.
HDR_INSTALL = CommonDb.h rpts.h rptslogfmts.h
CCFLAGS+= -g -v
BINDIR = $(INSTALLROOT)/bin... (0 Replies)
helo when i compling my project from the commandline using
Make file
make all i got the following error
make all
/usr/bin/gcc -DNDEBUG -O0 -finline-functions -fmerge-constants -fmove-all-movables -fno-omit-frame-pointer -I../../lsapi -c -o lsapitest.o lsapitest.c
g++ lsapitest.o... (2 Replies)
Hi,
I am getting the follwing error while i was running the shell script to make the build.
make: Fatal error in reader: Makefile.Solaris_2.6, line 157: Unexpected end of
line seen .
May i knwo what does this mean.The line 157 has the last file that is supposed to be copied from the... (2 Replies)
Hi, I'm trying to run the module load command in a Makefile and i'm getting the following error:
make: module: command not found
Why is this? Is there any way to run this command in a Makefile?
NOTE: command - module load msjava/sunjdk/1.5.0 works fine outside of the Makefile (2 Replies)
Hi,
I had created makefile to compile and create .exe file.
but while executing makefile i am receiving following error
I can create obj and lib files but not able to create executeable file due to following error.
0711-317 Error: undefined symbol: .fn_error(......)
0711-345 use the... (2 Replies)
I am able to 'Make' some of projects's modules using GNU's make except one where it throws me the following error
gmake -f Makefile
/bin/sh: syntax error at line 1: `if' unexpected
gmake: *** Error 2
I am sure it has nothing to do with the Makefile as there is no 'if' in the first... (1 Reply)
Use and complete the template provided. The entire template must be completed. If you don't, your post may be deleted!
1. The problem statement, all variables and given/known data:
Basically, the prompt is make a makefile with various sub makefiles in their respective subdirectories. All code... (1 Reply)
Discussion started by: Tatl
1 Replies
LEARN ABOUT PLAN9
cpp
CPP(1) General Commands Manual CPP(1)NAME
cpp - C language preprocessor
SYNOPSIS
cpp [ option ... ] [ ifile [ ofile ] ]
DESCRIPTION
Cpp interprets ANSI C preprocessor directives and does macro substitution. The input ifile and output ofile default to standard input and
standard output respectively.
The options are:
-Dname
-Dname=def
-Idir Same as in 2c(1).
-M Generate no output except a list of include files in a form suitable for specifying dependencies to mk(1). Use twice to list files
in angle brackets.
-N Turn off default include directories. All must be specified with -I. Without this option, /$objtype/include and /sys/include are
used as the last two searched directories for include directives, where $objtype is read from the environment.
-V Print extra debugging information.
-+ Understand C++ comments.
The output file contains processed text sprinkled with lines that show the original input line numbering:
#line linenumber "ifile"
The input language is as described in the ANSI C standard. The C compilers do not use cpp; they contain their own simple but adequate pre-
processor, so cpp is usually superfluous.
FILES
/sys/include
directory for machine-independent include files
/$objtype/include
directory for machine-dependent include files
SOURCE
/sys/src/cmd/cpp
SEE ALSO 2c(1)CPP(1)