# --------------------------------------------------------------------
#
#                     Microsoft OS/2 LAN Manager
#                  Copyright(c) Microsoft Corp., 1990
#
# --------------------------------------------------------------------
# --------------------------------------------------------------------
#
# File : makefile.
#
# Title : Makefile the stub build verification test.
#
# Description :
#     This makefile creates the build verification test (client and server)
# to be used to test the stubs created by the midl compiler with the rpc
# runtime.
#
# History :
#    mikemon    12-21-90    Beginning of recorded history.
#    brucemc	05-21-92    Added C7 support and cleaned up.
# --------------------------------------------------------------------

!ifdef NTMAKEENV

!include $(NTMAKEENV)\makefile.def

!else

!include rules.mk

!ifdef RELEASE
NMAKE_FLAGS = RELEASE=
!endif

!if "$(TRG)" == "all"
TARGETDIRS = $(CLIENT_SUBDIRS)
!else
TARGETDIRS = $(TRG)
!endif

all : 
    !set OLDPATH=$(PATH)
    !set PATH=$(LOCALCXX12)\binp;$(WIN_BIN);$(CCPLR)\$(BIN);$(COMMON)\bin
    for %%i in ($(TARGETDIRS)) do (cd %%i && ($(MAKE) $(NMAKE_FLAGS) -$(MAKEFLAGS) all || exit)	&& cd ..)
    !set PATH=$(OLDPATH)

clean :
    for %%i in ($(TARGETDIRS)) do (cd %%i && ($(MAKE) -$(MAKEFLAGS) clean || exit ) && cd ..)

clobber :
    for %%i in ($(TARGETDIRS)) do (cd %%i && ($(MAKE) -$(MAKEFLAGS) clobber || exit ) && cd ..)

depend :
    for %%i in ($(TARGETDIRS)) do (cd %%i && ($(MAKE) -$(MAKEFLAGS) depend || exit ) && cd ..)

tree :
    for %%i in ($(TARGETDIRS)) do (cd %%i && ($(MAKE) -$(MAKEFLAGS) tree || exit ) && cd ..)

!endif
