10-19-2006
Windows depends on Visual Studio for development, for the most part. UNIX uses makefiles, which are kind of batch-files on steroids. The usual series of steps in compiling a program:
- ./configure
This file checks out your system and creates an appropriate makefile. You can give it various options on things like where to install to. See ./configure --help for details.
- make
This searches for a makefile in your current directory, finds it, and executes it's default target, namely the program.
- make install
This executes a different target, which attempts to install the given programs into the directories ./configure chose. It might not be able to if you don't have permission to write to those directories, which means you may need to run this step as root. none of the other steps need to be run as root.
But what is your distribution? Most distributions except Gentoo use archives full of binary files that've been built for you, not source files. It's best to cooperate with your distro as much as you can rather than injecting stuff under it, fight it too much and it'll fight back.
9 More Discussions You Might Find Interesting
1. UNIX for Dummies Questions & Answers
I'm trying to get RedHat 7.0 working on a Dell Latitude c600/c610 working. Well the graphics driver anyway.
See no matter what I configure it wont work. Run Xconfigurator and it wont have the right drivers installed for me to pick etc etc. So I'll run Xconfigurator get a generic driver,... (1 Reply)
Discussion started by: merlin
1 Replies
2. UNIX for Dummies Questions & Answers
I just recently installed Redhat linux 7.3 on an old machine and had a question. I had some problems installing and traced them to my sound card. Not wanting to waste time, I selected the smallest download possible (without doing a custom install). I didn't install any of the four optional packages... (4 Replies)
Discussion started by: elpinchegringo
4 Replies
3. UNIX for Dummies Questions & Answers
I'm new to Linux & Unix in general. I have a system running Windows XP & i have a Linux RedHat 7.0 guest OS running in a Virtual Machine (VMware 3.0) now, i have to install the VMware tools for the Linux OS but i don't know how to install anything in Linux. How do i go about it? (i already have the... (1 Reply)
Discussion started by: da_gee
1 Replies
4. UNIX for Dummies Questions & Answers
I am presently trying to install linux on my machine that is already running Win XP. I have tried several different versions. I began with a Mandrake Linux installation cd. I could not bring up the graphical installer so I proceeded with the text installer. Somehow I managed to partition my hard... (6 Replies)
Discussion started by: bobotoes
6 Replies
5. Linux
but where can i download some ebooks about linux howto?
i am a newcomer.
thank you in advance :-) (3 Replies)
Discussion started by: A8harrying
3 Replies
6. Linux
Hi there!!!
I'm new to unix n linux .....i want to learn Linux....I heard that loading Linux u must have high sys config ...Current i've a sys with Win 98....
My system configuration:
Intel Pentium III (800 MHz)
RAM 64MB
HDD 9GB free space in E:\
Current OS windows 98
Could u suggest me... (2 Replies)
Discussion started by: visix
2 Replies
7. UNIX for Dummies Questions & Answers
I use windows Xp, and I am going to format my HD and make some partitions..
I want to have windows Xp and Linux installed in diferent partions.
I want it so when my computer boots, I can choose which OS I would like to load.
I have never installed or used Linux.
so I would like to know if... (3 Replies)
Discussion started by: vit8484
3 Replies
8. UNIX for Advanced & Expert Users
Hi
On Linux systems there is a command called "column".
column - columnate lists
Synopsis
column -tx] -c columns] -s sep] file ...]
Description
The column utility formats its input into multiple columns. Rows are filled before columns. Input is taken from file operands, or,... (3 Replies)
Discussion started by: slashdotweenie
3 Replies
9. Linux
hi
i am new with linux. i have installed fedora 16 for my application to running ROMS model. in ROMS site has written that: there are one way to provide the location for the NetCDF files (and optional HDF5 library). If you are always going to be using the same compiler on each system, you can... (1 Reply)
Discussion started by: komijani
1 Replies
MAKE(1) General Commands Manual MAKE(1)
NAME
make - a program for maintaining large programs
SYNOPSIS
make [-f file] [-iknpqrst] [option] ... [target]
OPTIONS
-f Use file as the makefile
-i Ignore status returned by commands
-k On error, skip to next command
-n Report, but do not execute
-p Print macros and targets
-q Question up-to-dateness of target
-r Rule inhibit; do not use default rules
-s Silent mode
-t Touch files instead of making them
EXAMPLES
make kernel # Make kernel up to date
make -n -f mfile # Tell what needs to be done
DESCRIPTION
Make is a program that is normally used for developing large programs consisting of multiple files. It keeps track of which object files
depend on which source and header files. When called, it does the minimum amount of recompilation to bring the target file up to date.
The file dependencies are expected in makefile or Makefile , unless another file is specified with -f. Make has some default rules built
in, for example, it knows how to make .s files from .c files. Here is a sample makefile .
d=/user/ast # d is a macro
program: head.s tail.s# program depends on these
cc -o program head.s tail.s# tells how to make program
echo Program done. # announce completion
head.s: $d/def.h head.c # head.s depends on these
tail.s: $d/var.h tail.c # tail.s depends on these
A complete description of make would require too much space here. Many books on UNIX discuss make . Study the numerous Makefiles in the
MINIX source tree for examples.
SEE ALSO
cc(1).
MAKE(1)