Based on the above tutorial I created this Makefile
It works, but it's not using the compiler flags to speedup the code. I realisz that the problem is that the flags are in the wrong place, they should be before the .o files are created. I guess I shall put them in the CFLAGS? I read somewhere that since the CFLAGS are made to be adjusted by the end-user, it's a bad practice to set them in the Makefile. If that is the case, where should I put the compiler flags?
Besides that, I do not comprehend the purpose of "-I". The tutorial says
Quote:
The -I. is included so that gcc will look in the current directory (.) for the include file hellomake.h.
. But doesn't always gcc looks in the current directory for .h files? As far as I know, it's the double "" around a .h file that makes gcc look in the current directory for the file, if it was <>, it would look for them in the global directories like /usr/include.
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)
I have 2 libraries in 2 different directories that I build with Makefiles.
library B depends on library A. If I modify a .cpp file in library A and run lib B's Makefile can I have B's makefile to automatically rebuild library A?
I am now rebuilding A, followed by B... but I'd like B to... (0 Replies)
Hello guys !
Need a bit of help is compiling a code, the makefile for which was originally designed to work on a 32-bit Linux platform, for a 64-bit Linux platform.
My platform is Ubuntu 10.04 LTS 64-bit. I am trying to compile a code called csim, file name csim-1.1.tar.gz. To compile this... (0 Replies)
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)
Hello,
I am attempting to build gcc 4.0.4 on my Mac (OS X). When I use the "make" command, it returns with something like this:
Makefile:6089: *** missing separator. Stop.
This means that at the given line, I must go into the file and insert a TAB before the contents of that line. I have... (1 Reply)
Hello All,
I have a file, but I want to separate the file at a particular record with comma"," in the line
Input file
APPLE6SSAMSUNGS5PRICEPERPIECEDOLLAR600EACH010020340URX581949695US
to
Output file
APPLE6S,SAMSUNGS5,PRICEPERPIECE,DOLLAR600EACH,010020340URX581949695,US
This is for... (11 Replies)
Hello everybody, I'll get one more help
I have a cabundle file that I need to separate into 2 parts, the first sequence and the second sequence, I thought of several things but I did not remember anything that could actually accomplish this separation and transform into 2 variables, first... (4 Replies)
Discussion started by: c0i0t3
4 Replies
LEARN ABOUT REDHAT
autoconf
AUTOCONF(1) User Commands AUTOCONF(1)NAME
autoconf - Generate configuration scripts
SYNOPSIS
autoconf [OPTION] ... [TEMPLATE-FILE]
DESCRIPTION
Generate a configuration script from a TEMPLATE-FILE if given, or `configure.ac' if present, or else `configure.in'. Output is sent to the
standard output if TEMPLATE-FILE is given, else into `configure'.
Operation modes:
-h, --help
print this help, then exit
-V, --version
print version number, then exit
-v, --verbose
verbosely report processing
-d, --debug
don't remove temporary files
-f, --force
consider all files obsolete
-o, --output=FILE
save output in FILE (stdout is the default)
-W, --warnings=CATEGORY
report the warnings falling in CATEGORY [syntax]
Warning categories include:
`cross'
cross compilation issues
`obsolete'
obsolete constructs
`syntax'
dubious syntactic constructs
`all' all the warnings
`no-CATEGORY'
turn off the warnings on CATEGORY
`none' turn off all the warnings
`error'
warnings are error
The environment variable `WARNINGS' is honored.
Library directories:
-B, --prepend-include=DIR
prepend directory DIR to search path
-I, --include=DIR
append directory DIR to search path
Tracing:
-t, --trace=MACRO
report the list of calls to MACRO
-i, --initialization
also trace Autoconf's initialization process
In tracing mode, no configuration script is created.
AUTHOR
Written by David J. MacKenzie and Akim Demaille.
Copyright 2002 Free Software Foundation, Inc. This is free software; see the source for copying conditions. There is NO warranty; not
even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
REPORTING BUGS
Report bugs to <bug-autoconf@gnu.org>.
SEE ALSO autoconf(1), automake(1), autoreconf(1), autoupdate(1), autoheader(1), autoscan(1), config.guess(1), config.sub(1), ifnames(1), libtool(1).
The full documentation for autoconf is maintained as a Texinfo manual. If the info and autoconf programs are properly installed at your
site, the command
info autoconf
should give you access to the complete manual.
autoconf 2.57 December 2002 AUTOCONF(1)