# @(#)03        1.6  src/examples/pwdstren/makefile.bor, examples.src, os2dce21.dss, 960602a.1  4/5/96  16:08:45
#
#/*******************************************************************
#
# PROGRAM NAME: makefile.os2
#
# DESCRIPTIVE NAME: makefile for example password strength server
# COMPILER        : Borland C++ 2.0
# FILE SYSTEM     : HPFS
#
# (C) COPYRIGHT International Business Machines Corp. 1996
# (C) Copyright 1990, 1991, 1992, Open Software Foundation, Inc.
# 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>

# idl interface
IDLIF = rsec_pwd_mgmt
SSTUB_SUF = _sstub

# inference rules
.c.obj:
        $(CC) -o$@ @$(STEM)\cflags.bor /DOS2_EXAMPLE $(INCL_FLAGS) $*.c

# targets:
all: pwdstrn2.exe

pwdstrn2_OFILES = pwd_strengthd.obj pwd_cache.obj gen.obj $(IDLIF)$(SSTUB_SUF).obj

pwd_strengthd.obj  : pwd_strengthd.c $(IDLIF).h gen.h pwd_cache.h
        $(CC) @$(STEM)\cflags.bor /w-rch /DOS2_EXAMPLE $(INCL_FLAGS) -I$(MPTN_inc) $*.c
pwdcache.obj       : pwd_cache.c pwd_cache.h
gen.obj            : gen.c gen.h
$(IDLIF)$(SSTUB_SUF).obj  : $(IDLIF).h $(IDLIF)$(SSTUB_SUF).c

$(IDLIF)$(SSTUB_SUF).c $(IDLIF).h: $(DCE_IDL_DIR)\$(IDLIF).idl
        $(IDL) $(EPV_IDL) $(DCE_IDL_DIR)\$(IDLIF).idl

STACK = /stack:1000000
pwdstrn2.exe: $(pwdstrn2_OFILES)
        $(LD) $(LDFLAGS) $(STACK) $(IBMC_lib)\c02 $(pwdstrn2_OFILES), $*.exe, $*.map, $(LDLIBS);

clean:
        -del *.obj *.map $(IDLIF)*.h $(IDLIF)*.c
rmtarget:
        -del pwdstrn2.exe

clobber: clean rmtarget

