Compiling the X Client [ HP Motif/iX Programmer's Supplement ] MPE/iX 5.0 Documentation
HP Motif/iX Programmer's Supplement
Compiling the X Client
[REV BEG]
A simple example of an HP Motif/iX client application is included with
the product. To compile this application:
1. Copy the Makefile and pizza.c source code from
/usr/include/Motif1.1/example to an MPE/iX group that has PH
capability.
2. Bring up the POSIX.2 shell:
:SH
3. Compile the example program:
make pizza.o
When you type make pizza.o you see the following echoed to the screen:
$c89 -c -I /usr/include/Motif1.1 -I /usr/include/X11R4 \
-D_POSIX_SOURCE -D_SOCKET_SOURCE __posix pizza.c
This command invokes the C/iX compiler to compile the source file
pizza.c into a local object file pizza.o. This command instructs
the C/iX compiler to look for the HP Motif/iX header files in
/usr/include/Motif1.1 and /usr/include/X11R4. In addition, it defines
some names to the C preprocessor that are required for HP Motif/iX
applications.
NOTE You must copy the pizza.c application to an MPE/iX group that has
PH capability in order to compile, link, and run the application.
[REV END]
MPE/iX 5.0 Documentation