Sponsored Content
Full Discussion: Regarding Make Scripts
Top Forums UNIX for Dummies Questions & Answers Regarding Make Scripts Post 5492 by PxT on Wednesday 15th of August 2001 02:36:05 PM
Old 08-15-2001
Perhaps a more appropriate choice:
<A HREF="http://www1.fatbrain.com/asp/bookinfo/bookinfo.asp?theisbn=0937175900&vm="><IMG SRC="http://a1204.g.akamai.net/7/1204/1401/00082517011/images.barnesandnoble.com/images/1730000/1739327.gif" BORDER=1></A>


(This book focuses on Makefiles, and their uses, while the imake book focuses on creating portable software using the xmkmf/Imakefile tool.)
 

10 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

is there any way to make flat file from some of scripts ?

Hello is there any way to if lets say i have main.pl script , but i have 3 includes in this perl script now i will like to some how to treat this main.pl and its includes files as single file something like -E (Preprocess only; do not compile, assemble or link) in the c compilers . in short i... (0 Replies)
Discussion started by: umen
0 Replies

2. Shell Programming and Scripting

How to make the same change in multiple shell scripts?

I would like to make the same change in multiple shell script files and would like to know if anyone can be of some help? I would appreciate it. (4 Replies)
Discussion started by: rdakhan
4 Replies

3. Shell Programming and Scripting

How can I make running gawk scripts more user-friendly in a Windows environment?

I know, and I apologise for using the W word, but I have users asking if they can use my gawk scripts, but I just know they're not going to like using the DOS command line. Is there any way for me to run my gawk scripts from a gui? Even if it's from a web page (html, php, what ever). I do not... (3 Replies)
Discussion started by: jonathanm
3 Replies

4. Solaris

Gani Network Driver Won't Install - make: Fatal error: Don't know how to make targ...

I attached a README file that I will refer to. I successfully completed everything in the README file until step 4. # pwd /gani/gani-2.4.4 # ls COPYING Makefile.macros gem.c Makefile Makefile.sparc_gcc gem.h Makefile.amd64_gcc ... (1 Reply)
Discussion started by: Bradj47
1 Replies

5. Shell Programming and Scripting

Changing the Bash Scripts to Bourne Scripts:URGENT

Hi, I have to write a program to compute the checksums of files ./script.sh I wrote the program using bash and it took me forever since I am a beginner but it works very well. I'm getting so close to the deadline and I realised today that actually I have to use normal Bourne shell... (3 Replies)
Discussion started by: pgarg1989
3 Replies

6. UNIX for Advanced & Expert Users

How to make the variables of one script available for the other scripts?

Hello Everyone, I want to know how can we make the variables of one script available for the other script? for example i have three scripts variable_availability.sh,first.sh,second.sh and a file containing variables called common ---------------------------------- cat variable_availability.sh... (2 Replies)
Discussion started by: Kesavan
2 Replies

7. Shell Programming and Scripting

The scripts not able to make the file to size 0, every times it go back to its original size

#!/bin/sh ########################################################################################################## #This script is being used for AOK application for cleaning up the .out files and zip it under logs directory. # IBM # Created #For pdocap201/pdoca202 .out files for AOK #1.... (0 Replies)
Discussion started by: mridul10_crj
0 Replies

8. Shell Programming and Scripting

KSH - How to call different scripts from master scripts based on a column in an Oracle table

Dear Members, I have a table REQUESTS in Oracle which has an attribute REQUEST_ACTION. The entries in REQUEST_ACTION are like, ME, MD, ND, NE etc. I would like to create a script which will will call other scripts based on the request action. Can we directly read from the REQUEST_ACTION... (2 Replies)
Discussion started by: Yoodit
2 Replies

9. UNIX for Dummies Questions & Answers

Tips to make scripts install

Hi, I have a series of BASH shell scripts that I would like to package and distribute. I would like to make it as easy as possible users to install the package on their system. The only tasks that need to be performed for installation are 1) unzip the package, 2) modify the user's ~/.bashrc... (1 Reply)
Discussion started by: msb65
1 Replies

10. UNIX for Dummies Questions & Answers

Trying to make a script to run 3 other scripts in a screen.

Hello, my name is Spurkle. I'm new to linux stuff. Currently I am trying to make a script which will run three other scripts in screen. This is the code: sudo screen -S hubServ /var/servers/hub/hub.sh sudo screen -S facServh /var/servers/factions/factions.sh sudo screen -S bunServ... (5 Replies)
Discussion started by: Spurkle
5 Replies
imake(1X)																 imake(1X)

