Download ProcSee Tutorial

Transcript
The example below shows examples of the sun4solaris2, hprischpux9
and sgi makefile. Also note that all actions must start with a <TAB>.
MAKEFILE
IPATH = $(PROCSEE_DIR)/include
LPATH = $(PPROCSEE_DIR)/lib/$(ARCH)
# These variables are architecture dependent :
# hprischpux9 :
# IXPATH = /usr/include/X11R5
# LIBS = -L$(LPATH) -lp3
# sun4solaris2 :
# IXPATH = /usr/openwin/include/
# LIBS = -L$(LPATH) -lp3 -lgen -lsocket -lnsl -ldl
# sgi :
# IXPATH = /usr/include/X11
# LIBS = -L$(LPATH) -lp3
IFLAGS
= -I$(IPATH) -I$(IXPATH)
# Note that all actions are preceeded by a <TAB>
Tutorial: Tutorial.o
cc Tutorial.o $(LIBS) -o Tutorial
-chmod 775 Tutorial
Tutorial.o: Tutorial.c
cc $(IFLAGS) -D$(ARCH) -c Tutorial.c -o Tutorial.o
When the makefile and the source file are ready, compile the file by running make from your command prompt.
For more information on compiling and linking, see "Part 3 - Manual
Pages - Application Programmers Interface Manual pages - Compiling
and Linking" in the ProcSee Reference Manual.
8.7
Testing Dynamics
Start the program you wrote in chapter 8 "The Simulator" on page 53.
At your shells command line, write the program name:
Tutorial
If the program is working correctly it will reply with the following messages in the terminal window:
Enter Pf loop
variable v1_state added
variable t1_level added
The Simulator
63