HP WBEM Services Software Developer's Kit for HP-UX Provider and Client Developer's Guide A.01
Client Implementation
Building Clients
Chapter 5108
Building Clients
Clients should be compiled and linked with the aCC C++ compiler. The
make utility can be used to control this. The following example Makefile
illustrates the necessary compilation and link flags for building a client.
LIBRARIES = -L/opt/wbem/lib -lpegcommon -lpegclient
INCLUDE = -I/opt/wbem/include
ACC_OPTIONS = $(PLATFORM_ACC_OPTIONS) $(INCLUDE)
OUTPUT = $(PROGRAM)
CURRENTPATH = $(PWD)
OBJECTS = $(SOURCES:.cpp=.o)
.cpp.o:
aCC -c -o $@ $(ACC_OPTIONS) $*.cpp
$(OUTPUT): $(OBJECTS)
aCC $(ACC_OPTIONS) -O$@ $(OBJECTS) -lrt \
$(LIBRARIES)
In this example, the setting for PLATFORM_ACC_OPTIONS depends on the
platform:
• For PA, use:
+DAportable -AP -mt -DPEGASUS_PLATFORM_HPUX_PARISC_ACC
• For IA, use:
+DD64 -AA -mt -DPEGASUS_PLATFORM_HPUX_IA64_ACC
-DHPUX_IA64_NATIVE_COMPILER