NAME
imake - C preprocessor interface to the make utility SYNOPSIS
imake [-Ddefine] [-Idir] [-Ttemplate] [-f filename] [-C filename] [-s filename] [-e] [-v] OPTIONS
The following command line options may be passed to imake: This option is passed directly to cpp. It is typically used to set directory- specific variables. For example, the X Window System uses this option to set TOPDIR to the name of the directory containing the top of the core distribution and CURDIR to the name of the current directory, relative to the top. This option is passed directly to cpp. It is typ- ically used to indicate the directory in which the imake template and configuration files may be found. This option specifies the name of the master template file (which is usually located in the directory specified with -I) used by cpp. The default is Imake.tmpl. This option specifies the name of the per-directory input file. The default is Imakefile. This option specifies the name of the file that is con- structed in the current directory. The default is Imakefile.c. This option specifies the name of the make description file to be gener- ated but make should not be invoked. If the filename is a dash (-), the output is written to stdout. The default is to generate, but not execute, a Makefile. This option indicates the imake should execute the generated Makefile. The default is to leave this to the user. This option indicates that imake should print the cpp command line that it is using to generate the Makefile. DESCRIPTION
Imake is used to generate Makefiles from a template, a set of cpp macro functions, and a per-directory input file called an Imakefile. This allows machine dependencies (such as compiler options, alternate command names, and special make rules) to be kept separate from the descriptions of the various items to be built. HOW IT WORKS
Imake invokes cpp with any -I or -D options passed on the command line and passes the name of a file containing the following 3 lines: #define IMAKE_TEMPLATE "Imake.tmpl" #define INCLUDE_IMAKEFILE <Imakefile> #include IMAKE_TEMPLATE where Imake.tmpl and Imakefile may be overridden by the -T and -f command options, respectively. The IMAKE_TEMPLATE typically reads in a file containing machine-dependent parameters (specified as cpp symbols), a site-specific parameters file, a file defining variables, a file containing cpp macro functions for generating make rules, and finally the Imakefile (specified by INCLUDE_IMAKEFILE) in the current directory. The Imakefile uses the macro functions to indicate what targets should be built; imake takes care of generating the appropriate rules. Imake configuration files contain two types of variables, imake variables and make variables. The imake variables are interpreted by cpp when imake is run. By convention they are mixed case. The make variables are written into the Makefile for later interpretation by make. By convention make variables are upper case. The rules file (usually named Imake.rules in the configuration directory) contains a variety of cpp macro functions that are configured according to the current platform. Imake replaces any occurrences of the string "@@" with a newline to allow macros that generate more than one line of make rules. For example, the macro #define program_target(program, objlist) @@ program: objlist @@ $(CC) -o $@ objlist $(LDFLAGS) when called with program_target(foo, foo1.o foo2.o) will expand to foo: foo1.o foo2.o $(CC) -o $@ foo1.o foo2.o $(LDFLAGS) Imake also replaces any occurrences of the word "XCOMM" with the character "#" to permit placing comments in the Makefile without causing "invalid directive" errors from the preprocessor. Some complex imake macros require generated make variables local to each invocation of the macro, often because their value depends on parameters passed to the macro. Such variables can be created by using an imake variable of the form XVARdefn, where n is a single digit. A unique make variable will be substituted. Later occurrences of the variable XVARusen will be replaced by the variable created by the cor- responding XVARdefn. On systems whose cpp reduces multiple tabs and spaces to a single space, imake attempts to put back any necessary tabs (make is very picky about the difference between tabs and spaces). For this reason, colons (:) in command lines must be preceded by a backslash (). USE WITH THE X WINDOW SYSTEM
The X Window System uses imake extensively, for both full builds within the source tree and external software. As mentioned above, two special variables, TOPDIR and CURDIR, are set to make referencing files using relative path names easier. For example, the following com- mand is generated automatically to build the Makefile in the directory lib/X/ (relative to the top of the sources): % ../.././config/imake -I../.././config -DTOPDIR=../../. -DCURDIR=./lib/X When building X programs outside the source tree, a special symbol UseInstalled is defined and TOPDIR and CURDIR are omitted. If the con- figuration files have been properly installed, the xmkmf script may be used. INPUT FILES
Here is a summary of the files read by imake as used by X. The indentation shows what files include what other files. Imake.tmpl generic variables site.def site-specific, BeforeVendorCF defined *.cf machine-specific *Lib.rules shared library rules site.def site-specific, AfterVendorCF defined Imake.rules rules Project.tmpl X-specific variables *Lib.tmpl shared library variables Imakefile Library.tmpl library rules Server.tmpl server rules Threads.tmpl multi-threaded rules Note that site.def gets included twice, once before the *.cf file and once after. Although most site customizations should be specified after the *.cf file, some, such as the choice of compiler, need to be specified before, because other variable settings may depend on them. The first time site.def is included, the variable BeforeVendorCF is defined, and the second time, the variable AfterVendorCF is defined. All code in site.def should be inside an #ifdef for one of these symbols. ENVIRONMENT VARIABLES
The following environment variables may be set, however their use is not recommended as they introduce dependencies that are not readily apparent when imake is run: If defined, this should be a valid include argument for the C preprocessor. E.g., "-I/usr/include/local". Actually, any valid cpp argument will work here. If defined, this should be a valid path to a preprocessor program. E.g., "/usr/local/cpp". By default, imake will use /lib/cpp. If defined, this should be a valid path to a make program, such as "/usr/local/make". By default, imake will use whatever make program is found using execvp(2). This variable is only used if the "-e" option is specified. FILES
Temporary input file for cpp Temporary Makefile for -s" Temporary Imakefile if specified Imakefile uses # comments Default C preprocessor SEE ALSO
make(1), xmkmf(1X) S. I. Feldman, Make -- A Program for Maintaining Computer Programs AUTHOR
Todd Brunhoff, Tektronix and MIT Project Athena; Jim Fulton, MIT X Consortium imake(1X)
All times are GMT -4. The time now is 12:51 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy