STREAMS/UX for the HP 9000 Reference Manual

106
How to Compile and Link STREAMS/UX Drivers, Modules, and Applications
Compiling STREAMS/UX Drivers and Modules
Compile each of your modules and archive the object files into a library using
the ar command. It is best to place all of your driver and module code into the
same library. In the example below, libexample1.a is the name of the library and
obj*.o are the object files:
rm -f libexample1.a
ar -r libexample1.a ojb1.o obj2.o ... objn.o