OSF DCE Application Development Guide--Introduction and Style Guide
A Sample Application
# NOTE: The following five lines are needed on HPUX...
#
# LDFLAGS =-Wl,-Bimmediate,-Bnonfatal
# IDLCC=-cc_cmd ’c89 -c’
# IDLCOPT=-cc_opt -D_HPUX_SOURCE
# CDEFS = -D_HPUX_SOURCE
#CC=c89
#
# CC flags:
CFLAGS = -g $(CDEFS) $(INC)
# IDL compiler flags. There are two versions of this line because, for the
# sample_bind interface, we explicitly declare and initialize the entry-
# point vector ourselves, so we specify that no epv structure be generated
# by IDL for it; but for the sample interface itself, we want to use the
# default epv structure, so when processing its .idl file we let IDL go
# ahead and generate the structure. There actually is no particular reason
# for explicitly declaring the vector for sample_bind (that I can see),
# but it’s instructive to see the two ways this can be done.
#
# The "-keep all" option is specified in order to avoid having IDL continu-
# ally create and delete stub files. Doing it this way makes the build
# much shorter...
NO_EPV_IFLAGS = -v -no_mepv $(IDLCC) $(IDLCOPT) $(INC) -keep all
IFLAGS = -v $(IDLCC) $(IDLCOPT) $(INC) -keep all
# -cc_cmd "$(CC) $(CFLAGS) -c" -keep all
# Interface name:
IF = sample
##############################################################################
# TARGETS:
# Executables...
CLIENT = $(IF)_client
SERVER = $(IF)_server
# Objects:
CLIENTO = $(IF)_client.o
SERVERO = $(IF)_server.o
CLIENTSO = $(IF)_cstub.o
SERVERSO = $(IF)_sstub.o
DBSO = $(IF)_db_cstub.o
MGRO = $(IF)_manager.o
SVCMSGO = dcesmpmsg.o
SVCSVCO = dcesmpsvc.o
# Remote bind interface:
BIND_REMOTE = sample_bind
BIND_REMOTEC = $(BIND_REMOTE).c
BIND_REMOTEO = $(BIND_REMOTE).o
# Sams generated:
SVCH = dcesmpmsg.h dcesmpsvc.h dcesmpmac.h
SVCMSGC = dcesmpmsg.c
124246 Tandem Computers Incorporated A−103










