# @(#)08        1.5  src/examples/svc/hello_svc/makefile.wat, examples.src, os2dce21.dss, 960602a.1  1/12/96  14:49:16
#
#/********************************************************************
# COMPONENT_NAME:  examples.src
#
# FUNCTIONS: makefile for HELLO-SVC sample application [Watcom] [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 $(%STEM)\DCE_DIRS.wat

# inference rules
.c.obj:
    $(CC) $(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:

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

WORKSPACE = OPTION STACK=120k OPTION HEAPSIZE=64k
SERVER    = FILE hello_svc.obj  FILE dcehelmsg.obj  FILE dcehelsvc.obj
hello_svc.exe: $(server_OFILES)
    $(LD) $(LDFLAGS) $(SERVER) NAME $*.exe $(WORKSPACE) OPTION MAP=$*.map LIBRARY $(LDLIBS)

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

rmtarget:
    -del hello_svc.exe

clobber:
    -del $(server_OFILES) $(SVC_FILES) $(SVC_EXTRA_FILES) .idl *.map
    -del *.err
    -del hello_svc.exe
