10-28-2005
makefiles in a directory and subdirectories
I need to develop a makefile that spans across directories. For example, let's say i have an upper level directory (main) and about 2 subdirectories. I want my .cpp files and .o files to be in one subdirectory. I want my .a files to be in the other subdirectory. The .a files are made up of the .o files in the other subdirectory. Does anyone know how to do the makefiles for this? I can have a makefile at each subdirectory and then one in the upper level directory. I would like to use VPATH for this is possible. Sorry if this is confusing, I am rather new to Linux. Thanks
10 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
I cant remember how, i use to know but its been like 2 years since ive used shell can anyone help me? (7 Replies)
Discussion started by: kprescod4158
7 Replies
2. Shell Programming and Scripting
Hello my friends,
I need to write a simple shell bad file :D that search and delete a file it's name 'Microsoft.txt' in the current directory and its subdirectories?
So can you help to guide me how i can write this shell, Just give me the beginning :o thank you. (1 Reply)
Discussion started by: Net-Man
1 Replies
3. UNIX for Dummies Questions & Answers
I'm trying to remove several directories which contains sun-dirs and files inside.
I used the command rm -r <dirname>
But, it always ask "examine file in directory <dirname> yes/no?" line by line.
So, i need to write "y" for every line.
How can i skip this step and remove all directories with... (9 Replies)
Discussion started by: ppa108
9 Replies
4. UNIX for Dummies Questions & Answers
Hi,
I have a filename Location.txt in a directory /abc.
Similar name file is present in its subdirectory /abc/xyz.
I want to find the file which is present only in /abc and not in /abc/xyz.
Please any1 of u can provide a quick suggestion.
Its very urgent.
Thanks,
Amol (2 Replies)
Discussion started by: Amol_Dicholkar
2 Replies
5. Shell Programming and Scripting
Hello dear Community,
I have a task to wrtie a script which will gzip not zipped files in a directory and itīs subdirectories. I succeeded in gzippung the directory but not the subdirectories:
#/bin/bash
#go to the directory where to zip
cd $1
#Zip unzipped files
for i in `ls | xargs... (2 Replies)
Discussion started by: JamesCarter
2 Replies
6. Shell Programming and Scripting
Hi,
I have a parent directory in which I have sub directories of different depth
/usr/usr1/user2/671
/usr/usr1/672
/usr/user2/user1/673
/usr/user2/user3/user4/674
And I need the names of all the directories that which starts only with 6 in a file.
Thanks, (12 Replies)
Discussion started by: arun_maffy
12 Replies
7. Shell Programming and Scripting
Hi,
I am a newbie in shell scripting. I have to copy a particular sub-directory (data) from a large no. of directories (all in the same folder) and paste them to another directory ( /home/hubble/data ) and then rename all the subdirectories (data) as the name of its parent directory.
please... (8 Replies)
Discussion started by: sholay
8 Replies
8. Shell Programming and Scripting
Hi,
I have to find files only in the current directory...not in the sub directories.
But when I use Find command ... it searches all the files in the current directory as well as in the subdirectories. I am using AIX-UNIX machine.Please help..I tried to use maxdepth..but it is not working in AIX. (2 Replies)
Discussion started by: vsachan
2 Replies
9. UNIX for Dummies Questions & Answers
I want to copy a file from the top directory into all the sub-folders and all of the sub-folders of those sub-folder etc. Does anyone have any idea how to do this?
Thanks in advance of any help you can give. (3 Replies)
Discussion started by: EinsteinMcfly
3 Replies
10. Shell Programming and Scripting
Hi,
I am not too familiar with Unix scripting but I have to write code to find all the files under all the sub directories under a parent directory of unix location and move them to the corresponding Windows location.
For eg: I have \home\sreenu\Files\
Under neath this I have multiple sub... (3 Replies)
Discussion started by: raj.sreenu
3 Replies
LEARN ABOUT ULTRIX
config
config(8) System Manager's Manual config(8)
Name
config - build system configuration files
Syntax
/etc/config [-p] [-s] config_file
Description
The command builds a set of system configuration files from a short file which describes the sort of system that is being configured. It
also takes as input a file which tells what files are needed to generate a system. This can be augmented by a configuration specific set
of files that give alternate files for a specific machine. (See the Files section.) If the -p option is supplied, will configure a system
for profiling. You must have sources to use the -p option. Use the -s option when building a kernel from sources.
The command should be run from the subdirectory of the system source (usually ). The command assumes that there is already a directory
created and it places all its output files in there. The output of consists of a number files: contains a description of what I/O devices
are attached to the system, and is a file used by in building the system; a set of header files which contain the number of various devices
that will be compiled into the system; and a set of swap configuration files which contain definitions for the disk areas to be used for
swapping, the root file system, argument processing, and system dumps.
After running it is necessary to run in the directory where the new makefile was created. The command reminds you of this when it com-
pletes.
If you receive other error messages from fix the errors in your configuration file and try again. If compile a system that has configura-
tion errors, the system will fail.
Restrictions
The line numbers reported in error messages are usually off by one.
Files
Generic makefile
List of common files that the system is built from
List of machine specific files
Name to major device mapping file
List of known file systems
See Also
The Syntax portion of each device in Section 4 of the ULTRIX Reference Pages
``Building 4.2BSD UNIX System with Config,'' ULTRIX Supplementary Documents, Volume 3: System Manager
RISC config(8)