DCE Application Programming Guide
Sample Application Listings
HP NonStop DCE Application Programming Guide—429551-003
A-12
The README File
Modifications for TNS/E systems:
PGM=infpls
DCE=/opt/dcelocal
G_CC_PATH=-L/usr/bin
DCELIB=-L /usr/lib
LIBS=-Weld="-libname \$system.zdce.ldce"
IDL:=$(DCE)/bin/idl
CC=$(G_CC_PATH)/c89 -g -WTandem_float -Wextensions
-Wfieldalign=shared2
The README File
The README file is shown in Figure A-8 on page A-13.
Figure A-7. The Make File in a Straight Port
# (c) Copyright 1993 Harold W. Lockhart and Frederic M. Oldfield
# ALL RIGHTS RESERVED
#
# Permission is hereby granted to use, copy, modify and freely
# distribute this software for any purpose without fee, provided
# that the above copyright notice and this permission notice are
# retained in it.
#
# The authors make no representations about the suitability of
# this software for any purpose. It is provided "as is" without
# express or implied warranty. The authors assume no liability,
# direct or consequential, resulting from its use.
#
# *** modifications for Nonstop servers
# 1. name and location of C compiler
#
# TNS system:
PGM=infpls
DCE=/opt/dcelocal
DCELIB=-L $(DCE)/lib
LIBS=$(DCELIB) -l dce
IDL=$(DCE)/bin/idl
CC=/nonnative/bin/c89 -g
default: $(PGM)_c.out $(PGM)_s.out $(PGM)_i.out
$(PGM)_c.out: $(PGM)_c.c errmac.h $(PGM).h $(PGM)_cstub.o
$(CC) -o $(PGM)_c.out $(LIBS) $(PGM)_cstub.o $(PGM)_c.c
$(PGM)_s.out: $(PGM)_s.c errmac.h $(PGM).h $(PGM)_sstub.o
$(CC) -o $(PGM)_s.out $(LIBS) $(PGM)_sstub.o $(PGM)_s.c
$(PGM)_i.out: $(PGM)_i.c errmac.h $(PGM).h $(PGM)_sstub.o
$(CC) -o $(PGM)_i.out $(LIBS) $(PGM)_sstub.o $(PGM)_i.c
$(PGM)_cstub.o $(PGM)_sstub.o $(PGM).h: $(PGM).idl $(PGM).acf
$(IDL) $(PGM).idl