rpm -i foobar-1.0-1.i386.rpmIt might tell you you need another package to, so find it and then install both. An example of code distributed by rpm is AViz.
``To prepare to use make, you must write a file called the makefile that
describes the relationships among files in your program and provides
commands for updating each file. In a program, typically, the
executable file is updated from object files, which are in turn
made by compiling source files.
Once a suitable makefile exists, each time you change some source files,
this simple shell command:
make
suffices to perform all necessary recompilations. The make program
uses the makefile data base and the last-modification times of the
files to decide which of the files need to be updated. For each of
those files, it issues the commands recorded in the data base.
The file should be called Makefile (the capital places it near the top of
the ls list).
an example is
edit : main.o kbd.o command.o display.o \
insert.o search.o files.o utils.o
cc -o edit main.o kbd.o command.o display.o \
insert.o search.o files.o utils.o
main.o : main.c defs.h
cc -c main.c
kbd.o : kbd.c defs.h command.h
cc -c kbd.c
command.o : command.c defs.h command.h
cc -c command.c
display.o : display.c defs.h buffer.h
cc -c display.c
insert.o : insert.c defs.h buffer.h
cc -c insert.c
search.o : search.c defs.h buffer.h
cc -c search.c
files.o : files.c defs.h buffer.h command.h
cc -c files.c
utils.o : utils.c defs.h
cc -c utils.c
clean :
rm edit main.o kbd.o command.o display.o \
insert.o search.o files.o utils.o
(The \ is a line continuation)
You run this by writing the command ``make''
and its to be assumed that all the files .c and .h are present in the
directory or in your path. More advanced things on the gnu
website.''