# @(#)10        1.9  src/examples/svc/hello_svc/makefile.os2, examples.src, os2dce21.dss, 960602a.1  1/12/96  14:49:10
#
#/********************************************************************
# COMPONENT_NAME:  examples.src
#
# FUNCTIONS: makefile for HELLO-SVC sample application [IBM CSet++] [HPFS]
#
# ORIGINS: 27
#
# (C) COPYRIGHT International Business Machines Corp. 1995
#  All Rights Reserved
#  Licensed Materials - Property of IBM
#
#  US Government Users Restricted Rights - Use, duplication or
#  disclosure restricted by GSA ADP Schedule Contract with IBM Corp.
#
#********************************************************************/

# See README.EXAMPLES in order to configure the Examples command files.
!INCLUDE <DCE_DIRS>

# inference rules
.c.obj:
   $(CC) -Fo$@ $(CFLAGS) $*.c

# The following is for the objects that contain the serviceability table
# and messages, respectively.
SVCMSGO = dcehelmsg.obj
SVCSVCO = dcehelsvc.obj

# sams-generated files
SVC_FILES = dcehelmsg.h dcehelmsg.c dcehelmac.h dcehelsvc.c dcehelsvc.h dcehel.cat dcehel.msg

SVC_EXTRA_FILES = dcehelmsg.man dcehelmsg.idx dcehelmsg.sml

# targets:
default: all

all: hello_svc.exe

server_OFILES=hello_svc.obj $(SVCMSGO) $(SVCSVCO)

hello_svc.obj: hello_svc.c $(SVC_FILES)

$(SVC_FILES): hel.sams
        $(SAMS) hel.sams

hello_svc.exe: $(server_OFILES)
        $(LD) $(LDFLAGS) $(server_OFILES), $*.exe, $*.map, $(LDLIBS), $*.def

clean:
    -del $(server_OFILES) $(SVC_FILES) $(SVC_EXTRA_FILES) .idl *.map

rmtarget:
    -del hello_svc.exe

clobber: clean rmtarget
