DCE Application Programming Guide
Sample Application Listings
HP NonStop DCE Application Programming Guide—429551-003
A-21
The Make File
Figure A-12. The Make File in a Release 1.1 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
 # 2. DCE V1.1 Server support
 #
 # TNS system:
 #
PGM=infpls
DCE=/opt/dcelocal
DCELIB=-L $(DCE)/lib
LIBS=$(DCELIB) -l dce
IDL=$(DCE)/bin/idl
CC=/nonnative/bin/c89 -g
SAMS=$(DCE)/bin/sams
SVC_FILES = dceinfmsg.h dceinfmsg.c dceinfmac.h dceinfsvc.c \
dceinfsvc.h dceinf.cat dceinf.msg
SVC_OFILES = dceinfmsg.o dceinfsvc.o
default: $(PGM)_c.out $(PGM)_s.out $(PGM)_i.out $(PGM)_s_v11.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)_s_v11.out: $(PGM)_s_v11.c errmac_s.h $(PGM).h $(PGM)_sstub.o 
$(SVC_OFILES) $(SVC_FILES)
$(CC) -o $(PGM)_s_v11.out $(LIBS) $(PGM)_sstub.o $(SVC_OFILES) 
$(PGM)_s_v11.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
$(SVC_FILES): inf.sams
$(SAMS) inf.sams










