HP WBEM Services Software Developer's Kit for HP-UX Provider and Client Developer's Guide A.01

Provider Implementation
Building Providers
Chapter 4 77
Inserts into the list of dynamically linked shared libraries:
For PA: /opt/wbem/lib/libpegcommon.sl and
/opt/wbem/lib/libpegprovider.sl
For IA: /opt/wbem/lib/libpegcommon.so and
/opt/wbem/lib/libpegprovider.so
Other options may be specified, as needed, as long as they do not conflict
with those shown above.
The following example shows a Makefile constructed according to the
previous discussion.
Example 4-11 Makefile Example
MODULE = MyProviderModule
OUTFILE = lib$(MODULE).sl
CXX = aCC
## -c not needed in CXXFLAGS because it's always used
## automatically by make when using implicit compile rules
CXXFLAGS= -mt +Z +DAportable \
-I/opt/wbem/include
-DPEGASUS_PLATFORM_HPUX_PARISC_ACC
LD = aCC
LDFLAGS = -b -Wl,+h$(OUTFILE)
LIBS = \
-L/opt/wbem/lib \
-lpegcommon \
-lpegprovider \
-lpthread \
-lrt
OBJS = MyProviderMain.o MyProvider.o
$(OUTFILE) : $(OBJS)
$(LD) -o$@ $(LDFLAGS) $(OBJS) $(LIBS)